You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Make Menu/OptionButton item auto-highlight behave better
This commit is contained in:
@@ -49,6 +49,7 @@ private:
|
||||
MouseButton button_mask = MouseButton::MASK_LEFT;
|
||||
bool toggle_mode = false;
|
||||
bool shortcut_in_tooltip = true;
|
||||
bool was_mouse_pressed = false;
|
||||
bool keep_pressed_outside = false;
|
||||
Ref<Shortcut> shortcut;
|
||||
ObjectID shortcut_context;
|
||||
@@ -81,6 +82,7 @@ protected:
|
||||
void _notification(int p_what);
|
||||
|
||||
bool _is_focus_owner_in_shortcut_context() const;
|
||||
bool _was_pressed_by_mouse() const;
|
||||
|
||||
GDVIRTUAL0(_pressed)
|
||||
GDVIRTUAL1(_toggled, bool)
|
||||
|
||||
Reference in New Issue
Block a user