mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Make BaseButtons' shortcut feedback timers internal
This commit is contained in:
parent
e45cc68092
commit
360ee10a6e
1 changed files with 1 additions and 1 deletions
|
|
@ -452,7 +452,7 @@ void BaseButton::shortcut_input(const Ref<InputEvent> &p_event) {
|
|||
if (shortcut_feedback_timer == nullptr) {
|
||||
shortcut_feedback_timer = memnew(Timer);
|
||||
shortcut_feedback_timer->set_one_shot(true);
|
||||
add_child(shortcut_feedback_timer);
|
||||
add_child(shortcut_feedback_timer, false, INTERNAL_MODE_BACK);
|
||||
shortcut_feedback_timer->set_wait_time(GLOBAL_GET_CACHED(double, "gui/timers/button_shortcut_feedback_highlight_time"));
|
||||
shortcut_feedback_timer->connect("timeout", callable_mp(this, &BaseButton::_shortcut_feedback_timeout));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue