mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +02:00
Fix keyword highlighting in chat
This commit is contained in:
parent
fa8971498f
commit
dabc7548fe
@ -401,7 +401,7 @@ function addTabText(text, speaktype, tab, creatureName)
|
|||||||
label:setText(text)
|
label:setText(text)
|
||||||
|
|
||||||
-- Calculate the positions of the highlighted text and fill with string.char(127) [Width: 1]
|
-- Calculate the positions of the highlighted text and fill with string.char(127) [Width: 1]
|
||||||
local drawText = label:getDrawText()
|
local drawText = label:getText()
|
||||||
local tmpText = ""
|
local tmpText = ""
|
||||||
for i = 1, #highlightData / 3 do
|
for i = 1, #highlightData / 3 do
|
||||||
local dataBlock = { _start = highlightData[(i-1)*3+1], _end = highlightData[(i-1)*3+2], words = highlightData[(i-1)*3+3] }
|
local dataBlock = { _start = highlightData[(i-1)*3+1], _end = highlightData[(i-1)*3+2], words = highlightData[(i-1)*3+3] }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user