Remove annoucement
This commit is contained in:
1 parent
2a9651b49d
commit
6f0b7686f4
2 files changed
-66
No files matched your search
@@ -2,7 +2,6 @@ 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"
|
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
m.scene = m.top.getScene()
|
m.scene = m.top.getScene()
|
||||||
@@ -19,7 +18,6 @@ function MainSceneContainerChanged()
|
|||||||
InitEcpArgs()
|
InitEcpArgs()
|
||||||
m.scene.signalBeacon("AppLaunchComplete")
|
m.scene.signalBeacon("AppLaunchComplete")
|
||||||
CopyLoadingMessagesToCache()
|
CopyLoadingMessagesToCache()
|
||||||
ShowAnnouncement()
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function StartWebServer()
|
function StartWebServer()
|
||||||
@@ -32,35 +30,3 @@ function StartWebServer()
|
|||||||
m.dialServer = m.top.findNode("DialServer")
|
m.dialServer = m.top.findNode("DialServer")
|
||||||
m.dialServer@.StartServer()
|
m.dialServer@.StartServer()
|
||||||
end function
|
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
|
|
||||||
@@ -2,7 +2,6 @@
|
|||||||
'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"
|
|
||||||
|
|
||||||
function Init()
|
function Init()
|
||||||
InitializeBindings() ' auto-generated!
|
InitializeBindings() ' auto-generated!
|
||||||
@@ -20,7 +19,6 @@ function MainSceneContainerChanged()
|
|||||||
InitEcpArgs()
|
InitEcpArgs()
|
||||||
m.scene.signalBeacon("AppLaunchComplete")
|
m.scene.signalBeacon("AppLaunchComplete")
|
||||||
CopyLoadingMessagesToCache()
|
CopyLoadingMessagesToCache()
|
||||||
ShowAnnouncement()
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function StartWebServer()
|
function StartWebServer()
|
||||||
@@ -31,34 +29,4 @@ function StartWebServer()
|
|||||||
m.dialServer = m.top.findNode("DialServer")
|
m.dialServer = m.top.findNode("DialServer")
|
||||||
m.dialServer.callfunc("StartServer", invalid)
|
m.dialServer.callfunc("StartServer", invalid)
|
||||||
end function
|
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
|
'//# sourceMappingURL=./MainScene.brs.map
|
||||||
Reference in new issue
Block a user