Added Build In Test Gui

This commit is contained in:
Cooldude2606
2017-12-16 17:19:45 +00:00
parent b1ebca6344
commit d2b86222cc
4 changed files with 116 additions and 117 deletions

View File

@@ -30,7 +30,8 @@ function toolbar.draw(player)
local player = Game.get_player(player)
if not player then return end
local toolbar_frame = mod_gui.get_button_flow(player)
toolbar_frame.clear()
toolbar_frame.clear()
if not Gui._get_data('toolbar') then return end
for name,button in pairs(Gui._get_data('toolbar')) do
if is_type(Ranking,'table') and Ranking._presets and Ranking._presets().meta.rank_count > 0 then
local rank = Ranking.get_rank(player)