mirror of
https://github.com/Ed94/LangStudies.git
synced 2025-07-31 09:27:01 -07:00
EoI : Lectures 1-5 complete
This commit is contained in:
@@ -3,9 +3,11 @@ extends Panel
|
||||
|
||||
onready var RDP_Viewer = load("res://RDP/RDP_Viewer.tscn")
|
||||
onready var RegM_Viewer = load("res://RegM/RegM_Viewer.tscn")
|
||||
onready var EoI_Viewer = load("res://EoI/EoI_Viewer.tscn")
|
||||
|
||||
onready var RDP_Btn = get_node("HBox/RDP_Btn")
|
||||
onready var RegM_Btn = get_node("HBox/RegM_Btn")
|
||||
onready var EoI_Btn = get_node("HBox/EoI_Btn")
|
||||
|
||||
|
||||
func rdp_pressed():
|
||||
@@ -13,9 +15,14 @@ func rdp_pressed():
|
||||
|
||||
func regM_pressed():
|
||||
add_child( RegM_Viewer.instance() )
|
||||
|
||||
func eoi_pressed():
|
||||
add_child( EoI_Viewer.instance() )
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
EoI_Btn.connect("pressed", self, "eoi_pressed")
|
||||
RDP_Btn.connect("pressed", self, "rdp_pressed")
|
||||
RegM_Btn.connect("pressed", self, "regM_pressed")
|
||||
|
||||
|
Reference in New Issue
Block a user