mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Use switch consistently in _notification (scene folder)
This commit is contained in:
@@ -78,6 +78,7 @@ void Button::_notification(int p_what) {
|
||||
case NOTIFICATION_LAYOUT_DIRECTION_CHANGED: {
|
||||
update();
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_TRANSLATION_CHANGED: {
|
||||
xl_text = atr(text);
|
||||
_shape();
|
||||
@@ -85,12 +86,14 @@ void Button::_notification(int p_what) {
|
||||
update_minimum_size();
|
||||
update();
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
_shape();
|
||||
|
||||
update_minimum_size();
|
||||
update();
|
||||
} break;
|
||||
|
||||
case NOTIFICATION_DRAW: {
|
||||
RID ci = get_canvas_item();
|
||||
Size2 size = get_size();
|
||||
|
||||
Reference in New Issue
Block a user