diff --git a/modsettings/CustomUIAssets.json b/modsettings/CustomUIAssets.json
index 4d7616d1..c942aa49 100644
--- a/modsettings/CustomUIAssets.json
+++ b/modsettings/CustomUIAssets.json
@@ -203,5 +203,10 @@
"Name": "TitleGradient",
"Type": 0,
"URL": "https://i.imgur.com/Mdjm349.png"
+ },
+ {
+ "Name": "FinnIcon",
+ "Type": 0,
+ "URL": "http://cloud-3.steamusercontent.com/ugc/2037357792052848566/5DA900C430E97D3DFF2C9B8A3DB1CB2271791FC7/"
}
]
diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua
index a035684a..cf4ad47f 100644
--- a/src/core/Global.ttslua
+++ b/src/core/Global.ttslua
@@ -42,9 +42,8 @@ local blessCurseManagerApi = require("chaosbag/BlessCurseManagerApi")
-- online functionality related variables
local MOD_VERSION = "3.1.0"
local SOURCE_REPO = 'https://raw.githubusercontent.com/chr1z93/loadable-objects/main'
-local library, requestObj
+local library, requestObj, modMeta, notificationVisible
local dontNotify = {}
-local modMeta
---------------------------------------------------------
-- data for tokens
@@ -1069,9 +1068,7 @@ function compareVersion(request)
log("Release notes for latest version not found!")
else
updateNotificationLoading()
-
- -- small delay to avoid lagging
- Wait.time(function() UI.show("updateNotification") end, 1)
+ UI.show("FinnIcon")
end
end
@@ -1108,11 +1105,23 @@ function updateNotificationLoading()
UI.setXmlTable(ui)
end
+-- triggered by clicking on the Finn Icon
+function onClick_FinnIcon()
+ if notificationVisible then
+ UI.hide("updateNotification")
+ notificationVisible = false
+ else
+ UI.show("updateNotification")
+ notificationVisible = true
+ end
+end
+
-- close / don't show again buttons on the update notification
function onClick_notification(_, parameter)
if parameter == "dontNotify" then
-- this variable tracks if "don't show again" was pressed for a version
dontNotify[modMeta["latestVersion"]] = true
end
+ UI.hide("FinnIcon")
UI.hide("updateNotification")
end
diff --git a/xml/UpdateNotification.xml b/xml/UpdateNotification.xml
index 8b152977..ef3ec286 100644
--- a/xml/UpdateNotification.xml
+++ b/xml/UpdateNotification.xml
@@ -1,5 +1,21 @@
+
+
+
+
-
+
Placeholder
|