From a6b6bb36c740b01279d484e0eadc462ea58bff59 Mon Sep 17 00:00:00 2001 From: AleaJactaEst Date: Thu, 23 Sep 2021 21:00:59 +0200 Subject: [PATCH] adding menu_option --- .../interfaces/menu_options/menu_options.gd | 56 +++++++ .../interfaces/menu_options/menu_options.tscn | 158 ++++++++++++++++++ 2 files changed, 214 insertions(+) create mode 100644 scenes/interfaces/menu_options/menu_options.gd create mode 100644 scenes/interfaces/menu_options/menu_options.tscn diff --git a/scenes/interfaces/menu_options/menu_options.gd b/scenes/interfaces/menu_options/menu_options.gd new file mode 100644 index 0000000..2dbdc54 --- /dev/null +++ b/scenes/interfaces/menu_options/menu_options.gd @@ -0,0 +1,56 @@ +extends Control + + +signal quit_pressed +signal mute_pressed + + +func _ready(): + #get_node("option_settings").connect("mute_pressed", self, "_on_control_mute_pressed") + MusicManager.connect("mute_pressed", self, "_on_signal_mute_pressed") + MusicManager.connect_ext_func( "mute_pressed", self , "_on_signal_mute_pressed") + $option_settings.connect( "mute_pressed", self, "_on_signal_mute_pressed" ) + $option_settings.connect_ext_func( "mute_pressed", self, "_on_signal_mute_pressed" ) + update_sound_button() + + +func _on_signal_mute_pressed(): + Config.msg_debug("