mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-22 00:57:17 +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;
|
||||
case NOTIFICATION_VISIBILITY_CHANGED: {
|
||||
if (Engine::get_singleton()->is_editor_hint())
|
||||
if (Engine::get_singleton()->is_editor_hint()) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (is_visible_in_tree()) {
|
||||
set_process_input(true);
|
||||
} else {
|
||||
@ -45,16 +47,19 @@ void TouchButton::_notification(int p_what) {
|
||||
}
|
||||
|
||||
void TouchButton::_input(Ref<InputEvent> p_event) {
|
||||
if (!get_tree())
|
||||
if (!get_tree()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (p_event->get_device() == -1)
|
||||
if (p_event->get_device() == -1) {
|
||||
return;
|
||||
}
|
||||
|
||||
ERR_FAIL_COND(!is_visible_in_tree());
|
||||
|
||||
if (is_disabled()) // no interaction with disabled button
|
||||
if (is_disabled()) { // no interaction with disabled button
|
||||
return;
|
||||
}
|
||||
|
||||
Ref<InputEventScreenTouch> b = p_event;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user