test-client-godot/login_scene/login_scene.gd
2018-08-08 10:46:16 +02:00

32 lines
No EOL
953 B
GDScript

extends Node
signal character_creation_finished
func _ready():
global.character_creation_camera = get_node( "character_creation_menu/v_box_container/h_box_container/center_container/character_creation_scene/camera" )
func _on_login_menu_login_button_pressed():
$login_menu.hide()
$character_selection_menu.show()
func _on_character_creation_menu_valid_button_pressed():
$character_creation_menu.hide()
emit_signal( "character_creation_finished" )
func _on_character_selection_menu_character_selected(slot):
print( "selected character slot "+str( slot )+"." )
global.character_slot = slot
$character_selection_menu.hide()
$character_creation_menu.show()
func _on_character_creation_menu_return_button_pressed():
$character_creation_menu.hide()
$character_selection_menu.show()
func _on_character_selection_menu_return_button_pressed():
$login_menu.show()
$character_selection_menu.hide()