Fixed ExpGamingAdmin.Gui button_flow

This commit is contained in:
Cooldude2606
2018-11-04 16:16:30 +00:00
parent 081a13a77d
commit 6be2f07950
2 changed files with 2 additions and 1 deletions

View File

@@ -212,4 +212,5 @@ Admin.center = Gui.center{
-- Module Return
-- calling will draw the admin buttons to that frame
Admin.button_flow = AdminGui
return setmetatable(AdminGui,{__call=function(self,...) self.draw(...) end})

View File

@@ -129,7 +129,7 @@ script.on_event(defines.events.on_gui_click,function(event)
back_btn:draw(flow)
playerInfo(event.element.name,flow,true)
if Game.get_player(event.element.name) and event.player_index == Game.get_player(event.element.name).index then return end
if Admin and Admin.allowed(event.player_index) then Admin.btn_flow(flow).caption = event.element.name end
if Admin and Admin.allowed(event.player_index) then Admin.button_flow(flow).caption = event.element.name end
end)
script.on_event(defines.events.on_player_joined_game,function() ThisModule.update() end)