mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
modules changes
* speedup widget destruction checks * rework outfit module using grid layout and the new design * fixes in console, terminal, textmessage modules
This commit is contained in:
@@ -24,7 +24,7 @@ local function displayMessage(msgtype, msg, time)
|
||||
if not g_game.isOnline() then return end
|
||||
|
||||
if msgtype.consoleTab ~= nil then
|
||||
if msgtype.consoleOption == nil or Options[msgtype.consoleOption] then
|
||||
if msgtype.consoleOption == nil or Options.getOption(msgtype.consoleOption) then
|
||||
Console.addText(msg, msgtype, msgtype.consoleTab)
|
||||
end
|
||||
end
|
||||
@@ -93,7 +93,7 @@ end
|
||||
function TextMessage.terminate()
|
||||
disconnect(g_game, { onDeath = TextMessage.displayDeadMessage,
|
||||
onTextMessage = TextMessage.display,
|
||||
onGameStart = TextMessage.clearMessages })
|
||||
onGameEnd = TextMessage.clearMessages })
|
||||
centerTextMessagePanel:destroy()
|
||||
centerTextMessagePanel = nil
|
||||
bottomStatusLabel:destroy()
|
||||
|
Reference in New Issue
Block a user