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