added "usual places" explanation

This commit is contained in:
Chr1Z93 2023-04-19 00:41:49 +02:00
parent 71396cbb6f
commit 2851e8a9a4
2 changed files with 17 additions and 5 deletions

View File

@ -1061,6 +1061,7 @@ function compareVersion(request)
-- stop here if on latest version or "don't show again" was clicked -- stop here if on latest version or "don't show again" was clicked
if MOD_VERSION == modMeta["latestVersion"] then return end if MOD_VERSION == modMeta["latestVersion"] then return end
if dontNotify[modMeta["latestVersion"]] then return end if dontNotify[modMeta["latestVersion"]] then return end
-- end here if no release notes are found -- end here if no release notes are found
@ -1068,7 +1069,9 @@ function compareVersion(request)
log("Release notes for latest version not found!") log("Release notes for latest version not found!")
else else
updateNotificationLoading() updateNotificationLoading()
UI.show("FinnIcon")
-- delay to avoid lagging during onLoad()
Wait.time(function() UI.show("FinnIcon") end, 1)
end end
end end
@ -1086,7 +1089,7 @@ function updateNotificationLoading()
local highlightText = "• " .. highlights[1] local highlightText = "• " .. highlights[1]
for i, entry in pairs(highlights) do for i, entry in pairs(highlights) do
if i~=1 then if i ~= 1 then
highlightText = highlightText .. "\n• " .. entry highlightText = highlightText .. "\n• " .. entry
end end
end end
@ -1099,7 +1102,7 @@ function updateNotificationLoading()
highlightRow.attributes.preferredHeight = 20*#highlights highlightRow.attributes.preferredHeight = 20*#highlights
local window = find_tag_with_id(ui, 'updateNotification') local window = find_tag_with_id(ui, 'updateNotification')
window.attributes.height = highlightRow.attributes.preferredHeight + 100 window.attributes.height = highlightRow.attributes.preferredHeight + 125
-- update the XML UI -- update the XML UI
UI.setXmlTable(ui) UI.setXmlTable(ui)

View File

@ -26,7 +26,7 @@
animationDuration="0.2" animationDuration="0.2"
rectAlignment="UpperLeft" rectAlignment="UpperLeft"
offsetXY="60 -5" offsetXY="60 -5"
height="200" height="225"
width="350"> width="350">
<!-- Header --> <!-- Header -->
@ -53,7 +53,16 @@
</Cell> </Cell>
</Row> </Row>
<!-- Buttons: "Don't show again", "Details" and "Close" --> <!-- explanation -->
<Row preferredHeight="25">
<Cell>
<Panel padding="15 15 0 7">
<Text resizeTextForBestFit="true">Visit the usual place to receive this update.</Text>
</Panel>
</Cell>
</Row>
<!-- Buttons: "Don't show again" and "Close" -->
<Row preferredHeight="50"> <Row preferredHeight="50">
<Cell> <Cell>
<HorizontalLayout minHeight="55" <HorizontalLayout minHeight="55"