aboutsummaryrefslogtreecommitdiff
path: root/scripts/gui.gd
diff options
context:
space:
mode:
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])
+