tibia-client/data/modules/mainmenu/menustate.lua

21 lines
362 B
Lua
Raw Normal View History

-- menu state
function onEnterMenuState()
mainMenu = UI.load("mainmenu/mainmenu.yml")
end
function onLeaveMenuState()
end
function onApplicationClose()
onLeaveMenuState()
App.exit()
end
-- here is where everything starts
if not initialStateLoaded then
onEnterMenuState()
2011-05-03 00:48:41 +02:00
App.onClose = onApplicationClose
initialStateLoaded = true
2011-05-01 20:47:35 +02:00
end