add game menu #19

Merged
m.cirafisi merged 7 commits from game_menu into main 2026-05-15 20:33:22 +00:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit 394c4babd1 - Show all commits

View File

@@ -7,7 +7,7 @@ func _ready() -> void:
for tab: GameMenuTab in tabs: for tab: GameMenuTab in tabs:
tab.on_tab_selected.connect(_on_tab_pressed) tab.on_tab_selected.connect(_on_tab_pressed)
tabs[0].select() tabs[0].select_without_animation()
pages[0].show() pages[0].show()
func _on_tab_pressed(index: int): func _on_tab_pressed(index: int):

View File

@@ -35,6 +35,10 @@ func deselect():
is_selected = false is_selected = false
_move_down() _move_down()
func select_without_animation():
is_selected = true
texture.position.y = -bob_height
func _move_up(): func _move_up():
if hover_tween: hover_tween.kill() if hover_tween: hover_tween.kill()
hover_tween = create_tween() hover_tween = create_tween()