Don't show colours on bag, room and floor overview
This commit is contained in:
1 parent
3ed5c89bc1
commit
e936098d3a
1 file changed
+8
-6
+8
-6
@@ -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}}"
|
||||||
@@ -1330,7 +1332,7 @@ function EID:bagContainsItem(itemID, itemCount)
|
|||||||
foundCount = foundCount + 1
|
foundCount = foundCount + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if foundCount == 0 then
|
if foundCount == 0 then
|
||||||
return false
|
return false
|
||||||
elseif foundCount < itemCount then
|
elseif foundCount < itemCount then
|
||||||
|
|||||||
Reference in new issue
Block a user