Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if level and level.present() then
- -- if a save game is loaded, do this:
- local htime = level.get_time_hours()
- if htime <= 5 or htime >= 20 then
- -- night_menu
- xml:InitStatic("mm_night", self)
- -- this calls things defined in the ui_mm_main.xml file
- else
- -- day_manu
- xml:InitStatic("mm_day", self)
- end
- else
- -- if a save game has not yet been loaded
- xml:InitStatic("mm_start", self)
- end
Advertisement
Add Comment
Please, Sign In to add comment