mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Fixed ExpGamingAdmin.Gui button_flow
This commit is contained in:
@@ -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})
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user