mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
Fixed Two Bugs
This commit is contained in:
@@ -133,7 +133,7 @@ function left._prototype:open(player)
|
|||||||
local left_flow = mod_gui.get_frame_flow(player)
|
local left_flow = mod_gui.get_frame_flow(player)
|
||||||
if not left_flow[self.name] then self:first_open(player) end
|
if not left_flow[self.name] then self:first_open(player) end
|
||||||
left_flow[self.name].style.visible = true
|
left_flow[self.name].style.visible = true
|
||||||
left_flow['gui-left-hide'].style.visible = true
|
if left_flow['gui-left-hide'] then left_flow['gui-left-hide'].style.visible = true end
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Used to force the gui closed for the player
|
--- Used to force the gui closed for the player
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ ThisModule.Gui = Gui.popup{
|
|||||||
local btn = next:draw(title)
|
local btn = next:draw(title)
|
||||||
btn.style.width = 20
|
btn.style.width = 20
|
||||||
btn.style.height = 20
|
btn.style.height = 20
|
||||||
if Role and Role.allowed(frame.player_index,'create-poll') or player.admin then
|
if Role and Role.allowed(frame.player_index,'create-poll') or game.players[frame.player_index].admin then
|
||||||
local btn = create_poll:draw(title)
|
local btn = create_poll:draw(title)
|
||||||
btn.style.width = 20
|
btn.style.width = 20
|
||||||
btn.style.height = 20
|
btn.style.height = 20
|
||||||
|
|||||||
Reference in New Issue
Block a user