diff --git a/eid_api.lua b/eid_api.lua index 094f9bc5..87163edf 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -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