Begin UI refactor
This commit is contained in:
11
ui/RootUI.gd
Normal file
11
ui/RootUI.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
class_name RootUI extends Control
|
||||
|
||||
@export var debugMenu:DebugMenu
|
||||
@export var textBox:VNTextbox
|
||||
|
||||
func _enter_tree() -> void:
|
||||
UI.rootUi = self
|
||||
|
||||
func _exit_tree() -> void:
|
||||
if UI.rootUi == self:
|
||||
UI.rootUi = null
|
||||
Reference in New Issue
Block a user