Added Sliders

This commit is contained in:
Cooldude2606
2019-05-14 20:04:31 +01:00
parent 0bd4170629
commit 4b3459f20f
7 changed files with 211 additions and 8 deletions

View File

@@ -32,12 +32,13 @@ end
function Toolbar.update(player)
local top = Gui.get_top_element_flow(player)
if not top then return end
local visible = top[Gui.top_toggle_button_name].caption == '<'
for _,button in pairs(Toolbar.buttons) do
local element
if top[button.name] then element = top[button.name]
else element = button:draw_to(top) end
if button.post_authenticator(player,button.clean_name or button.name) then
element.visible = true
element.visible = visible
element.enabled = true
else
element.visible = false