Adds Button Icons and improved bag of crafting controller detection

This commit is contained in:
Wofsauge committed 2021-07-20 21:19:00 +02:00
1 parent a4f6098704
commit bd8b9d18c3
6 files changed
+57 -6

No files matched your search

+1 -1
View File
@@ -598,7 +598,7 @@ function EID:renderInlineIcons(spriteTable, posX, posY)
for _, sprite in ipairs(spriteTable) do
local Xoffset = sprite[1][5] or -1
local Yoffset = sprite[1][6] or 0
local spriteObj = sprite[1][7] or EID.InlineIconSprite
local spriteObj = (type(sprite[1][7]) == "function" and sprite[1][7]()) or sprite[1][7] or EID.InlineIconSprite
if sprite[1][2] >=0 then
spriteObj:SetFrame(sprite[1][1], sprite[1][2])
elseif not spriteObj:IsPlaying(sprite[1][1]) or spriteObj:IsFinished(sprite[1][1]) then