mirror of
https://github.com/edubart/otclient.git
synced 2025-12-23 00:27:12 +01:00
scripting and UI improvements
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
-- menu state
|
||||
function onEnterMenuState()
|
||||
mainMenu = loadUI("modules/mainmenu/mainmenu.yml")
|
||||
mainMenu = UI.load("modules/mainmenu/mainmenu.yml")
|
||||
end
|
||||
|
||||
function onLeaveMenuState()
|
||||
@@ -15,6 +15,6 @@ end
|
||||
-- here is where everything starts
|
||||
if not initialStateLoaded then
|
||||
onEnterMenuState()
|
||||
setOnApplicationClose(onApplicationClose)
|
||||
App.setOnClose(onApplicationClose)
|
||||
initialStateLoaded = true
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user