mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-17 04:31:37 -04:00
Location tab in editor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user