This commit is contained in:
Brahim Hadriche committed 2024-12-27 12:13:06 -05:00
1 parent f89935a6f9
commit 7756a53dfd
3 files changed
+15 -20

No files matched your search

+1 -1
View File
@@ -1,9 +1,9 @@
import "pkg:/components/Dialog/DialogUtils.bs"
import "pkg:/components/EcpArgs.bs" import "pkg:/components/EcpArgs.bs"
import "pkg:/components/parts/AutoBind/AutoBind.part.bs" import "pkg:/components/parts/AutoBind/AutoBind.part.bs"
import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs" import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs"
import "pkg:/source/utils/LoadingScreen.bs" import "pkg:/source/utils/LoadingScreen.bs"
import "pkg:/source/utils/Locale.bs" import "pkg:/source/utils/Locale.bs"
import "pkg:/components/Dialog/DialogUtils.bs"
function Init() function Init()
m.scene = m.top.getScene() m.scene = m.top.getScene()
@@ -1,3 +1,4 @@
'import "pkg:/components/Dialog/DialogUtils.bs"
'import "pkg:/components/EcpArgs.bs" 'import "pkg:/components/EcpArgs.bs"
'import "pkg:/components/parts/AutoBind/AutoBind.part.bs" 'import "pkg:/components/parts/AutoBind/AutoBind.part.bs"
'import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs" 'import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs"
@@ -33,24 +34,17 @@ function StartWebServer()
end function end function
function ShowAnnouncement() function ShowAnnouncement()
title = "Announcement - Playlet backend" DialogUtils_ShowDialogEx({
message = [ title: "Announcement - Playlet backend"
"An experimental built-in backend has been added to Playlet." message: [
"This allows you to access YouTube content without the need for an Invidious instance." "An experimental built-in backend has been added to Playlet."
"To use it, go to the Settings > Invidious > Instance and set the field to empty (Edit, and delete the url)." "This allows you to access YouTube content without the need for an Invidious instance."
"Please note that it's missing some features and may not work as expected." "To use it, go to the Settings > Invidious > Instance and set the field to empty (Edit, and delete the url)."
"Thank you for using Playlet!" "Please note that it's missing some features and may not work as expected."
] "Thank you for using Playlet!"
buttons = [ ]
Tr("OK") alwaysOnTop: true
] marginWidth: 180
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 end function
'//# sourceMappingURL=./MainScene.brs.map '//# sourceMappingURL=./MainScene.brs.map
@@ -16,6 +16,7 @@
<script type="text/brightscript" uri="pkg:/source/utils/Types.brs" /> <script type="text/brightscript" uri="pkg:/source/utils/Types.brs" />
<script type="text/brightscript" uri="pkg:/source/utils/StringUtils.brs" /> <script type="text/brightscript" uri="pkg:/source/utils/StringUtils.brs" />
<script type="text/brightscript" uri="pkg:/source/utils/Logging.brs" /> <script type="text/brightscript" uri="pkg:/source/utils/Logging.brs" />
<script type="text/brightscript" uri="pkg:/components/Dialog/DialogUtils.brs" />
<script type="text/brightscript" uri="pkg:/source/bslib.brs" /> <script type="text/brightscript" uri="pkg:/source/bslib.brs" />
<children> <children>
<Logger id="Logger" /> <Logger id="Logger" />