extends Control
signal quit_pressed
signal mute_pressed
#signal musicplayer_pressed
func _ready():
#get_node("option_settings").connect("mute_pressed", self, "_on_control_mute_pressed")
MusicManager.connect("mute_pressed", self, "_on_control_mute_pressed")
MusicManager.connect("musicplayer_pressed", self, "_on_control_musicplayer_pressed")
MusicManager.connect_ext( "mute_pressed", self )
$option_settings.connect( "mute_pressed", self, "_on_control_mute_pressed" )
$option_settings.connect_ext( "mute_pressed", self )
update_sound_button()
func _on_quit_button_pressed():
Config.msg_debug("_on_quit_button_pressed")
emit_signal( "quit_pressed" )
func _on_control_musicplayer_pressed():
Config.msg_debug("Option -> Receibed signal")
#emit_signal ( "musicplayer_pressed" )
func _on_language_button_pressed():
$option_language/window_dialog.show()
func _on_news_button_pressed():
#$option_news/accept_dialog.show()
$option_news/window_dialog.show()
func _on_help_button_pressed():
$option_info/window_dialog.show()
func _on_settings_button_pressed():
$option_settings/window_dialog.show()
func update_sound_button():
Config.msg_debug("