mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 06:19:49 +02:00
Stand-alone Optimized Tagging - Add tagging for GOTO User Stories
This commit is contained in:
parent
d957b38f10
commit
dca166f821
3 changed files with 30 additions and 19 deletions
|
@ -30,6 +30,7 @@ Item {
|
|||
property string imageUrl: "";
|
||||
property var goFunction: null;
|
||||
property string storyId: "";
|
||||
property bool standaloneOptimized: false;
|
||||
|
||||
property bool drillDownToPlace: false;
|
||||
property bool showPlace: isConcurrency;
|
||||
|
@ -39,7 +40,7 @@ Item {
|
|||
property bool isConcurrency: action === 'concurrency';
|
||||
property bool isAnnouncement: action === 'announcement';
|
||||
property bool isStacked: !isConcurrency && drillDownToPlace;
|
||||
property bool standaloneOptimized: true;
|
||||
|
||||
|
||||
property int textPadding: 10;
|
||||
property int smallMargin: 4;
|
||||
|
@ -271,6 +272,24 @@ Item {
|
|||
goFunction("hifi://" + hifiUrl);
|
||||
}
|
||||
}
|
||||
|
||||
HiFiGlyphs {
|
||||
id: standaloneOptomizedBadge
|
||||
|
||||
anchors {
|
||||
right: actionIcon.left
|
||||
bottom: parent.bottom;
|
||||
}
|
||||
height: (root.isConcurrency && root.standaloneOptimized) ? 34 : 0
|
||||
|
||||
visible: root.isConcurrency && root.standaloneOptimized
|
||||
|
||||
text: hifi.glyphs.hmd
|
||||
size: 34
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
color: messageColor
|
||||
}
|
||||
|
||||
StateImage {
|
||||
id: actionIcon;
|
||||
visible: !isAnnouncement;
|
||||
|
@ -282,24 +301,6 @@ Item {
|
|||
right: parent.right;
|
||||
margins: smallMargin;
|
||||
}
|
||||
|
||||
}
|
||||
HiFiGlyphs {
|
||||
id: standaloneOptomizedBadge
|
||||
|
||||
anchors {
|
||||
right: actionIcon.left
|
||||
verticalCenter: parent.verticalCenter
|
||||
bottom: parent.bottom;
|
||||
}
|
||||
height: root.standaloneOptimized ? 34 : 0
|
||||
|
||||
visible: standaloneOptimized
|
||||
|
||||
text: hifi.glyphs.hmd
|
||||
size: 34
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
color: hifi.colors.blueHighlight
|
||||
}
|
||||
|
||||
function go() {
|
||||
|
|
|
@ -82,6 +82,7 @@ Column {
|
|||
action: data.action || "",
|
||||
thumbnail_url: resolveUrl(thumbnail_url),
|
||||
image_url: resolveUrl(data.details && data.details.image_url),
|
||||
standalone_optimized: data.standalone_optimized,
|
||||
|
||||
metaverseId: (data.id || "").toString(), // Some are strings from server while others are numbers. Model objects require uniformity.
|
||||
|
||||
|
@ -127,6 +128,7 @@ Column {
|
|||
hifiUrl: model.place_name + model.path;
|
||||
thumbnail: model.thumbnail_url;
|
||||
imageUrl: model.image_url;
|
||||
standaloneOptimized: model.standalone_optimized;
|
||||
action: model.action;
|
||||
timestamp: model.created_at;
|
||||
onlineUsers: model.online_users;
|
||||
|
|
|
@ -90,6 +90,14 @@ Rectangle {
|
|||
id: -1,
|
||||
name: "Everything"
|
||||
});
|
||||
categoriesModel.append({
|
||||
id: -1,
|
||||
name: "Standalone Optimized"
|
||||
});
|
||||
categoriesModel.append({
|
||||
id: -1,
|
||||
name: "Standalone Compatible"
|
||||
});
|
||||
result.data.items.forEach(function(category) {
|
||||
categoriesModel.append({
|
||||
id: category.id,
|
||||
|
|
Loading…
Reference in a new issue