aboutsummaryrefslogtreecommitdiff
path: root/scripts/gui.gd
diff options
context:
space:
mode:
authorjacopograndi <jacopo.grandi@outlook.it>2022-01-16 17:14:36 +0100
committerjacopograndi <jacopo.grandi@outlook.it>2022-01-16 17:14:36 +0100
commit5781b7dad68c3e01d83365f73b0d35d9e5252f97 (patch)
treedada65ab375ed8287b33e6ffe023f5df5e666d24 /scripts/gui.gd
parent8e5358aaefa1df729ffc02047e53b62705d6b3b1 (diff)
control system
Diffstat (limited to 'scripts/gui.gd')
-rw-r--r--scripts/gui.gd6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gui.gd b/scripts/gui.gd
index 03a2e04..71eaf76 100644
--- a/scripts/gui.gd
+++ b/scripts/gui.gd
@@ -1,21 +1,21 @@
extends Control
var player : Node
-var _in_editor : bool
+var control : Node
var bottom_bar : Control
var top_bar : Control
func _fetch ():
- var root = get_tree().root.get_child(0)
+ var root = get_tree().root.get_node("world")
player = root.get_node("player")
+ control = player.get_node("control")
if bottom_bar == null: bottom_bar = get_node("bottom_bar")
if top_bar == null: top_bar = get_node("top_bar")
func _ready():
_fetch()
- bottom_bar.build()
func refresh (in_editor : bool):
_fetch()