From 6f0b7686f4a853fdad1fa29df2c035145ef92004 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sun, 13 Oct 2024 18:47:45 -0400 Subject: [PATCH] Remove annoucement --- playlet-lib/src/components/MainScene.bs | 34 ------------------- .../src/components/MainScene.transpiled.brs | 32 ----------------- 2 files changed, 66 deletions(-) diff --git a/playlet-lib/src/components/MainScene.bs b/playlet-lib/src/components/MainScene.bs index 3f8f486a..c49731db 100644 --- a/playlet-lib/src/components/MainScene.bs +++ b/playlet-lib/src/components/MainScene.bs @@ -2,7 +2,6 @@ import "pkg:/components/EcpArgs.bs" import "pkg:/components/parts/AutoBind/AutoBind.part.bs" import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs" import "pkg:/source/utils/LoadingScreen.bs" -import "pkg:/source/utils/Locale.bs" function Init() m.scene = m.top.getScene() @@ -19,7 +18,6 @@ function MainSceneContainerChanged() InitEcpArgs() m.scene.signalBeacon("AppLaunchComplete") CopyLoadingMessagesToCache() - ShowAnnouncement() end function function StartWebServer() @@ -32,35 +30,3 @@ function StartWebServer() m.dialServer = m.top.findNode("DialServer") m.dialServer@.StartServer() end function - -function GetDeviceFriendlyName() as string - deviceInfo = CreateObject("roDeviceInfo") - deviceFriendlyName = deviceInfo.GetFriendlyName() - if StringUtils.IsNullOrEmpty(deviceFriendlyName) - deviceFriendlyName = "Roku TV" - end if - return deviceFriendlyName -end function - -function ShowAnnouncement() - title = "Announcement #3 - Playlet innertube backend" - - message = [ - "Currently, most public Invidious instances don't work." - "Because of that, a new backend to play videos has been implemented and added to the settings, and it is enabled by default." - "If you would like to use your Invidious instance for playback, you can change the backend in the settings." - "Thank you." - ] - - buttons = [Tr(Locale.Buttons.OK)] - - dialog = CreateObject("roSGNode", "SimpleDialog") - dialog.title = title - dialog.message = message - dialog.buttons = buttons - deviceInfo = CreateObject("roDeviceInfo") - displaySize = deviceInfo.GetDisplaySize() - dialog.width = displaySize.w - 180 - - m.top.getScene().dialog = dialog -end function diff --git a/playlet-lib/src/components/MainScene.transpiled.brs b/playlet-lib/src/components/MainScene.transpiled.brs index 3740efd4..3cf9c0f9 100644 --- a/playlet-lib/src/components/MainScene.transpiled.brs +++ b/playlet-lib/src/components/MainScene.transpiled.brs @@ -2,7 +2,6 @@ 'import "pkg:/components/parts/AutoBind/AutoBind.part.bs" 'import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs" 'import "pkg:/source/utils/LoadingScreen.bs" -'import "pkg:/source/utils/Locale.bs" function Init() InitializeBindings() ' auto-generated! @@ -20,7 +19,6 @@ function MainSceneContainerChanged() InitEcpArgs() m.scene.signalBeacon("AppLaunchComplete") CopyLoadingMessagesToCache() - ShowAnnouncement() end function function StartWebServer() @@ -31,34 +29,4 @@ function StartWebServer() m.dialServer = m.top.findNode("DialServer") m.dialServer.callfunc("StartServer", invalid) end function - -function GetDeviceFriendlyName() as string - deviceInfo = CreateObject("roDeviceInfo") - deviceFriendlyName = deviceInfo.GetFriendlyName() - if StringUtils_IsNullOrEmpty(deviceFriendlyName) - deviceFriendlyName = "Roku TV" - end if - return deviceFriendlyName -end function - -function ShowAnnouncement() - title = "Announcement #3 - Playlet innertube backend" - message = [ - "Currently, most public Invidious instances don't work." - "Because of that, a new backend to play videos has been implemented and added to the settings, and it is enabled by default." - "If you would like to use your Invidious instance for playback, you can change the backend in the settings." - "Thank you." - ] - buttons = [ - Tr("OK") - ] - dialog = CreateObject("roSGNode", "SimpleDialog") - dialog.title = title - dialog.message = message - dialog.buttons = buttons - deviceInfo = CreateObject("roDeviceInfo") - displaySize = deviceInfo.GetDisplaySize() - dialog.width = displaySize.w - 180 - m.top.getScene().dialog = dialog -end function '//# sourceMappingURL=./MainScene.brs.map \ No newline at end of file