Few minnor chagnes while messing with FSM

This commit is contained in:
Cooldude2606
2018-06-12 16:53:00 +01:00
parent 13c5961d39
commit 864279377e
10 changed files with 102 additions and 51 deletions

View File

@@ -125,12 +125,6 @@ function Gui.cam_link(data)
return data.cam
end
script.on_event('on_player_joined_game',function(event)
Gui.toolbar.on_player_joined_game(event)
Gui.popup.on_player_joined_game(event)
Gui.left.on_player_joined_game(event)
end)
script.on_event('on_tick', function(event)
if Gui.left and ((event.tick+10)/(3600*game.speed)) % 15 == 0 then
Gui.left.update()
@@ -167,7 +161,12 @@ function Gui:on_init()
Gui.toolbar.on_rank_change(event)
Gui.center.on_rank_change(event)
end)
end
end
script.on_event('on_player_joined_game',function(event)
Gui.toolbar.on_player_joined_game(event)
Gui.popup.on_player_joined_game(event)
Gui.left.on_player_joined_game(event)
end)
end
function Gui:on_post()