Added missing talk message types, few minor fixes.
This commit is contained in:
parent
4ed52059f7
commit
518e123a08
|
@ -9,8 +9,10 @@ local protocolBox
|
|||
|
||||
-- private functions
|
||||
local function onError(protocol, message, errorCode)
|
||||
if loadBox then
|
||||
loadBox:destroy()
|
||||
loadBox = nil
|
||||
end
|
||||
|
||||
if not errorCode then
|
||||
EnterGame.clearAccountFields()
|
||||
|
|
|
@ -76,10 +76,10 @@ function setSkillBase(id, value, baseValue)
|
|||
|
||||
if value > baseValue then
|
||||
widget:setColor('#008b00') -- green
|
||||
skill:setTooltip(baseValue .. ' + ' .. (value - baseValue))
|
||||
skill:setTooltip(baseValue .. ' +' .. (value - baseValue))
|
||||
elseif value < baseValue then
|
||||
widget:setColor('#b22222') -- red
|
||||
skill:setTooltip(baseValue .. ' - ' .. (value - baseValue))
|
||||
skill:setTooltip(baseValue .. ' ' .. (value - baseValue))
|
||||
else
|
||||
widget:setColor('#bbbbbb') -- default
|
||||
skill:removeTooltip()
|
||||
|
|
|
@ -15,6 +15,8 @@ MessageSettings = {
|
|||
MessageTypes = {
|
||||
[MessageModes.MonsterSay] = MessageSettings.consoleOrange,
|
||||
[MessageModes.MonsterYell] = MessageSettings.consoleOrange,
|
||||
[MessageModes.BarkLow] = MessageSettings.consoleOrange,
|
||||
[MessageModes.BarkLoud] = MessageSettings.consoleOrange,
|
||||
[MessageModes.Failure] = MessageSettings.statusSmall,
|
||||
[MessageModes.Login] = MessageSettings.bottomWhite,
|
||||
[MessageModes.Game] = MessageSettings.centerWhite,
|
||||
|
|
Loading…
Reference in New Issue