We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a188e6 commit 48652f7Copy full SHA for 48652f7
[gameplay]/killmessages/scripts/client/c.ui.lua
@@ -13,6 +13,10 @@ function outputMessage(new)
13
14
new.initTick = getTickCount()
15
16
+ if new.icon.path and fileExists(new.icon.path) then
17
+ new.icon.texture = dxCreateTexture(new.icon.path)
18
+ end
19
+
20
table.insert(messages, new)
21
22
local displayLines = tonumber(getSetting('displayLines')) or 5
@@ -103,6 +107,10 @@ function renderMessages()
103
107
104
108
y = y - lineHeight - padding
105
109
else
110
+ if v.icon.path and v.icon.texture and isElement(v.icon.texture) then
111
+ destroyElement(v.icon.texture)
112
113
106
114
table.remove(messages, k)
115
116
if (#messages == 0) then
0 commit comments