diff options
author | tpart <tpart120@proton.me> | 2025-09-30 15:20:30 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2025-09-30 15:20:30 +0200 |
commit | 37a176f2e76eb5d293fd63f6ba39a143cb0abf1c (patch) | |
tree | 79ae8dcc05647eccfd29f9ba0e3a6d0fa6a0fbb7 | |
parent | d24c641f303c89e4bfd81876a8208eeab3c4b600 (diff) | |
download | hurrycurry-37a176f2e76eb5d293fd63f6ba39a143cb0abf1c.tar hurrycurry-37a176f2e76eb5d293fd63f6ba39a143cb0abf1c.tar.bz2 hurrycurry-37a176f2e76eb5d293fd63f6ba39a143cb0abf1c.tar.zst |
Don't animate setup menu when opening through settings
-rw-r--r-- | client/gui/menus/setup/setup.gd | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/client/gui/menus/setup/setup.gd b/client/gui/menus/setup/setup.gd index d4048ddb..36972870 100644 --- a/client/gui/menus/setup/setup.gd +++ b/client/gui/menus/setup/setup.gd @@ -41,7 +41,6 @@ func _ready(): spacer.custom_minimum_size.x = 50 select_uniform.add_child(spacer) - $Background.visible = get_parent() is Entry # Enable msaa 2D for this scene Global.get_viewport().msaa_2d = Viewport.MSAA_4X @@ -52,8 +51,12 @@ func _ready(): $ScrollContainer/Control/TextureRect.rotation = 0 increase_font_size(self) + $Background.visible = get_parent() is Entry + $Back.visible = not get_parent() is Entry + + support_anim = get_parent() is Entry + super() - $Back.visible = not is_instance_of(parent_menu, Entry) func increase_font_size(node: Node): if node is RichTextLabel: |