education-apps/digibord_tools/godot/main_buttons.gd

27 lines
607 B
GDScript3
Raw Normal View History

2022-11-20 13:02:47 +00:00
extends Button
2023-03-30 07:30:04 +00:00
@onready var start_screen = get_node("../..")
@onready var calculator_screen = get_node("../../CalculatorScreen")
@onready var dice_screen = get_node("../../DiceScreen")
2022-11-20 13:02:47 +00:00
# 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 _on_ButtonCalculator_pressed():
start_screen.visible = false
calculator_screen.visible = true
func _on_ButtonDice_pressed():
start_screen.visible = false
dice_screen.visible = true