mlpcardgame/Scenes/Lobby/RoomEntry.gd
2019-06-29 15:25:13 +02:00

24 lines
No EOL
454 B
GDScript

extends Panel
signal clicked()
export var roomName: String = "Unnamed room"
onready var roomNameLabel := $RoomName
func _ready():
roomNameLabel.text = roomName
func _gui_input(event: InputEvent):
# Left double click
if event is InputEventMouseButton and event.button_index == BUTTON_LEFT:
accept_event()
if event.doubleclick:
emit_signal("clicked")
else:
#TODO Fade in
pass
func _mouse_exited():
#TODO if faded in, fade out
pass