From 5df8efde7fe21b4b6fe9995f101ec5cc830e3bad Mon Sep 17 00:00:00 2001 From: Wofsauge Date: Tue, 10 Nov 2020 18:46:04 +0100 Subject: [PATCH] Added Blank Makrup and fixed generic Trinket and collectible icon --- eid_api.lua | 4 ++-- eid_data.lua | 1 + resources/gfx/eid_inline_icons.anm2 | 13 ++++++++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/eid_api.lua b/eid_api.lua index 9e90fa9f..78afc6f3 100644 --- a/eid_api.lua +++ b/eid_api.lua @@ -316,11 +316,11 @@ end function EID:createItemIconObject(str) local collID,numReplace = string.gsub(str, "Collectible", "") local item = nil - if numReplace>0 then + if numReplace>0 and collID~="" then item = EID.itemConfig:GetCollectible(tonumber(collID)) end local trinketID,numReplace2 = string.gsub(str, "Trinket", "") - if numReplace2>0 then + if numReplace2>0 and trinketID~="" then item = EID.itemConfig:GetTrinket(tonumber(trinketID)) end if item == nil then diff --git a/eid_data.lua b/eid_data.lua index be40c709..6e63470b 100644 --- a/eid_data.lua +++ b/eid_data.lua @@ -20,6 +20,7 @@ EID.InlineIcons = { ["ArrowUp"] = {"ArrowUp", 0, 8, 9}, ["ArrowDown"] = {"ArrowDown", 0, 8, 9}, ["Warning"] = {"Warning", 0, 4, 9}, + ["Blank"] = {"Blank", 0, 0, 0}, -- Numbers ["0"] = {"numbers", 0, 4, 7}, ["1"] = {"numbers", 1, 4, 7, -2}, diff --git a/resources/gfx/eid_inline_icons.anm2 b/resources/gfx/eid_inline_icons.anm2 index 5d0ff9c2..52ea3fab 100644 --- a/resources/gfx/eid_inline_icons.anm2 +++ b/resources/gfx/eid_inline_icons.anm2 @@ -1,5 +1,5 @@ - + @@ -247,5 +247,16 @@ + + + + + + + + + + +