Daemonion

Untitled

Oct 15th, 2012
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. if level and level.present() then
  2. -- if a save game is loaded, do this:
  3. local htime = level.get_time_hours()
  4. if htime <= 5 or htime >= 20 then
  5. -- night_menu
  6. xml:InitStatic("mm_night", self)
  7. -- this calls things defined in the ui_mm_main.xml file
  8. else
  9. -- day_manu
  10. xml:InitStatic("mm_day", self)
  11. end
  12. else
  13. -- if a save game has not yet been loaded
  14. xml:InitStatic("mm_start", self)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment