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
|
-- private functions
|
||||||
local function onError(protocol, message, errorCode)
|
local function onError(protocol, message, errorCode)
|
||||||
loadBox:destroy()
|
if loadBox then
|
||||||
loadBox = nil
|
loadBox:destroy()
|
||||||
|
loadBox = nil
|
||||||
|
end
|
||||||
|
|
||||||
if not errorCode then
|
if not errorCode then
|
||||||
EnterGame.clearAccountFields()
|
EnterGame.clearAccountFields()
|
||||||
|
|
|
@ -76,10 +76,10 @@ function setSkillBase(id, value, baseValue)
|
||||||
|
|
||||||
if value > baseValue then
|
if value > baseValue then
|
||||||
widget:setColor('#008b00') -- green
|
widget:setColor('#008b00') -- green
|
||||||
skill:setTooltip(baseValue .. ' + ' .. (value - baseValue))
|
skill:setTooltip(baseValue .. ' +' .. (value - baseValue))
|
||||||
elseif value < baseValue then
|
elseif value < baseValue then
|
||||||
widget:setColor('#b22222') -- red
|
widget:setColor('#b22222') -- red
|
||||||
skill:setTooltip(baseValue .. ' - ' .. (value - baseValue))
|
skill:setTooltip(baseValue .. ' ' .. (value - baseValue))
|
||||||
else
|
else
|
||||||
widget:setColor('#bbbbbb') -- default
|
widget:setColor('#bbbbbb') -- default
|
||||||
skill:removeTooltip()
|
skill:removeTooltip()
|
||||||
|
|
|
@ -15,6 +15,8 @@ MessageSettings = {
|
||||||
MessageTypes = {
|
MessageTypes = {
|
||||||
[MessageModes.MonsterSay] = MessageSettings.consoleOrange,
|
[MessageModes.MonsterSay] = MessageSettings.consoleOrange,
|
||||||
[MessageModes.MonsterYell] = MessageSettings.consoleOrange,
|
[MessageModes.MonsterYell] = MessageSettings.consoleOrange,
|
||||||
|
[MessageModes.BarkLow] = MessageSettings.consoleOrange,
|
||||||
|
[MessageModes.BarkLoud] = MessageSettings.consoleOrange,
|
||||||
[MessageModes.Failure] = MessageSettings.statusSmall,
|
[MessageModes.Failure] = MessageSettings.statusSmall,
|
||||||
[MessageModes.Login] = MessageSettings.bottomWhite,
|
[MessageModes.Login] = MessageSettings.bottomWhite,
|
||||||
[MessageModes.Game] = MessageSettings.centerWhite,
|
[MessageModes.Game] = MessageSettings.centerWhite,
|
||||||
|
|
Loading…
Reference in New Issue