From 0b9175b05b62a4d4758362b628b862071458d760 Mon Sep 17 00:00:00 2001 From: Valentin Lampriere Date: Fri, 14 Jan 2022 14:06:23 +0100 Subject: [PATCH] Add mod indicator override parameter --- eid_api.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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