Don't show colours on bag, room and floor overview

This commit is contained in:
Kwonunn committed 2022-09-11 14:17:41 +02:00
1 parent 3ed5c89bc1
commit e936098d3a
1 file changed
+7 -5
+7 -5
View File
@@ -1304,11 +1304,13 @@ function EID:tableToCraftingIconsMerged(craftTable, indicateCompleteContent)
for nr, count in ipairs(filteredList) do for nr, count in ipairs(filteredList) do
if (count > 0) then if (count > 0) then
local coloring = "" local coloring = ""
local bagContainsItem = EID:bagContainsItem(nr, count) if indicateCompleteContent then
if bagContainsItem == 1 then local bagContainsItem = EID:bagContainsItem(nr, count)
coloring = "{{ColorBagComplete}}" if bagContainsItem == 1 then
elseif bagContainsItem == 2 then coloring = "{{ColorBagComplete}}"
coloring = "{{ColorBagOverfill}}" elseif bagContainsItem == 2 then
coloring = "{{ColorBagOverfill}}"
end
end end
iconString = iconString..coloring..count.."{{Crafting"..nr.."}}{{CR}}" iconString = iconString..coloring..count.."{{Crafting"..nr.."}}{{CR}}"