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:
@@ -5,7 +5,7 @@ local textWindow
|
||||
|
||||
-- private functions
|
||||
local function onGameEditText(id, itemId, maxLength, text, writter, time)
|
||||
if(textWindow) then
|
||||
if textWindow then
|
||||
return
|
||||
end
|
||||
textWindow = g_ui.createWidget('TextWindow', rootWidget)
|
||||
@@ -61,7 +61,7 @@ local function onGameEditText(id, itemId, maxLength, text, writter, time)
|
||||
end
|
||||
|
||||
local function onGameEditList(id, doorId, text)
|
||||
if(textWindow) then
|
||||
if textWindow then
|
||||
return
|
||||
end
|
||||
textWindow = g_ui.createWidget('TextWindow', rootWidget)
|
||||
@@ -105,7 +105,7 @@ function TextWindow.terminate()
|
||||
end
|
||||
|
||||
function TextWindow.destroy()
|
||||
if(textWindow) then
|
||||
if textWindow then
|
||||
textWindow:destroy()
|
||||
textWindow = nil
|
||||
end
|
||||
|
Reference in New Issue
Block a user