Added description cache clear when changing Textbox width via MCM
This commit is contained in:
1 parent
3ff3a6f249
commit
fc05ea0907
2 files changed
+7
-2
No files matched your search
@@ -581,13 +581,17 @@ function EID:printDescription(desc)
|
||||
end
|
||||
end
|
||||
if previousDesc ~= desc.Description then
|
||||
previousFormattedLines = {}
|
||||
previousBulletpoints = {}
|
||||
EID:clearDescriptionCache()
|
||||
previousDesc = desc.Description
|
||||
end
|
||||
EID:printBulletPoints(desc.Description, renderPos)
|
||||
end
|
||||
|
||||
function EID:clearDescriptionCache()
|
||||
previousFormattedLines = {}
|
||||
previousBulletpoints = {}
|
||||
end
|
||||
|
||||
function EID:printBulletPoints(description, renderPos)
|
||||
local textboxWidth = tonumber(EID.Config["TextboxWidth"])
|
||||
local textScale = Vector(EID.Scale, EID.Scale)
|
||||
|
||||
Reference in new issue
Block a user