mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-03-20 19:42:28 +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) {
|
void BaseButton::set_pressed(bool p_pressed) {
|
||||||
bool prev_pressed = status.pressed;
|
if (!toggle_mode) {
|
||||||
set_pressed_no_signal(p_pressed);
|
|
||||||
|
|
||||||
if (status.pressed == prev_pressed) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (status.pressed == p_pressed) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
status.pressed = p_pressed;
|
||||||
|
|
||||||
_change_notify("pressed");
|
_change_notify("pressed");
|
||||||
|
|
||||||
if (p_pressed) {
|
if (p_pressed) {
|
||||||
|
Loading…
Reference in New Issue
Block a user