mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-03-13 16:38:53 +01:00
Inlined set_pressed_no_signal call into BaseButton::set_pressed().
This commit is contained in:
parent
175f67fd74
commit
a096f653cc
@ -213,12 +213,16 @@ bool BaseButton::is_disabled() const {
|
||||
}
|
||||
|
||||
void BaseButton::set_pressed(bool p_pressed) {
|
||||
bool prev_pressed = status.pressed;
|
||||
set_pressed_no_signal(p_pressed);
|
||||
|
||||
if (status.pressed == prev_pressed) {
|
||||
if (!toggle_mode) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (status.pressed == p_pressed) {
|
||||
return;
|
||||
}
|
||||
|
||||
status.pressed = p_pressed;
|
||||
|
||||
_change_notify("pressed");
|
||||
|
||||
if (p_pressed) {
|
||||
|
Loading…
Reference in New Issue
Block a user