ItemReminder: Improved automatic overview line hide feature and added mcm option for it

This commit is contained in:
Wofsauge committed 2024-05-12 23:53:21 +02:00
1 parent 687df40be6
commit 14e0b8646d
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -657,7 +657,8 @@ function EID:ItemReminderGetDescription()
countLines = countLines + numLinebreaks + 2 -- one for the item name, one for initial line
end
countLines = countLines + math.ceil(countText/EID.Config["TextboxWidth"])
if countLines < 12 then
local allowedLines = (EID:getScreenSize().Y - EID.Config["YPosition"]) / 14 -- approximate the available screen space
if countLines < allowedLines then
tryTrim = false -- dont trim if screen is not filled with a lot of text
end
end
+1
View File
@@ -614,6 +614,7 @@ if MCMLoaded then
MCM.AddText("EID", "Reminder", "Item Descriptions")
EID:AddNumberSetting("Reminder", "ItemReminderMaxEntriesCount", "Max Entries", 0, 10, {infoText = {"Number of Descriptions possible to be displayed in the Item Reminder feature"}})
EID:AddNumberSetting("Reminder", "ItemReminderOverviewHideAfterRows", "Overview hide after X rows", 1, 20, {infoText = {"Reduces the length of the description in the overview categorie, if they are to long to display"}})
---------------------------------------------------------------------------