init resource number with correct amount

This commit is contained in:
Ronja 2020-10-26 13:52:28 +01:00
parent a5bf54f0d1
commit 3aab658b1e

View file

@ -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