Added science info

This commit is contained in:
Cooldude2606
2019-05-28 19:39:13 +01:00
parent 3bb11941d9
commit 53ebc00631
6 changed files with 357 additions and 5 deletions

View File

@@ -154,6 +154,8 @@ end
function LeftFrames._prototype:set_open_by_default(state)
if state == false then
self.open_by_default = false
elseif state == nil then
self.open_by_default = true
else
self.open_by_default = state
end
@@ -282,7 +284,7 @@ Event.add(defines.events.on_player_created,function(event)
define.events.on_draw(player,frame)
end
if define.open_by_default == false then
if not define.open_by_default then
frame.visible = false
elseif type(define.open_by_default) == 'function' then
if not define.open_by_default(player,define.name) then