Advertisement
tinyevil

Untitled

Aug 28th, 2019
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. function show_prelevel_screen()
  2.     create_screen()
  3.    
  4.     local level_parser = OpenLevel("level1")
  5.    
  6.     level_parser:parse_mission_goals()
  7.     :next(function(mission_goals) -- async callback
  8.         create_mission_goals_widget(mission_goals)
  9.     end)
  10.    
  11.     create_close_button(function()
  12.         level_parser:close()
  13.         hide()
  14.     end)
  15.    
  16.     create_play_button(function()
  17.         goto_loading_screen(level_parser)
  18.     end)
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement