mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
Implemented the mount interface, Fixed some interface stuff, Some cosmetics, and Updated the outfits window
* Added new arrow buttons. * Fixed the vertical separator. * Added new game_playermount module to handle player mounting. * Moved the battle icons to /images. * Outfit window accommodates for mounts, loads addons more efficiently and keeps addons set on update, added new Outfit.randomize function that allows you to randomize your outfit colors, and set up a new layout.
This commit is contained in:
@@ -117,15 +117,15 @@ function GameInterface.show()
|
||||
end
|
||||
|
||||
function GameInterface.hide()
|
||||
if(logoutWindow) then
|
||||
if logoutWindow then
|
||||
logoutWindow:destroy()
|
||||
logoutWindow = nil
|
||||
end
|
||||
if(exitWindow) then
|
||||
if exitWindow then
|
||||
exitWindow:destroy()
|
||||
exitWindow = nil
|
||||
end
|
||||
if(countWindow) then
|
||||
if countWindow then
|
||||
countWindow:destroy()
|
||||
countWindow = nil
|
||||
end
|
||||
@@ -144,7 +144,7 @@ function GameInterface.exit()
|
||||
end
|
||||
|
||||
function GameInterface.tryExit()
|
||||
if(exitWindow) then
|
||||
if exitWindow then
|
||||
return true
|
||||
end
|
||||
exitWindow = g_ui.createWidget('ExitWindow', rootWidget)
|
||||
@@ -183,7 +183,7 @@ function GameInterface.logout()
|
||||
end
|
||||
|
||||
function GameInterface.tryLogout()
|
||||
if(logoutWindow) then
|
||||
if logoutWindow then
|
||||
return
|
||||
end
|
||||
logoutWindow = g_ui.createWidget('LogoutWindow', rootWidget)
|
||||
|
Reference in New Issue
Block a user