From 394c4babd12b2ea26fef2f1bbcef6810c6dc04e9 Mon Sep 17 00:00:00 2001 From: "m.cirafisi" Date: Fri, 15 May 2026 21:36:11 +0200 Subject: [PATCH] disable animation on tab at start --- core/game_menu/game_menu.gd | 2 +- core/game_menu/game_menu_tab.gd | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/game_menu/game_menu.gd b/core/game_menu/game_menu.gd index 7ab65e8..a8d6eb0 100644 --- a/core/game_menu/game_menu.gd +++ b/core/game_menu/game_menu.gd @@ -7,7 +7,7 @@ func _ready() -> void: for tab: GameMenuTab in tabs: tab.on_tab_selected.connect(_on_tab_pressed) - tabs[0].select() + tabs[0].select_without_animation() pages[0].show() func _on_tab_pressed(index: int): diff --git a/core/game_menu/game_menu_tab.gd b/core/game_menu/game_menu_tab.gd index a114dfc..36c23eb 100644 --- a/core/game_menu/game_menu_tab.gd +++ b/core/game_menu/game_menu_tab.gd @@ -35,6 +35,10 @@ func deselect(): is_selected = false _move_down() +func select_without_animation(): + is_selected = true + texture.position.y = -bob_height + func _move_up(): if hover_tween: hover_tween.kill() hover_tween = create_tween()