Skip to content

Commit

Permalink
Remove annoucement
Browse files Browse the repository at this point in the history
  • Loading branch information
iBicha committed Oct 13, 2024
1 parent 2a9651b commit 6f0b768
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 66 deletions.
34 changes: 0 additions & 34 deletions playlet-lib/src/components/MainScene.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -19,7 +18,6 @@ function MainSceneContainerChanged()
InitEcpArgs()
m.scene.signalBeacon("AppLaunchComplete")
CopyLoadingMessagesToCache()
ShowAnnouncement()
end function

function StartWebServer()
Expand All @@ -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
32 changes: 0 additions & 32 deletions playlet-lib/src/components/MainScene.transpiled.brs
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand All @@ -20,7 +19,6 @@ function MainSceneContainerChanged()
InitEcpArgs()
m.scene.signalBeacon("AppLaunchComplete")
CopyLoadingMessagesToCache()
ShowAnnouncement()
end function

function StartWebServer()
Expand All @@ -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

0 comments on commit 6f0b768

Please sign in to comment.