12345678910111213141516171819202122232425262728293031 |
- extends Node2D
- # Declare member variables here. Examples:
- # var a = 2
- # var b = "text"
- # Called when the node enters the scene tree for the first time.
- func _ready():
- $"PanelContainer/HBoxContainer/register".connect("pressed",self,'on_register_clicked')
- $"PanelContainer/HBoxContainer/login".connect("pressed",self,'on_login_clicked')
- pass # Replace with function body.
- func on_register_clicked():
- $Register.visible = true
- $PanelContainer.visible = false
-
- func on_login_clicked():
- $Login.visible = true
- $PanelContainer.visible = false
- func activate():
- $Register.visible = false
- $Login.visible = false
- $PanelContainer.visible = true
- # Called every frame. 'delta' is the elapsed time since the previous frame.
- #func _process(delta):
- # pass
|