ui bug fix
This commit is contained in:
16
core/main_menu/main_menu.gd
Normal file
16
core/main_menu/main_menu.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
extends Control
|
||||
|
||||
@onready var settings_menu: Control = $%SettingsMenu
|
||||
@onready var option_menu: Control = $%OptionMenu
|
||||
@onready var show_container_tween: ContainerTween = $%ShowContainerTween
|
||||
@onready var hide_container_tween: ContainerTween = $%HideContainerTween
|
||||
|
||||
func _ready() -> void:
|
||||
option_menu.settings_button.pressed.connect(_on_settings_button_pressed)
|
||||
|
||||
|
||||
func _on_settings_button_pressed() -> void:
|
||||
if settings_menu.visible:
|
||||
hide_container_tween.start_tween()
|
||||
else:
|
||||
show_container_tween.start_tween()
|
||||
Reference in New Issue
Block a user