Add mod indicator override parameter

This commit is contained in:
Valentin Lampriere committed 2022-01-15 00:28:34 +01:00
1 parent 04c593210c
commit 0b9175b05b
1 file changed
+4 -2
+4 -2
View File
@@ -1050,9 +1050,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