mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-01 22:07:01 +01:00
Fix clang format warnings.
This commit is contained in:
parent
9a2bf73280
commit
bd9abfc160
@ -31,8 +31,10 @@ void TouchButton::_notification(int p_what) {
|
|||||||
|
|
||||||
} break;
|
} break;
|
||||||
case NOTIFICATION_VISIBILITY_CHANGED: {
|
case NOTIFICATION_VISIBILITY_CHANGED: {
|
||||||
if (Engine::get_singleton()->is_editor_hint())
|
if (Engine::get_singleton()->is_editor_hint()) {
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (is_visible_in_tree()) {
|
if (is_visible_in_tree()) {
|
||||||
set_process_input(true);
|
set_process_input(true);
|
||||||
} else {
|
} else {
|
||||||
@ -45,16 +47,19 @@ void TouchButton::_notification(int p_what) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void TouchButton::_input(Ref<InputEvent> p_event) {
|
void TouchButton::_input(Ref<InputEvent> p_event) {
|
||||||
if (!get_tree())
|
if (!get_tree()) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (p_event->get_device() == -1)
|
if (p_event->get_device() == -1) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ERR_FAIL_COND(!is_visible_in_tree());
|
ERR_FAIL_COND(!is_visible_in_tree());
|
||||||
|
|
||||||
if (is_disabled()) // no interaction with disabled button
|
if (is_disabled()) { // no interaction with disabled button
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Ref<InputEventScreenTouch> b = p_event;
|
Ref<InputEventScreenTouch> b = p_event;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user