From 7756a53dfd3723c5cce710e3463b246cb6aa2ae0 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Fri, 27 Dec 2024 12:13:06 -0500 Subject: [PATCH] lint --- playlet-lib/src/components/MainScene.bs | 2 +- .../src/components/MainScene.transpiled.brs | 32 ++++++++----------- .../src/components/MainScene.transpiled.xml | 1 + 3 files changed, 15 insertions(+), 20 deletions(-) diff --git a/playlet-lib/src/components/MainScene.bs b/playlet-lib/src/components/MainScene.bs index 5c8b9b07..513c1b03 100644 --- a/playlet-lib/src/components/MainScene.bs +++ b/playlet-lib/src/components/MainScene.bs @@ -1,9 +1,9 @@ +import "pkg:/components/Dialog/DialogUtils.bs" 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" -import "pkg:/components/Dialog/DialogUtils.bs" function Init() m.scene = m.top.getScene() diff --git a/playlet-lib/src/components/MainScene.transpiled.brs b/playlet-lib/src/components/MainScene.transpiled.brs index 52b116f5..42346bac 100644 --- a/playlet-lib/src/components/MainScene.transpiled.brs +++ b/playlet-lib/src/components/MainScene.transpiled.brs @@ -1,3 +1,4 @@ +'import "pkg:/components/Dialog/DialogUtils.bs" 'import "pkg:/components/EcpArgs.bs" 'import "pkg:/components/parts/AutoBind/AutoBind.part.bs" 'import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs" @@ -33,24 +34,17 @@ function StartWebServer() end function function ShowAnnouncement() - title = "Announcement - Playlet backend" - message = [ - "An experimental built-in backend has been added to Playlet." - "This allows you to access YouTube content without the need for an Invidious instance." - "To use it, go to the Settings > Invidious > Instance and set the field to empty (Edit, and delete the url)." - "Please note that it's missing some features and may not work as expected." - "Thank you for using Playlet!" - ] - 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 + DialogUtils_ShowDialogEx({ + title: "Announcement - Playlet backend" + message: [ + "An experimental built-in backend has been added to Playlet." + "This allows you to access YouTube content without the need for an Invidious instance." + "To use it, go to the Settings > Invidious > Instance and set the field to empty (Edit, and delete the url)." + "Please note that it's missing some features and may not work as expected." + "Thank you for using Playlet!" + ] + alwaysOnTop: true + marginWidth: 180 + }) end function '//# sourceMappingURL=./MainScene.brs.map \ No newline at end of file diff --git a/playlet-lib/src/components/MainScene.transpiled.xml b/playlet-lib/src/components/MainScene.transpiled.xml index 13863f92..6ac902d9 100644 --- a/playlet-lib/src/components/MainScene.transpiled.xml +++ b/playlet-lib/src/components/MainScene.transpiled.xml @@ -16,6 +16,7 @@