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
This commit is contained in:
Zher Huei Lee 2016-04-12 17:25:17 +01:00
parent 8a6933afb1
commit 0ccf153a15
8 changed files with 46 additions and 4 deletions

View file

@ -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();