diff options
| author | Zher Huei Lee | 2016-04-12 17:25:17 +0100 |
|---|---|---|
| committer | Zher Huei Lee | 2016-05-23 15:08:50 +0100 |
| commit | 0ccf153a15c04bf6d7a40fd9d48b665af9384240 (patch) | |
| tree | e7fffd81e8be46b4a678c090575e7be81dc17841 /scene/gui/link_button.cpp | |
| parent | 8a6933afb1c8a5e70fbc580a5d06b1f798f760a9 (diff) | |
| download | godot-0ccf153a15c04bf6d7a40fd9d48b665af9384240.tar.gz godot-0ccf153a15c04bf6d7a40fd9d48b665af9384240.tar.zst godot-0ccf153a15c04bf6d7a40fd9d48b665af9384240.zip | |
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/link_button.cpp')
| -rw-r--r-- | scene/gui/link_button.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/link_button.cpp b/scene/gui/link_button.cpp index 007d0a709..065423ae2 100644 --- a/scene/gui/link_button.cpp +++ b/scene/gui/link_button.cpp @@ -119,6 +119,6 @@ void LinkButton::_bind_methods() { LinkButton::LinkButton() { underline_mode=UNDERLINE_MODE_ALWAYS; - set_focus_mode(FOCUS_NONE); + set_enabled_focus_mode(FOCUS_NONE); set_default_cursor_shape(CURSOR_POINTING_HAND); } |
