diff options
author | bd <bdunahu@operationnull.com> | 2025-05-24 18:50:01 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-05-24 18:50:01 -0400 |
commit | 2190d18d8d58f867927126829e7c0d7ef6fac372 (patch) | |
tree | 1dd88af4374a9105ef2c723c43a68a0fd67e390f /scripts/morale.gd | |
parent | c38a303aad3c3c0d8114524e664da6ad721e21c4 (diff) |
Add UI panel which displays actions/upgrades
Diffstat (limited to 'scripts/morale.gd')
-rw-r--r-- | scripts/morale.gd | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/scripts/morale.gd b/scripts/morale.gd deleted file mode 100644 index 613c7f5..0000000 --- a/scripts/morale.gd +++ /dev/null @@ -1,11 +0,0 @@ -extends Label - -func _ready(): - GameData.connect("morale_changed", Callable(self, "_on_morale_changed")) - update_label(GameData.get_morale()) - -func _on_morale_changed(new_morale: int) -> void: - update_label(new_morale) - -func update_label(new_morale: int) -> void: - text = "Morale:" + str(new_morale) |