Location tab in editor

This commit is contained in:
Luke Street
2026-05-01 12:37:40 -06:00
parent 8f7b9cdfdd
commit 65a5945778
6 changed files with 234 additions and 23 deletions
+8 -8
View File
@@ -63,11 +63,18 @@ bool SelectButton::handle_nav_command(NavCommand cmd) {
}
void BaseControlledSelectButton::update() {
set_disabled(is_disabled());
set_disabled(disabled());
set_value_label(format_value());
SelectButton::update();
}
bool ControlledSelectButton::disabled() const {
if (mIsDisabled) {
return mIsDisabled();
}
return BaseControlledSelectButton::disabled();
}
Rml::String ControlledSelectButton::format_value() {
if (!mGetValue) {
return "";
@@ -75,11 +82,4 @@ Rml::String ControlledSelectButton::format_value() {
return mGetValue();
}
bool ControlledSelectButton::is_disabled() {
if (!mIsDisabled) {
return false;
}
return mIsDisabled();
}
} // namespace dusk::ui