21 lines
454 B
GDScript
21 lines
454 B
GDScript
extends Control
|
|
|
|
signal login_button_pressed
|
|
|
|
func _on_login_button_pressed():
|
|
emit_signal( "login_button_pressed" )
|
|
|
|
|
|
func _on_play_button_pressed():
|
|
emit_signal( "login_button_pressed" )
|
|
|
|
|
|
func _on_quit_button_pressed():
|
|
self.get_tree().quit()
|
|
|
|
|
|
func _on_sound_button_toggled( button_pressed ):
|
|
if button_pressed:
|
|
global.get_node( "audio_stream_player" ).stop()
|
|
else:
|
|
global.get_node( "audio_stream_player" ).play()
|