mirror of
https://github.com/edubart/otclient.git
synced 2026-01-06 06:27:11 +01:00
remove game state classes
scripting improvements
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
-- events
|
||||
-- main menu methods
|
||||
function MainMenu_create()
|
||||
mainMenu = loadUI("modules/mainmenu/mainmenu.yml")
|
||||
end
|
||||
|
||||
function MainMenu_destroy()
|
||||
mainMenu:destroy()
|
||||
end
|
||||
|
||||
function MainMenu_enterGameClicked()
|
||||
enterGameWindow = loadUI("modules/mainmenu/entergamewindow.yml")
|
||||
enterGameWindow:getParent():lock(enterGameWindow)
|
||||
end
|
||||
|
||||
function MainMenu_optionsClicked()
|
||||
@@ -12,12 +21,5 @@ function MainMenu_infoClicked()
|
||||
end
|
||||
|
||||
function MainMenu_exitClicked()
|
||||
exitGame()
|
||||
onApplicationClose()
|
||||
end
|
||||
|
||||
-- create main menu
|
||||
function MainMenu_create()
|
||||
menuPanel = loadUI("modules/mainmenu/mainmenu.yml")
|
||||
end
|
||||
|
||||
MainMenu_create()
|
||||
Reference in New Issue
Block a user