Add playlet lib url to settings
This commit is contained in:
1 parent
98e07877e3
commit
aea2cb39d7
4 files changed
+35
-10
No files matched your search
@@ -51,18 +51,19 @@ function LoadPlayletLib() as void
|
||||
end function
|
||||
|
||||
function OnLoadStatusChanged() as void
|
||||
uri = m.playletLibUrls[m.playletLibUrlIndex].link
|
||||
libUrl = m.playletLibUrls[m.playletLibUrlIndex]
|
||||
if m.lib.loadStatus = "ready"
|
||||
RemoveComponentLibrary()
|
||||
?"Playlet lib loaded from " uri
|
||||
?"Playlet lib loaded from " libUrl.link
|
||||
scene = m.top.getScene()
|
||||
scene.playletLibLoadedUrl = libUrl
|
||||
container = scene.findNode("MainSceneContainer")
|
||||
container.createChild("PlayletLib:MainScene")
|
||||
return
|
||||
end if
|
||||
|
||||
if m.lib.loadStatus = "failed"
|
||||
?"Playlet lib failed to load from " uri
|
||||
?"Playlet lib failed to load from " libUrl.link
|
||||
' Try next url
|
||||
m.playletLibUrlIndex += 1
|
||||
LoadPlayletLib()
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<field id="exitChannel" type="bool" alwaysNotify="true" />
|
||||
<field id="launchArgs" type="assocarray" />
|
||||
<field id="inputArgs" type="assocarray" alwaysNotify="true" />
|
||||
<field id="playletLibLoadedUrl" type="assocarray" />
|
||||
</interface>
|
||||
<script type="text/brightscript" uri="pkg:/source/Dialog.bs" />
|
||||
<script type="text/brightscript" uri="pkg:/source/Manifest.bs" />
|
||||
|
||||
Reference in new issue
Block a user