From 94d99a5b3f6ca2b3df5190dbc9f69337cffe57d9 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 d8251705..61ea72c0 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -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