LangStudies/App/Scripts/CourseDirectory.gd

29 lines
753 B
GDScript3
Raw Normal View History

2022-07-14 14:12:25 -07:00
extends Panel
onready var RDP_Viewer = load("res://RDP/RDP_Viewer.tscn")
onready var RegM_Viewer = load("res://RegM/RegM_Viewer.tscn")
2022-07-20 06:27:19 -07:00
onready var EoI_Viewer = load("res://EoI/EoI_Viewer.tscn")
2022-07-14 14:12:25 -07:00
onready var RDP_Btn = get_node("HBox/RDP_Btn")
onready var RegM_Btn = get_node("HBox/RegM_Btn")
2022-07-20 06:27:19 -07:00
onready var EoI_Btn = get_node("HBox/EoI_Btn")
2022-07-14 14:12:25 -07:00
func rdp_pressed():
add_child( RDP_Viewer.instance() )
func regM_pressed():
add_child( RegM_Viewer.instance() )
2022-07-20 06:27:19 -07:00
func eoi_pressed():
add_child( EoI_Viewer.instance() )
2022-07-14 14:12:25 -07:00
# Called when the node enters the scene tree for the first time.
func _ready():
2022-07-20 06:27:19 -07:00
EoI_Btn.connect("pressed", self, "eoi_pressed")
2022-07-14 14:12:25 -07:00
RDP_Btn.connect("pressed", self, "rdp_pressed")
RegM_Btn.connect("pressed", self, "regM_pressed")
2022-07-20 06:27:19 -07:00