introduce coloured loot message

This commit is contained in:
ErikasKontenis
2022-08-09 19:59:44 +03:00
parent 1c35d04337
commit eed5309ed0
11 changed files with 89 additions and 14 deletions

View File

@@ -646,7 +646,12 @@ function addTabText(text, speaktype, tab, creatureName)
label:setColoredText(highlightData)
end
end
if tab == serverTab then
local highlightText = toHighlightedText(text, speaktype.color)
label:setColoredText(highlightText)
end
label.name = creatureName
consoleBuffer.onMouseRelease = function(self, mousePos, mouseButton)
processMessageMenu(mousePos, mouseButton, nil, nil, nil, tab)