2022-02-12 19:45:44 +00:00
|
|
|
extends Control
|
|
|
|
|
|
|
|
|
2022-02-15 22:21:57 +00:00
|
|
|
func _ready():
|
|
|
|
# .connect("mute_pressed", self, "_on_signal_mute_pressed")
|
|
|
|
$MenuTheme.connect("update_theme", update_theme.bind())
|
|
|
|
|
|
|
|
|
|
|
|
func update_theme():
|
|
|
|
var select_theme = load(Themes.THEMES_CONTROL[Themes.current_theme])
|
|
|
|
#$Control.set_theme(Themes.THEMES_CONTROL[Themes.current_theme])
|
|
|
|
print($Control)
|
|
|
|
self.set_theme(select_theme)
|
|
|
|
|
|
|
|
|
2022-02-12 22:15:01 +00:00
|
|
|
func _input(_event):
|
|
|
|
if Input.is_action_just_pressed("ui_menu"):
|
2022-02-12 19:45:44 +00:00
|
|
|
$Menu.visible = ! $Menu.visible
|
|
|
|
|
|
|
|
|
|
|
|
func _on_timer_timeout():
|
|
|
|
$Message/Label.visible = false
|
|
|
|
|
|
|
|
|
|
|
|
func _on_quit_pressed():
|
|
|
|
$ConfirmQuit.popup_centered()
|
|
|
|
$ConfirmQuit.visible = true
|
|
|
|
|
|
|
|
|
|
|
|
func _on_confirmation_dialog_confirmed():
|
|
|
|
get_tree().quit()
|
|
|
|
|
|
|
|
|
|
|
|
func _on_languages_pressed():
|
|
|
|
$MenuOption/Window.popup_centered()
|
|
|
|
$MenuOption/Window.visible = true
|
2022-02-12 22:15:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
func _on_keys_pressed():
|
2022-02-24 22:08:03 +00:00
|
|
|
$MenuControl.configure_control()
|
|
|
|
$MenuControl/Window.visible = true
|
2022-02-15 22:21:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
func _on_themes_pressed():
|
|
|
|
$MenuTheme/Window.popup_centered()
|
|
|
|
$MenuTheme/Window.visible = true
|