diff options
author | Zher Huei Lee <lee.zh.92@gmail.com> | 2016-04-12 17:25:17 +0100 |
---|---|---|
committer | Zher Huei Lee <lee.zh.92@gmail.com> | 2016-05-23 15:08:50 +0100 |
commit | 0ccf153a15c04bf6d7a40fd9d48b665af9384240 (patch) | |
tree | e7fffd81e8be46b4a678c090575e7be81dc17841 /scene/gui/base_button.h | |
parent | 8a6933afb1c8a5e70fbc580a5d06b1f798f760a9 (diff) | |
download | redot-engine-0ccf153a15c04bf6d7a40fd9d48b665af9384240.tar.gz |
GUI Focus mode improvements
Exposed `get_focus_mode()` to the script
Added `focus_mode` to the property panels for line-edit and sliders
Added `enabled_focus_mode` to the property panels for buttons
enabled_focus_mode is used when button is enabled/disabled
Diffstat (limited to 'scene/gui/base_button.h')
-rw-r--r-- | scene/gui/base_button.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/base_button.h b/scene/gui/base_button.h index 9a5213d971..0247fb2f21 100644 --- a/scene/gui/base_button.h +++ b/scene/gui/base_button.h @@ -42,6 +42,7 @@ class BaseButton : public Control { OBJ_TYPE( BaseButton, Control ); bool toggle_mode; + FocusMode enabled_focus_mode; struct Status { @@ -97,6 +98,9 @@ public: void set_click_on_press(bool p_click_on_press); bool get_click_on_press() const; + void set_enabled_focus_mode(FocusMode p_mode); + FocusMode get_enabled_focus_mode() const; + BaseButton(); ~BaseButton(); |