1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add set_pressed_no_signal method to BaseButton

This commit is contained in:
kobewi
2021-05-06 14:33:44 +02:00
parent dd27413907
commit 50c63bdc4c
3 changed files with 27 additions and 2 deletions

View File

@@ -98,7 +98,8 @@ public:
bool is_pressing() const; ///< return whether button is pressed (toggled in)
bool is_hovered() const;
void set_pressed(bool p_pressed); ///only works in toggle mode
void set_pressed(bool p_pressed); // Only works in toggle mode.
void set_pressed_no_signal(bool p_pressed);
void set_toggle_mode(bool p_on);
bool is_toggle_mode() const;