aboutsummaryrefslogtreecommitdiff
path: root/scripts/gui.gd
diff options
context:
space:
mode:
authorjacopograndi <jacopo.grandi@outlook.it>2021-12-09 00:52:59 +0100
committerjacopograndi <jacopo.grandi@outlook.it>2021-12-09 00:52:59 +0100
commit0f518727c28d3204415db14c7ca0e4f7cb653677 (patch)
treea595121771b69a52f17154d8e5c61b7e4b2b8190 /scripts/gui.gd
working
Diffstat (limited to 'scripts/gui.gd')
-rw-r--r--scripts/gui.gd12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/gui.gd b/scripts/gui.gd
new file mode 100644
index 0000000..bae4ffc
--- /dev/null
+++ b/scripts/gui.gd
@@ -0,0 +1,12 @@
+extends Panel
+
+var _player
+var _label
+
+func _ready():
+ _player = self.get_parent().get_parent().find_node("player")
+ _label = self.find_node("Label")
+
+func _process(delta):
+ _label.text = str(_player.sel_map[_player.sel])
+