From 67eb9a5f614ee0da55532c276c3c857bda38fc01 Mon Sep 17 00:00:00 2001 From: Valentin Lampriere Date: Fri, 14 Jan 2022 14:35:02 +0100 Subject: [PATCH] Add comments to new API functions --- eid_api.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eid_api.lua b/eid_api.lua index 87163edf..8aa150de 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -1049,10 +1049,12 @@ function EID:getErrorColor() return EID:getColor(EID.Config["ErrorColor"], EID.InlineColors["ColorEIDError"]) end - +-- Specify the name of the mod which will be displayed next to the item name +-- By default EID takes the mod name function EID:setModIndicatorName(newName) EID.ModIndicator[EID._currentMod].Name = newName end +-- Set an icon for the mod which will be displayed next to the item name 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