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/control.cpp | |
parent | 8a6933afb1c8a5e70fbc580a5d06b1f798f760a9 (diff) |
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/control.cpp')
-rw-r--r-- | scene/gui/control.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index 73e7237058..e3cd3b6bc1 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -2265,6 +2265,7 @@ void Control::_bind_methods() { ObjectTypeDB::bind_method(_MD("set_area_as_parent_rect","margin"),&Control::set_area_as_parent_rect,DEFVAL(0)); ObjectTypeDB::bind_method(_MD("show_modal","exclusive"),&Control::show_modal,DEFVAL(false)); ObjectTypeDB::bind_method(_MD("set_focus_mode","mode"),&Control::set_focus_mode); + ObjectTypeDB::bind_method(_MD("get_focus_mode"),&Control::get_focus_mode); ObjectTypeDB::bind_method(_MD("has_focus"),&Control::has_focus); ObjectTypeDB::bind_method(_MD("grab_focus"),&Control::grab_focus); ObjectTypeDB::bind_method(_MD("release_focus"),&Control::release_focus); |