Added missing talk message types, few minor fixes.

This commit is contained in:
BeniS 2012-08-21 01:22:47 +12:00
parent 4ed52059f7
commit 518e123a08
3 changed files with 8 additions and 4 deletions

View File

@ -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()

View File

@ -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()

View File

@ -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,