Added Config option to toggle display of item description texts

This commit is contained in:
Wofsauge committed 2022-05-17 23:06:33 +02:00
1 parent 2a2719009b
commit 275b677309
3 files changed
+9 -1

No files matched your search

+4
View File
@@ -163,6 +163,9 @@ EID.UserConfig = {
-- Toggle display of collectible or trinket icons next to the item name
-- Default = true
["ShowItemIcon"] = true,
-- Toggle display of collectible or Card and Pill descriptions
-- Default = true
["ShowItemDescription"] = true,
-- Toggle display of collectible descriptions
-- Default = true
["DisplayItemInfo"] = true,
@@ -457,6 +460,7 @@ EID.DefaultConfig = {
["ShowItemName"] = true,
["ShowItemType"] = true,
["ShowItemIcon"] = true,
["ShowItemDescription"] = true,
["DisplayItemInfo"] = true,
["DisplayTrinketInfo"] = true,
["ItemNameColor"] = "ColorEIDObjName",
+4 -1
View File
@@ -691,7 +691,10 @@ function EID:printDescription(desc, cachedID)
end
end
end
EID:printBulletPoints(desc.Description, renderPos)
if EID.Config["ShowItemDescription"] then
EID:printBulletPoints(desc.Description, renderPos)
end
end
function EID:printBulletPoints(description, renderPos)
+1
View File
@@ -528,6 +528,7 @@ if MCMLoaded then
EID:AddBooleanSetting("Visuals", "ShowItemName", "Display Item Name")
EID:AddBooleanSetting("Visuals", "ShowItemType", "Display Item Type")
EID:AddBooleanSetting("Visuals", "ShowItemIcon", "Display Item Icon")
EID:AddBooleanSetting("Visuals", "ShowItemDescription", "Display Item Description")
EID:AddBooleanSetting("Visuals", "TransformationText", "Display Transformation Name")
EID:AddBooleanSetting("Visuals", "TransformationIcons", "Display Transformation Icon")
EID:AddBooleanSetting("Visuals", "TransformationProgress", "Display Transformation Progress")