Fixed Gui.left._prototype:first_open

This commit is contained in:
Cooldude2606
2018-10-13 16:22:54 +01:00
parent 7e03d6be1d
commit 3283fefe72

View File

@@ -164,7 +164,7 @@ function left._prototype:first_open(player)
else
frame = left_flow.add{type='frame',name=self.name,style=mod_gui.frame_style,caption=self.caption,direction='vertical'}
frame.style.visible = false
if is_type(self.open_on_join,'boolean') then frame.style.visible = self.open_on_join left_flow['gui-left-hide'].style.visible = true end
if is_type(self.open_on_join,'boolean') then frame.style.visible = self.open_on_join if left_flow['gui-left-hide'] then left_flow['gui-left-hide'].style.visible = true end end
end
if is_type(self.draw,'function') then self.draw(frame) else frame.style.visible = false error('No Callback On '..self.name) end
return frame