test-client-godot/scenes/GUI/character_selection/character_selection_menu.gd
2018-08-08 10:46:16 +02:00

28 lines
599 B
GDScript

extends Control
signal character_selected( slot )
signal return_button_pressed
func _ready():
# Called when the node is added to the scene for the first time.
# Initialization here
pass
#func _process(delta):
# # Called every frame. Delta is time since last frame.
# # Update game logic here.
# pass
func _on_return_button_pressed():
emit_signal( "return_button_pressed" )
func _on_slot0_character_button_pressed():
emit_signal( "character_selected", 0 )
func _on_slot1_character_button_pressed():
emit_signal( "character_selected", 1 )