Add mod indicator override parameter

This commit is contained in:
Valentin Lampriere committed 2022-01-14 14:06:23 +01:00
1 parent 939f2a7ab2
commit 94d99a5b3f
1 file changed
+4 -2
+4 -2
View File
@@ -1011,9 +1011,11 @@ function EID:getErrorColor()
end
function EID:addModIndicatorName(newName)
function EID:setModIndicatorName(newName)
EID.ModIndicator[EID._currentMod].Name = newName
end
function EID:addModIndicatorIcon(iconMarkup)
function EID:setModIndicatorIcon(iconMarkup, override)
if override == nil then override = true end -- overide previous value if not specified
if EID.ModIndicator[EID._currentMod].Icon ~= nil and override == false then return end
EID.ModIndicator[EID._currentMod].Icon = iconMarkup
end