diff --git a/playlet-lib/src/components/MainScene.transpiled.brs b/playlet-lib/src/components/MainScene.transpiled.brs index 7cdbbb38..d7fd41bd 100644 --- a/playlet-lib/src/components/MainScene.transpiled.brs +++ b/playlet-lib/src/components/MainScene.transpiled.brs @@ -51,8 +51,8 @@ function StartWebServer() m.dialServer.callfunc("StartServer", invalid) end function -function ShowAnnouncement() - DialogUtils_ShowDialogOnce({ +function ShowAnnouncement() as void + dialog = DialogUtils_ShowDialogOnce({ messageId: "1736288537" title: "Announcement - Playlet backend" message: [ @@ -65,5 +65,14 @@ function ShowAnnouncement() alwaysOnTop: true marginWidth: 180 }) + if dialog = invalid + return + end if + m.scene.signalBeacon("AppDialogInitiate") + m.top.observeField("wasClosed", FuncName(OnAnnouncementDialogClosed)) +end function + +function OnAnnouncementDialogClosed() + m.scene.signalBeacon("AppDialogComplete") end function '//# sourceMappingURL=./MainScene.brs.map \ No newline at end of file