Item Reminder: Add support for "ShowItemIcon" and "ShowItemName" config options
This commit is contained in:
1 parent
c2dc476169
commit
38dd07e082
1 file changed
+7
-2
@@ -940,13 +940,18 @@ function EID:ItemReminderGetDescription()
|
|||||||
|
|
||||||
-- Default: put all descriptions into one long description
|
-- Default: put all descriptions into one long description
|
||||||
for _, entry in ipairs(EID.ItemReminderTempDescriptions) do
|
for _, entry in ipairs(EID.ItemReminderTempDescriptions) do
|
||||||
|
if EID.Config["ShowItemIcon"] then
|
||||||
|
finalHoldMapDesc = finalHoldMapDesc .. entry[1] .. " "
|
||||||
|
end
|
||||||
|
if EID.Config["ShowItemName"] then
|
||||||
|
finalHoldMapDesc = finalHoldMapDesc .. "{{ColorEIDObjName}}" .. entry[2]
|
||||||
|
end
|
||||||
local description = entry[3] .. "#"
|
local description = entry[3] .. "#"
|
||||||
|
|
||||||
if tryTrim then
|
if tryTrim then
|
||||||
description = EID:ItemReminderTrimBulletPoints(description)
|
description = EID:ItemReminderTrimBulletPoints(description)
|
||||||
end
|
end
|
||||||
|
finalHoldMapDesc = finalHoldMapDesc .. "#" .. description
|
||||||
finalHoldMapDesc = finalHoldMapDesc .. entry[1] .. " {{ColorEIDObjName}}" .. entry[2] .. "#" .. description
|
|
||||||
end
|
end
|
||||||
|
|
||||||
EID.InsideItemReminder = false
|
EID.InsideItemReminder = false
|
||||||
|
|||||||
Reference in new issue
Block a user