Item Reminder: Show Object ID if config option is enabled
implemented #970
This commit is contained in:
1 parent
151d9b9904
commit
21fc956ee6
1 file changed
+8
-4
@@ -411,8 +411,8 @@ EID.ItemReminderDescriptionModifier = {
|
|||||||
|
|
||||||
-- Simple function to help with adding properly formatted sections to the reminder description
|
-- Simple function to help with adding properly formatted sections to the reminder description
|
||||||
-- returns false, when no further descriptions should be added
|
-- returns false, when no further descriptions should be added
|
||||||
function EID:ItemReminderAddTempDescriptionEntry(icon, title, newDesc)
|
function EID:ItemReminderAddTempDescriptionEntry(icon, title, newDesc, objectID)
|
||||||
table.insert(EID.ItemReminderTempDescriptions, { icon or "{{Blank}}", title, newDesc })
|
table.insert(EID.ItemReminderTempDescriptions, { icon or "{{Blank}}", title, newDesc, objectID })
|
||||||
numAvailableDescriptionSlots = numAvailableDescriptionSlots - 1
|
numAvailableDescriptionSlots = numAvailableDescriptionSlots - 1
|
||||||
return EID:ItemReminderCanAddMoreToView()
|
return EID:ItemReminderCanAddMoreToView()
|
||||||
end
|
end
|
||||||
@@ -482,7 +482,7 @@ function EID:ItemReminderAddDescription(player, entityType, variant, subType, ex
|
|||||||
|
|
||||||
currentBlacklist[objectID] = true
|
currentBlacklist[objectID] = true
|
||||||
local iconString = extraIcon or EID:GetIconStringByDescriptionObject(descObj)
|
local iconString = extraIcon or EID:GetIconStringByDescriptionObject(descObj)
|
||||||
return EID:ItemReminderAddTempDescriptionEntry(iconString, descObj.Name, descObj.Description)
|
return EID:ItemReminderAddTempDescriptionEntry(iconString, descObj.Name, descObj.Description, objectID)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- In the overview category, check for special descriptions
|
-- In the overview category, check for special descriptions
|
||||||
@@ -499,7 +499,7 @@ function EID:ItemReminderAddSpecialDescriptions(player)
|
|||||||
if specialDesc.modifierFunction(descObj, player, true) then
|
if specialDesc.modifierFunction(descObj, player, true) then
|
||||||
currentBlacklist[objectID] = true
|
currentBlacklist[objectID] = true
|
||||||
local iconString = EID:GetIconStringByDescriptionObject(descObj)
|
local iconString = EID:GetIconStringByDescriptionObject(descObj)
|
||||||
EID:ItemReminderAddTempDescriptionEntry(iconString, descObj.Name, descObj.Description)
|
EID:ItemReminderAddTempDescriptionEntry(iconString, descObj.Name, descObj.Description, objectID)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if not EID:ItemReminderCanAddMoreToView() then return end
|
if not EID:ItemReminderCanAddMoreToView() then return end
|
||||||
@@ -971,6 +971,10 @@ function EID:ItemReminderGetDescription()
|
|||||||
if EID.Config["ShowItemName"] then
|
if EID.Config["ShowItemName"] then
|
||||||
finalHoldMapDesc = finalHoldMapDesc .. "{{ColorEIDObjName}}" .. entry[2]
|
finalHoldMapDesc = finalHoldMapDesc .. "{{ColorEIDObjName}}" .. entry[2]
|
||||||
end
|
end
|
||||||
|
-- Display Entity ID if its not empty and the config option is enabled
|
||||||
|
if EID.Config["ShowObjectID"] and entry[4] then
|
||||||
|
finalHoldMapDesc = finalHoldMapDesc .. " {{ColorGray}}" .. entry[4]
|
||||||
|
end
|
||||||
local description = entry[3] .. "#"
|
local description = entry[3] .. "#"
|
||||||
|
|
||||||
if tryTrim then
|
if tryTrim then
|
||||||
|
|||||||
Reference in new issue
Block a user