Feature/loading messages (#220)
* Add loading message * Add messages and cache file * Lint fix --------- Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
1 parent
6a46d4cd09
commit
b77519493d
8 files changed
+78
-2
No files matched your search
@@ -16,6 +16,7 @@ function MainSceneContainerChanged()
|
||||
HideLoadingScreen()
|
||||
InitEcpArgs()
|
||||
m.scene.signalBeacon("AppLaunchComplete")
|
||||
CopyLoadingMessagesToCache()
|
||||
end function
|
||||
|
||||
function StartWebServer()
|
||||
|
||||
@@ -17,6 +17,7 @@ function MainSceneContainerChanged()
|
||||
HideLoadingScreen()
|
||||
InitEcpArgs()
|
||||
m.scene.signalBeacon("AppLaunchComplete")
|
||||
CopyLoadingMessagesToCache()
|
||||
end function
|
||||
|
||||
function StartWebServer()
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
[
|
||||
"Now loading Playlet...",
|
||||
"One moment please...",
|
||||
"Downloading the internet...",
|
||||
"Unclogging the tubes...",
|
||||
"Warming up the flux capacitor...",
|
||||
"Loading, ehm, stuff...",
|
||||
"Restoring quantum entanglement...",
|
||||
"Searching for kitten videos...",
|
||||
"One Mississippi... two Mississippi...",
|
||||
"Checking the TV's extended warranty...",
|
||||
"Deleting system32...",
|
||||
"Updating: 3 hours 32 minutes remaining...",
|
||||
]
|
||||
@@ -3,5 +3,13 @@ function ShowLoadingScreen()
|
||||
end function
|
||||
|
||||
function HideLoadingScreen()
|
||||
m.global.loadingIndicator.visible = false
|
||||
loadingIndicator = m.global.loadingIndicator
|
||||
loadingIndicator.visible = false
|
||||
if loadingIndicator.hasField("message")
|
||||
loadingIndicator.message = ""
|
||||
end if
|
||||
end function
|
||||
|
||||
function CopyLoadingMessagesToCache()
|
||||
CopyFile("libpkg:/config/loading-messages.json5", "cachefs:/loading_messages_v1.json")
|
||||
end function
|
||||
Reference in new issue
Block a user