Update GUI
Posted: Mon Sep 25, 2017 5:24 pm
Hi all!
How to update GUI properties?
When I added
Then it works only on GUI-creation-event, but not on every tick.
How to update GUI properties?
When I added
Code: Select all
player.gui.left.add{type = "frame", name = "frameTick", direction = "horizontal"}
player.gui.left.frameTick.add{type ="table", name = "tabTick", colspan = 2}
local tab = player.gui.left.frameTick.tabTick
tab.add{type = "label", name = "label_tick", caption = "Tick"}
tab.add{type = "button", name = "tick_value", caption = game.tick}