From 3aab658b1eac8a4baa527f0a10ef3420b4423c2f Mon Sep 17 00:00:00 2001 From: Ronja Date: Mon, 26 Oct 2020 13:52:28 +0100 Subject: [PATCH] init resource number with correct amount --- Luxe/blocks/ui/adventure.wren | 1 + 1 file changed, 1 insertion(+) diff --git a/Luxe/blocks/ui/adventure.wren b/Luxe/blocks/ui/adventure.wren index 05f4cc1..a98b9cf 100644 --- a/Luxe/blocks/ui/adventure.wren +++ b/Luxe/blocks/ui/adventure.wren @@ -327,6 +327,7 @@ class UiAdventure{ UILayout.set_margin(_ent, name, 2, 1, 0, 1) var amount = NumberField.create(_ent) + NumberField.set_value(amount, adventure.resources.get(resource["name"])) UILayout.set_margin(_ent, amount, 0, 1, 2, 1) Control.child_add(item, amount) //change resource data