From 0f518727c28d3204415db14c7ca0e4f7cb653677 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Thu, 9 Dec 2021 00:52:59 +0100 Subject: working --- scripts/gui.gd | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/gui.gd (limited to 'scripts/gui.gd') 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]) + -- cgit v1.2.3-54-g00ecf