Skip to content

Commit

Permalink
Fix Stashpoint and Agency Pickup templates
Browse files Browse the repository at this point in the history
(cherry picked from commit c6d0b5f)
  • Loading branch information
AnthonyFuller committed Dec 2, 2023
1 parent 2d6172f commit 19d2108
Show file tree
Hide file tree
Showing 2 changed files with 286 additions and 238 deletions.
49 changes: 39 additions & 10 deletions static/SelectAgencyPickupTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
"location": "$.Contract.Metadata.Location"
},
"onpageopened": {
"set-selected": { "target": "$arg SelectedAgencyPickup" }
"set-selected": {
"target": "$arg SelectedAgencyPickup"
}
},
"onpageclosed": {
"set-mastery-data": {}
},
"onpageclosed": { "set-mastery-data": {} },
"buttons": [
{
"actiontype": "accept",
Expand All @@ -25,11 +29,17 @@
"$setupcomponents": {
"difficulty-manager": {
"always-reload-setup": true,
"setup": { "difficulty": "$.Contract.Metadata.Difficulty" }
"setup": {
"difficulty": "$.Contract.Metadata.Difficulty"
}
}
},
"controller": "list",
"actions": { "select": { "select-category": {} } },
"actions": {
"select": {
"select-category": {}
}
},
"children": [
{
"controller": "group",
Expand All @@ -44,7 +54,10 @@
"view": "menu3.basic.HeadlineElement"
}
},
{ "id": "category_container", "controller": "list" },
{
"id": "category_container",
"controller": "list"
},
{
"view": "menu3.containers.ScrollingTabsContainer",
"controller": "category",
Expand Down Expand Up @@ -85,12 +98,22 @@
]
}
},
{ "case": "orbis", "return": "ica" },
{ "case": "campaign", "return": "mission" },
{
"case": "orbis",
"return": "ica"
},
{
"case": "campaign",
"return": "mission"
},
{
"case": "sniper",
"return": "sniperrifle"
},
{
"case": "arcade",
"return": "arcademode"
},
{
"default": {
"$if $.Contract.Metadata.IsVersus": {
Expand Down Expand Up @@ -121,7 +144,9 @@
"case": "featured",
"return": false
},
{ "default": true }
{
"default": true
}
]
}
}
Expand Down Expand Up @@ -209,7 +234,9 @@
"controller": "group",
"view": "menu3.containers.ScrollingListContainer",
"direction": "horizontal",
"data": { "direction": "horizontal" },
"data": {
"direction": "horizontal"
},
"row": 1,
"pages": true,
"nrows": 3,
Expand Down Expand Up @@ -303,7 +330,9 @@
"rarity": "$($arg SelectedItem).rarity"
}
},
{ "default": null }
{
"default": null
}
]
},
"locked": "$not $.unlocked",
Expand Down
Loading

0 comments on commit 19d2108

Please sign in to comment.