Raise-Your-Wand/Scripts/TitleScreen.gd

43 lines
992 B
GDScript3
Raw Normal View History

extends Node
@onready var raise: RichTextLabel = $Title/Raise
@onready var your: RichTextLabel = $Title/Your
@onready var wand: RichTextLabel = $Title/Wand
@onready var disclaimer: RichTextLabel = $Title/Disclaimer
@onready var play: TextureButton = $Buttons/Play
@onready var credits: TextureButton = $Buttons/Credits
@onready var settings: TextureButton = $Buttons/Settings
@onready var quit: TextureButton = $Buttons/Quit
@onready var about: TextureButton = $Buttons/About
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
func hide():
raise.hide()
your.hide()
wand.hide()
disclaimer.hide()
play.hide()
credits.hide()
settings.hide()
quit.hide()
about.hide()
func show():
raise.show()
your.show()
wand.show()
disclaimer.show()
play.show()
credits.show()
settings.show()
quit.show()
about.show()