mirror of
https://github.com/lubosz/overte.git
synced 2025-08-28 09:56:41 +02:00
Attempt to load content set
This does not result in the user seeing the content set.
This commit is contained in:
parent
66bf45c3ef
commit
38fd9523ee
1 changed files with 13 additions and 2 deletions
|
@ -55,6 +55,11 @@ Rectangle {
|
|||
}
|
||||
}
|
||||
|
||||
function isHttp(str) {
|
||||
var httpPattern = /^http/i;
|
||||
return httpPattern.test(str);
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
// On startup, list includes all tester-installed assets.
|
||||
addAllInstalledAppsToList();
|
||||
|
@ -79,9 +84,15 @@ Rectangle {
|
|||
switch(assetType) {
|
||||
case "application":
|
||||
Commerce.openApp(resource);
|
||||
break
|
||||
break;
|
||||
case "avatar":
|
||||
MyAvatar.useFullAvatarURL(resource);
|
||||
break;
|
||||
case "content set":
|
||||
resource = isHttp(resource) ? resource : "file:///" + resource;
|
||||
Commerce.replaceContentSet(resource, "");
|
||||
urlHandler.handleUrl("hifi://localhost/0,0,0");
|
||||
break;
|
||||
}
|
||||
// XXX support other resource types here.
|
||||
},
|
||||
|
@ -119,7 +130,7 @@ Rectangle {
|
|||
font.pointSize: 10
|
||||
Layout.preferredWidth: root.width * .2
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Test.AlignVCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
|
||||
Repeater {
|
||||
|
|
Loading…
Reference in a new issue