init resource number with correct amount
This commit is contained in:
parent
a5bf54f0d1
commit
3aab658b1e
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue