mirror of
https://github.com/thepeacockproject/Peacock
synced 2024-11-29 09:15:11 +01:00
6245e91624
Co-authored-by: Tino Roivanen <tino.roivanen98@gmail.com> Co-authored-by: Govert de Gans <grappigegovert@hotmail.com> Co-authored-by: Gray Olson <gray@grayolson.com> Co-authored-by: Alexandre Sanchez <alex73630@gmail.com> Co-authored-by: Anthony Fuller <24512050+anthonyfuller@users.noreply.github.com> Co-authored-by: atampy25 <24306974+atampy25@users.noreply.github.com> Co-authored-by: David <davidstulemeijer@gmail.com> Co-authored-by: c0derMo <c0dermo@users.noreply.github.com> Co-authored-by: Jeevat Singh <jeevatt.singh@gmail.com> Signed-off-by: Reece Dunham <me@rdil.rocks>
3843 lines
361 KiB
JSON
3843 lines
361 KiB
JSON
{
|
|
"buttons": [
|
|
{
|
|
"actiontype": "accept",
|
|
"actionlabel": "$loc UI_BUTTON_PROMPTS_ACTION_SELECT"
|
|
},
|
|
{
|
|
"actiontype": "cancel",
|
|
"actionlabel": "$loc UI_BUTTON_PROMPTS_ACTION_BACK"
|
|
}
|
|
],
|
|
"body": {
|
|
"$setupcomponents": {
|
|
"favorites-removal": {}
|
|
},
|
|
"id": "root_list",
|
|
"controller": "list",
|
|
"data": {
|
|
"direction": "vertical"
|
|
},
|
|
"children": [
|
|
{
|
|
"controller": "group",
|
|
"id": "headline_container",
|
|
"row": 4.25,
|
|
"col": 0,
|
|
"selectable": false,
|
|
"pressable": false,
|
|
"_comment": "the container that will hold the HeadlineElement. It will show info on whatever item is selected",
|
|
"children": {
|
|
"id": "headline_element",
|
|
"view": "menu3.basic.HeadlineElement"
|
|
}
|
|
},
|
|
{
|
|
"controller": "list",
|
|
"id": "category_container"
|
|
},
|
|
{
|
|
"id": "category_controller",
|
|
"controller": "category",
|
|
"container": "category_container",
|
|
"view": "menu3.containers.ScrollingTabsContainer",
|
|
"direction": "horizontal",
|
|
"ncols": 10,
|
|
"data": {
|
|
"direction": "horizontal",
|
|
"overflowscrolling": "0.45",
|
|
"buttonprompts": [
|
|
{
|
|
"actiontype": ["lb", "rb"],
|
|
"actionlabel": "$loc UI_BUTTON_PROMPTS_BROWSE_CATEGORIES"
|
|
}
|
|
],
|
|
"topnavigation": {
|
|
"title": "$loc UI_MENU_PAGE_HUB_GAMEMODES",
|
|
"icon": "mission"
|
|
}
|
|
},
|
|
"children": {
|
|
"view": "menu3.basic.CategoryElement",
|
|
"_comment": "do not change this - id is used in PlanningButtons.json",
|
|
"id": "contracts_tab",
|
|
"data": {
|
|
"title": "$loc UI_MENU_PAGE_HUB_CONTRACTS",
|
|
"icon": "contract"
|
|
},
|
|
"actions": {
|
|
"select": {
|
|
"set-background": "$res images/backgrounds/menu_bg.jpg"
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"controller": "group",
|
|
"id": "contracts_container",
|
|
"row": 1,
|
|
"pages": true,
|
|
"pressable": false,
|
|
"nrows": 3,
|
|
"ncols": 10
|
|
},
|
|
{
|
|
"controller": "context",
|
|
"id": "hits_context_controller",
|
|
"container": "contracts_container",
|
|
"view": "menu3.containers.ScrollingListContainer",
|
|
"direction": "horizontal",
|
|
"data": {
|
|
"direction": "horizontal"
|
|
},
|
|
"row": 1,
|
|
"pages": true,
|
|
"nrows": 3,
|
|
"ncols": 10,
|
|
"stateproviders": [
|
|
{
|
|
"_comment": "hardcoded to disable contracts tab when chunk 1 is being downloaded on consoles",
|
|
"type": "resourceavailability",
|
|
"activate-on-page-opened": false,
|
|
"resources": [
|
|
"[assembly:/_pro/scenes/missions/thefacility/_scene_polarbear_005.entity].entitytemplate"
|
|
]
|
|
}
|
|
],
|
|
"actions": {
|
|
"on-content-unknown": {
|
|
"trigger-action": {
|
|
"name": "set-content-inaccessible"
|
|
}
|
|
},
|
|
"on-content-not-owned": {
|
|
"trigger-action": {
|
|
"name": "set-content-inaccessible"
|
|
}
|
|
},
|
|
"on-content-not-installed": {
|
|
"trigger-action": {
|
|
"name": "set-content-inaccessible"
|
|
}
|
|
},
|
|
"on-content-downloading": {
|
|
"trigger-action": {
|
|
"name": "set-content-inaccessible"
|
|
}
|
|
},
|
|
"on-content-update-required": {
|
|
"trigger-action": {
|
|
"name": "set-content-inaccessible"
|
|
}
|
|
},
|
|
"on-content-installing": {
|
|
"trigger-action": {
|
|
"name": "set-content-inaccessible"
|
|
}
|
|
},
|
|
"on-content-available": {
|
|
"trigger-action": {
|
|
"name": "set-content-available"
|
|
}
|
|
},
|
|
"set-content-inaccessible": {
|
|
"$merge": [
|
|
{
|
|
"set-data-property": {
|
|
"target": "hits_context_controller",
|
|
"property": {
|
|
"name": "scrollingdisabled",
|
|
"value": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"set-node-properties": {
|
|
"target": "hits_context_controller",
|
|
"set-on-children-of-target": true,
|
|
"reload-node": true,
|
|
"dataonly": true,
|
|
"properties": {
|
|
"selectable": false,
|
|
"pressable": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"alter-actions": {
|
|
"path": "select",
|
|
"value": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": [
|
|
{
|
|
"view": "menu3.basic.HeadlineElement",
|
|
"selectable": false,
|
|
"pressable": false,
|
|
"data": {
|
|
"title": "$loc UI_MENU_PAGE_DATA_NOT_AVAILABLE",
|
|
"typeicon": "info"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"set-selected": {
|
|
"target": "hits_context_controller"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"set-content-available": {
|
|
"$merge": [
|
|
{
|
|
"set-data-property": {
|
|
"target": "hits_context_controller",
|
|
"property": {
|
|
"name": "scrollingdisabled",
|
|
"value": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"set-node-properties": {
|
|
"target": "hits_context_controller",
|
|
"set-on-children-of-target": true,
|
|
"reload-node": true,
|
|
"dataonly": true,
|
|
"properties": {
|
|
"selectable": true,
|
|
"pressable": "$not $($arg _ugcrestricted)"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"$each $.ContractsData": {
|
|
"set-pressable": {
|
|
"target": "$formatstring {$.Category}_tile",
|
|
"value": true
|
|
},
|
|
"reload-ui": {
|
|
"target": "$formatstring {$.Category}_tile",
|
|
"dataonly": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"set-node-properties": {
|
|
"target": "hiddenPublicIdNode",
|
|
"reload-node": false,
|
|
"properties": {
|
|
"selectable": false,
|
|
"pressable": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"alter-actions": {
|
|
"path": "select",
|
|
"value": {
|
|
"$notransform": null
|
|
}
|
|
},
|
|
"set-selected": {
|
|
"target": "create_contract_tile"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": {
|
|
"$merge": [
|
|
{
|
|
"view": "menu3.basic.CategoryTile",
|
|
"id": "create_contract_tile",
|
|
"nrows": 3,
|
|
"ncols": 2,
|
|
"pressable": {
|
|
"$if $($arg _ugcrestricted)": {
|
|
"$then": false,
|
|
"$else": true
|
|
}
|
|
},
|
|
"data": {
|
|
"$if $($arg _ugcrestricted)": {
|
|
"$then": {
|
|
"title": "$loc UI_MENU_ELEMENT_CREATE_CONTRACT",
|
|
"image": "$res images/contracts/categories/createcontract/tile.jpg",
|
|
"icon": "locked",
|
|
"locked": true,
|
|
"lockedreason": "$loc UI_CONTRACT_NO_ACCESS_UGC_DESCRIPTION",
|
|
"availability": {
|
|
"available": true,
|
|
"_comment": "hack to get locked reason to show"
|
|
}
|
|
},
|
|
"$else": {
|
|
"title": "$loc UI_MENU_ELEMENT_CREATE_CONTRACT",
|
|
"image": "$res images/contracts/categories/createcontract/tile.jpg",
|
|
"icon": "contract"
|
|
}
|
|
}
|
|
},
|
|
"actions": {
|
|
"select": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": [
|
|
{
|
|
"view": "menu3.basic.HeadlineElement",
|
|
"selectable": false,
|
|
"pressable": false,
|
|
"data": {
|
|
"__header": "...Missing localized Contract category string",
|
|
"title": "$loc UI_MENU_ELEMENT_CREATE_CONTRACT",
|
|
"typeicon": "contract"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"deselect": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": []
|
|
}
|
|
}
|
|
},
|
|
"children": {
|
|
"controller": "list",
|
|
"view": "menu3.containers.ScrollingListContainer",
|
|
"id": "contracts_container",
|
|
"pages": true,
|
|
"nrows": 3,
|
|
"ncols": 10,
|
|
"paginate": {
|
|
"page": "$.LocationsData.Data.Page",
|
|
"hasmore": "$.LocationsData.Data.HasMore",
|
|
"url": "locations",
|
|
"args": {}
|
|
},
|
|
"direction": "horizontal",
|
|
"data": {
|
|
"direction": "horizontal"
|
|
},
|
|
"children": {
|
|
"$merge": [
|
|
{
|
|
"$use $.CreateContractTutorial": {
|
|
"view": "menu3.basic.MenuTileTall",
|
|
"nrows": 3,
|
|
"ncols": 2,
|
|
"data": {
|
|
"header": "$loc $formatstring UI_CONTRACT_HEADER_{$.Contract.Metadata.Type}",
|
|
"title": {
|
|
"$switch $.Contract.Metadata.Type": [
|
|
{
|
|
"case": "usercreated",
|
|
"return": {
|
|
"$if $($arg _ugcrestricted)": {
|
|
"$then": "$loc UI_CONTRACT_NO_ACCESS_UGC",
|
|
"$else": "$.Contract.Metadata.Title"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"case": "featured",
|
|
"return": "$.Contract.Metadata.Title"
|
|
},
|
|
{
|
|
"default": "$loc $.Contract.Metadata.Title"
|
|
}
|
|
]
|
|
},
|
|
"image": {
|
|
"$if $.Contract.Metadata.TileImage": {
|
|
"$then": {
|
|
"$if $gt ($arraysize $.Contract.Metadata.TileImage,0)": {
|
|
"$then": {
|
|
"$setup": {
|
|
"$set EngineMode": {
|
|
"$if $isnull $.EngineMode": {
|
|
"$then": {
|
|
"$if $isnull $arg EngineMode": {
|
|
"$then": "singleplayer",
|
|
"$else": "$arg EngineMode"
|
|
}
|
|
},
|
|
"$else": "$.EngineMode"
|
|
}
|
|
},
|
|
"$set TileImageOrdered": {
|
|
"$orderby": {
|
|
"from": "$expand $.Contract.Metadata.TileImage",
|
|
"by": "Mode",
|
|
"order": [
|
|
"$.EngineMode"
|
|
]
|
|
}
|
|
},
|
|
"$in": "$res $.TileImageOrdered[0].Image"
|
|
}
|
|
},
|
|
"$else": "$res $expand $.Contract.Metadata.TileImage"
|
|
}
|
|
},
|
|
"$else": "$res images/ui/tiles/defaultmenutilesmall.jpg"
|
|
}
|
|
},
|
|
"icon": "realtutorial"
|
|
},
|
|
"stateproviders": [
|
|
{
|
|
"type": "contractavailability",
|
|
"contract": "$.Contract"
|
|
}
|
|
],
|
|
"actions": {
|
|
"$mergeobjects": [
|
|
{
|
|
"$mergeobjects": [
|
|
{
|
|
"on-content-unknown": {
|
|
"_comment": "No DLC could be found containing contract",
|
|
"alter-actions": {
|
|
"path": "accept",
|
|
"value": {
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
"$loc UI_DIALOG_OK"
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_CONTENT_UNKNOWN_DLC_TITLE",
|
|
"description": "$loc UI_CONTENT_UNKNOWN_DLC_TEXT"
|
|
}
|
|
},
|
|
"onbutton": []
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"on-content-not-owned": {
|
|
"_comment": "DLC is not owned",
|
|
"alter-actions": {
|
|
"path": "accept",
|
|
"value": {
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
"$loc UI_DIALOG_OK"
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_CONTENT_UNKNOWN_DLC_TITLE",
|
|
"description": "$loc UI_CONTENT_UNKNOWN_DLC_TEXT"
|
|
}
|
|
},
|
|
"onbutton": []
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"on-content-not-installed": {
|
|
"_comment": "DLC owned but not installed",
|
|
"alter-actions": {
|
|
"path": "accept",
|
|
"value": {
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
"$loc UI_DIALOG_OK"
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_CONTENT_UNKNOWN_DLC_TITLE",
|
|
"description": "$loc UI_CONTENT_UNKNOWN_DLC_TEXT"
|
|
}
|
|
},
|
|
"onbutton": []
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"on-content-downloading": {
|
|
"_comment": "DLC owned and currently downloading",
|
|
"alter-actions": {
|
|
"path": "accept",
|
|
"value": {
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
"$loc UI_DIALOG_OK"
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_CONTENT_UNKNOWN_DLC_TITLE",
|
|
"description": "$loc UI_CONTENT_UNKNOWN_DLC_TEXT"
|
|
}
|
|
},
|
|
"onbutton": []
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"on-content-update-required": {
|
|
"_comment": "DLC owned and update is required",
|
|
"alter-actions": {
|
|
"path": "accept",
|
|
"value": {
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
"$loc UI_DIALOG_OK"
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_CONTENT_UNKNOWN_DLC_TITLE",
|
|
"description": "$loc UI_CONTENT_UNKNOWN_DLC_TEXT"
|
|
}
|
|
},
|
|
"onbutton": []
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"on-content-installing": {
|
|
"_comment": "DLC owned and currently installing",
|
|
"alter-actions": {
|
|
"path": "accept",
|
|
"value": {
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
"$loc UI_DIALOG_OK"
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_CONTENT_UNKNOWN_DLC_TITLE",
|
|
"description": "$loc UI_CONTENT_UNKNOWN_DLC_TEXT"
|
|
}
|
|
},
|
|
"onbutton": []
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"on-entitlement-missing": {
|
|
"_comment": "Entitlement missing",
|
|
"alter-actions": {
|
|
"path": "accept",
|
|
"value": {
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
"$loc UI_DIALOG_OK"
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_CONTENT_UNKNOWN_DLC_TITLE",
|
|
"description": "$loc UI_CONTENT_UNKNOWN_DLC_TEXT"
|
|
}
|
|
},
|
|
"onbutton": []
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"on-content-available": {
|
|
"_comment": "Contract is ready to be played",
|
|
"alter-actions": {
|
|
"path": "accept",
|
|
"value": {
|
|
"$if": {
|
|
"$condition": {
|
|
"$and": [
|
|
"$.Data.IsLocked",
|
|
{
|
|
"$or": [
|
|
"$isnull $.lockoverride",
|
|
"$.lockoverride"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"$then": {
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
"$loc UI_DIALOG_CONFIRM",
|
|
{
|
|
"label": "$loc UI_DIALOG_CANCEL",
|
|
"type": "cancel"
|
|
}
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_LOCKED_CONTENT_DIALOGUE_TITLE",
|
|
"description": {
|
|
"$switch $.Contract.Metadata.Type": [
|
|
{
|
|
"case": "orbis",
|
|
"return": "$loc UI_LOCKED_CONTENT_DIALOGUE_TEXT_SARAJEVO6"
|
|
},
|
|
{
|
|
"default": "$loc UI_LOCKED_CONTENT_DIALOGUE_TEXT"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"onbutton": [
|
|
{
|
|
"trigger-action": {
|
|
"name": "on-goto-planning"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"$else": {
|
|
"trigger-action": {
|
|
"name": "on-goto-planning"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"on-goto-planning": {
|
|
"$switch $.Contract.Metadata.Type": [
|
|
{
|
|
"case": "creation",
|
|
"return": {
|
|
"link": {
|
|
"page": "contractcreation_planning",
|
|
"args": {
|
|
"url": "contractcreation/planning",
|
|
"args": {
|
|
"location": "$.Contract.Metadata.Location",
|
|
"contractCreationIdOverwrite": "$.Contract.Metadata.Id"
|
|
},
|
|
"contractid": "$.Contract.Metadata.Id"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"default": {
|
|
"$if": {
|
|
"$condition": {
|
|
"$isfreeprologueuser": ""
|
|
},
|
|
"$then": {
|
|
"$if $.fspdashboardcontract": {
|
|
"$then": {
|
|
"clear-contract-menu-context": {},
|
|
"set-contract-loading-screen-data": {
|
|
"contract": "$.Contract"
|
|
},
|
|
"start-contract": {
|
|
"contractid": "$.fspdashboardcontract.contractid"
|
|
}
|
|
},
|
|
"$else": {
|
|
"is-playable": {
|
|
"playableSince": "$.Contract.Metadata.PlayableSince",
|
|
"on-success": {
|
|
"$merge": [
|
|
{
|
|
"$if": {
|
|
"$condition": {
|
|
"$and": [
|
|
"$eqs ($.Contract.Metadata.Type,placeholder)",
|
|
"$.Data.LastPlayedAt",
|
|
"$.Data.EscalationCompleted"
|
|
]
|
|
},
|
|
"$then": [
|
|
{
|
|
"alter-history": {
|
|
"target": "destination",
|
|
"force-no-cache": true
|
|
}
|
|
},
|
|
{
|
|
"alter-history": {
|
|
"target": "hub",
|
|
"force-no-cache": true
|
|
}
|
|
}
|
|
],
|
|
"$else": null
|
|
}
|
|
},
|
|
{
|
|
"$switch $.Contract.Metadata.BriefingVideo": [
|
|
{
|
|
"case": null,
|
|
"return": {
|
|
"link": {
|
|
"page": {
|
|
"$if $eqs ($.EngineMode,multiplayer)": {
|
|
"$then": "planning_multiplayer",
|
|
"$else": "planning"
|
|
}
|
|
},
|
|
"isMultiplayer": {
|
|
"$if $eqs ($.EngineMode,multiplayer)": {
|
|
"$then": true,
|
|
"$else": false
|
|
}
|
|
},
|
|
"args": {
|
|
"url": "planning",
|
|
"args": {
|
|
"contractid": "$.Contract.Metadata.Id",
|
|
"resetescalation": {
|
|
"$if": {
|
|
"$condition": {
|
|
"$and": [
|
|
"$eqs ($.Contract.Metadata.Type,placeholder)",
|
|
"$.Data.LastPlayedAt",
|
|
"$.Data.EscalationCompleted"
|
|
]
|
|
},
|
|
"$then": true,
|
|
"$else": false
|
|
}
|
|
}
|
|
},
|
|
"contractid": "$.Contract.Metadata.Id"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"default": {
|
|
"link": {
|
|
"page": "video",
|
|
"addtohistory": false,
|
|
"args": {
|
|
"videoid": "$.Contract.Metadata.BriefingVideo",
|
|
"mountrootresources": "$formatstring [{$.Contract.Metadata.ScenePath}].entitytemplate",
|
|
"skipifshown": true,
|
|
"EngineMode": "$.EngineMode",
|
|
"link": {
|
|
"page": {
|
|
"$if $eqs ($.EngineMode,multiplayer)": {
|
|
"$then": "planning_multiplayer",
|
|
"$else": "planning"
|
|
}
|
|
},
|
|
"isMultiplayer": {
|
|
"$if $eqs ($.EngineMode,multiplayer)": {
|
|
"$then": true,
|
|
"$else": false
|
|
}
|
|
},
|
|
"args": {
|
|
"url": "planning",
|
|
"args": {
|
|
"contractid": "$.Contract.Metadata.Id",
|
|
"resetescalation": {
|
|
"$if": {
|
|
"$condition": {
|
|
"$and": [
|
|
"$eqs ($.Contract.Metadata.Type,placeholder)",
|
|
"$.Data.LastPlayedAt",
|
|
"$.Data.EscalationCompleted"
|
|
]
|
|
},
|
|
"$then": true,
|
|
"$else": false
|
|
}
|
|
}
|
|
},
|
|
"contractid": "$.Contract.Metadata.Id"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"on-failure-too-early": {
|
|
"$if": {
|
|
"$condition": {
|
|
"$and": [
|
|
"$eqs ($.Contract.Metadata.Type,elusive)",
|
|
"$stringvalid $.Data.ElusiveContractState",
|
|
"$stringvalid $.Data.LastPlayedAt",
|
|
"$lt ($converttimetonumber $.Data.LastPlayedAt,$converttimetonumber $.Contract.Metadata.PlayableSince)"
|
|
]
|
|
},
|
|
"$then": {
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
{
|
|
"label": "$loc UI_DIALOG_CONFIRM_TITLE",
|
|
"type": "cancel"
|
|
}
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_MENU_PAGE_PLANNING_ELEMENT_LOADOUT_ERROR_STARTING_CONTRACT_ET",
|
|
"description": "$loc UI_MENU_ERROR_STARTING_ELUSIVE_CONTRACT_NOT_PLAYABLE_YET_PREVIOUSLY_PLAYED_DESCRIPTION"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"$else": {
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
{
|
|
"label": "$loc UI_DIALOG_CONFIRM_TITLE",
|
|
"type": "cancel"
|
|
}
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_MENU_PAGE_PLANNING_ELEMENT_LOADOUT_ERROR_STARTING_CONTRACT_ET",
|
|
"description": "$loc UI_MENU_PAGE_PLANNING_ELEMENT_LOADOUT_ERROR_STARTING_CONTRACT_NOT_PLAYABLE_YET_DESCRIPTION_ET",
|
|
"_comment": "HACK: use typeoverride to make the buttons work",
|
|
"typeoverride": "online"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"on-failure-too-late": {
|
|
"_comment": "this is never reached, because we don't set playabelUntil above - by design",
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
{
|
|
"label": "$loc UI_DIALOG_CONFIRM_TITLE",
|
|
"type": "cancel"
|
|
}
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_MENU_PAGE_PLANNING_ELEMENT_LOADOUT_ERROR_STARTING_CONTRACT_ET",
|
|
"description": "$loc UI_MENU_PAGE_PLANNING_ELEMENT_LOADOUT_ERROR_STARTING_CONTRACT_NOT_PLAYABLE_ANYMORE_DESCRIPTION_ET"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"$else": {
|
|
"is-playable": {
|
|
"playableSince": "$.Contract.Metadata.PlayableSince",
|
|
"on-success": {
|
|
"$merge": [
|
|
{
|
|
"$if": {
|
|
"$condition": {
|
|
"$and": [
|
|
"$eqs ($.Contract.Metadata.Type,placeholder)",
|
|
"$.Data.LastPlayedAt",
|
|
"$.Data.EscalationCompleted"
|
|
]
|
|
},
|
|
"$then": [
|
|
{
|
|
"alter-history": {
|
|
"target": "destination",
|
|
"force-no-cache": true
|
|
}
|
|
},
|
|
{
|
|
"alter-history": {
|
|
"target": "hub",
|
|
"force-no-cache": true
|
|
}
|
|
}
|
|
],
|
|
"$else": null
|
|
}
|
|
},
|
|
{
|
|
"$switch $.Contract.Metadata.BriefingVideo": [
|
|
{
|
|
"case": null,
|
|
"return": {
|
|
"link": {
|
|
"page": {
|
|
"$if $eqs ($.EngineMode,multiplayer)": {
|
|
"$then": "planning_multiplayer",
|
|
"$else": "planning"
|
|
}
|
|
},
|
|
"isMultiplayer": {
|
|
"$if $eqs ($.EngineMode,multiplayer)": {
|
|
"$then": true,
|
|
"$else": false
|
|
}
|
|
},
|
|
"args": {
|
|
"url": "planning",
|
|
"args": {
|
|
"contractid": "$.Contract.Metadata.Id",
|
|
"resetescalation": {
|
|
"$if": {
|
|
"$condition": {
|
|
"$and": [
|
|
"$eqs ($.Contract.Metadata.Type,placeholder)",
|
|
"$.Data.LastPlayedAt",
|
|
"$.Data.EscalationCompleted"
|
|
]
|
|
},
|
|
"$then": true,
|
|
"$else": false
|
|
}
|
|
}
|
|
},
|
|
"contractid": "$.Contract.Metadata.Id"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"default": {
|
|
"link": {
|
|
"page": "video",
|
|
"addtohistory": false,
|
|
"args": {
|
|
"videoid": "$.Contract.Metadata.BriefingVideo",
|
|
"mountrootresources": "$formatstring [{$.Contract.Metadata.ScenePath}].entitytemplate",
|
|
"skipifshown": true,
|
|
"EngineMode": "$.EngineMode",
|
|
"link": {
|
|
"page": {
|
|
"$if $eqs ($.EngineMode,multiplayer)": {
|
|
"$then": "planning_multiplayer",
|
|
"$else": "planning"
|
|
}
|
|
},
|
|
"isMultiplayer": {
|
|
"$if $eqs ($.EngineMode,multiplayer)": {
|
|
"$then": true,
|
|
"$else": false
|
|
}
|
|
},
|
|
"args": {
|
|
"url": "planning",
|
|
"args": {
|
|
"contractid": "$.Contract.Metadata.Id",
|
|
"resetescalation": {
|
|
"$if": {
|
|
"$condition": {
|
|
"$and": [
|
|
"$eqs ($.Contract.Metadata.Type,placeholder)",
|
|
"$.Data.LastPlayedAt",
|
|
"$.Data.EscalationCompleted"
|
|
]
|
|
},
|
|
"$then": true,
|
|
"$else": false
|
|
}
|
|
}
|
|
},
|
|
"contractid": "$.Contract.Metadata.Id"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"on-failure-too-early": {
|
|
"$if": {
|
|
"$condition": {
|
|
"$and": [
|
|
"$eqs ($.Contract.Metadata.Type,elusive)",
|
|
"$stringvalid $.Data.ElusiveContractState",
|
|
"$stringvalid $.Data.LastPlayedAt",
|
|
"$lt ($converttimetonumber $.Data.LastPlayedAt,$converttimetonumber $.Contract.Metadata.PlayableSince)"
|
|
]
|
|
},
|
|
"$then": {
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
{
|
|
"label": "$loc UI_DIALOG_CONFIRM_TITLE",
|
|
"type": "cancel"
|
|
}
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_MENU_PAGE_PLANNING_ELEMENT_LOADOUT_ERROR_STARTING_CONTRACT_ET",
|
|
"description": "$loc UI_MENU_ERROR_STARTING_ELUSIVE_CONTRACT_NOT_PLAYABLE_YET_PREVIOUSLY_PLAYED_DESCRIPTION"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"$else": {
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
{
|
|
"label": "$loc UI_DIALOG_CONFIRM_TITLE",
|
|
"type": "cancel"
|
|
}
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_MENU_PAGE_PLANNING_ELEMENT_LOADOUT_ERROR_STARTING_CONTRACT_ET",
|
|
"description": "$loc UI_MENU_PAGE_PLANNING_ELEMENT_LOADOUT_ERROR_STARTING_CONTRACT_NOT_PLAYABLE_YET_DESCRIPTION_ET",
|
|
"_comment": "HACK: use typeoverride to make the buttons work",
|
|
"typeoverride": "online"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"on-failure-too-late": {
|
|
"_comment": "this is never reached, because we don't set playabelUntil above - by design",
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
{
|
|
"label": "$loc UI_DIALOG_CONFIRM_TITLE",
|
|
"type": "cancel"
|
|
}
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_MENU_PAGE_PLANNING_ELEMENT_LOADOUT_ERROR_STARTING_CONTRACT_ET",
|
|
"description": "$loc UI_MENU_PAGE_PLANNING_ELEMENT_LOADOUT_ERROR_STARTING_CONTRACT_NOT_PLAYABLE_ANYMORE_DESCRIPTION_ET"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"select": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": [
|
|
{
|
|
"view": "menu3.basic.HeadlineElement",
|
|
"selectable": false,
|
|
"pressable": false,
|
|
"data": {
|
|
"header": "$loc $formatstring UI_CONTRACT_HEADER_{$.Contract.Metadata.Type}",
|
|
"title": {
|
|
"$switch $.Contract.Metadata.Type": [
|
|
{
|
|
"case": "usercreated",
|
|
"return": {
|
|
"$if $($arg _ugcrestricted)": {
|
|
"$then": "$loc UI_CONTRACT_NO_ACCESS_UGC",
|
|
"$else": "$.Contract.Metadata.Title"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"case": "featured",
|
|
"return": "$.Contract.Metadata.Title"
|
|
},
|
|
{
|
|
"default": "$loc $.Contract.Metadata.Title"
|
|
}
|
|
]
|
|
},
|
|
"typeicon": "realtutorial"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"deselect": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": []
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"$each": {
|
|
"in": {
|
|
"$groupby": {
|
|
"from": "$.LocationsData.Data.Locations",
|
|
"by": "Location.Id"
|
|
}
|
|
},
|
|
"do": {
|
|
"controller": "list",
|
|
"view": "menu3.containers.ListContainerWithHeader",
|
|
"id": "$formatstring {$.by}_container",
|
|
"direction": "horizontal",
|
|
"data": {
|
|
"direction": "horizontal",
|
|
"headlinetitle": {
|
|
"$setup": {
|
|
"$set City": "$loc $formatstring UI_{$.by}_CITY",
|
|
"$set Country": "$loc $formatstring UI_{$.by}_COUNTRY",
|
|
"$in": "$formatstring {$.City}, {$.Country}"
|
|
}
|
|
}
|
|
},
|
|
"children": {
|
|
"$each $.group": {
|
|
"view": "menu3.basic.MenuTileTall",
|
|
"nrows": 3,
|
|
"ncols": 2,
|
|
"data": {
|
|
"$use $.SubLocation": {
|
|
"title": "$loc $formatstring UI_{$.Id}_TITLE",
|
|
"header": "$loc $formatstring UI_{$.Id}_CITY",
|
|
"icon": {
|
|
"$if $.Properties.IsLocked": {
|
|
"$then": "locked",
|
|
"$else": "location"
|
|
}
|
|
},
|
|
"locked": "$.Properties.IsLocked",
|
|
"image": {
|
|
"$if $.Properties.IsLocked": {
|
|
"$then": "$res $.Properties.LockedIcon",
|
|
"$else": {
|
|
"$if $.Properties.Icon": {
|
|
"$then": "$res $.Properties.Icon",
|
|
"$else": "$res images/ui/tiles/defaultmenutiletall.jpg"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"stateproviders": [
|
|
{
|
|
"type": "contractavailability",
|
|
"contract": "$.Contract"
|
|
}
|
|
],
|
|
"actions": {
|
|
"$mergeobjects": [
|
|
{
|
|
"$if $not $.Location.Properties.IsLocked": {
|
|
"$then": {
|
|
"$mergeobjects": [
|
|
{
|
|
"on-content-unknown": {
|
|
"_comment": "No DLC could be found containing contract",
|
|
"alter-actions": {
|
|
"path": "accept",
|
|
"value": {
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
"$loc UI_DIALOG_OK"
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_CONTENT_UNKNOWN_DLC_TITLE",
|
|
"description": "$loc UI_CONTENT_UNKNOWN_DLC_TEXT"
|
|
}
|
|
},
|
|
"onbutton": []
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"on-content-not-owned": {
|
|
"_comment": "DLC is not owned",
|
|
"alter-actions": {
|
|
"path": "accept",
|
|
"value": {
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
"$loc UI_DIALOG_OK"
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_CONTENT_UNKNOWN_DLC_TITLE",
|
|
"description": "$loc UI_CONTENT_UNKNOWN_DLC_TEXT"
|
|
}
|
|
},
|
|
"onbutton": []
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"on-content-not-installed": {
|
|
"_comment": "DLC owned but not installed",
|
|
"alter-actions": {
|
|
"path": "accept",
|
|
"value": {
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
"$loc UI_DIALOG_OK"
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_CONTENT_UNKNOWN_DLC_TITLE",
|
|
"description": "$loc UI_CONTENT_UNKNOWN_DLC_TEXT"
|
|
}
|
|
},
|
|
"onbutton": []
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"on-content-downloading": {
|
|
"_comment": "DLC owned and currently downloading",
|
|
"alter-actions": {
|
|
"path": "accept",
|
|
"value": {
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
"$loc UI_DIALOG_OK"
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_CONTENT_UNKNOWN_DLC_TITLE",
|
|
"description": "$loc UI_CONTENT_UNKNOWN_DLC_TEXT"
|
|
}
|
|
},
|
|
"onbutton": []
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"on-content-update-required": {
|
|
"_comment": "DLC owned and update is required",
|
|
"alter-actions": {
|
|
"path": "accept",
|
|
"value": {
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
"$loc UI_DIALOG_OK"
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_CONTENT_UNKNOWN_DLC_TITLE",
|
|
"description": "$loc UI_CONTENT_UNKNOWN_DLC_TEXT"
|
|
}
|
|
},
|
|
"onbutton": []
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"on-content-installing": {
|
|
"_comment": "DLC owned and currently installing",
|
|
"alter-actions": {
|
|
"path": "accept",
|
|
"value": {
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
"$loc UI_DIALOG_OK"
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_CONTENT_UNKNOWN_DLC_TITLE",
|
|
"description": "$loc UI_CONTENT_UNKNOWN_DLC_TEXT"
|
|
}
|
|
},
|
|
"onbutton": []
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"on-entitlement-missing": {
|
|
"_comment": "Entitlement missing",
|
|
"alter-actions": {
|
|
"path": "accept",
|
|
"value": {
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
"$loc UI_DIALOG_OK"
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_CONTENT_UNKNOWN_DLC_TITLE",
|
|
"description": "$loc UI_CONTENT_UNKNOWN_DLC_TEXT"
|
|
}
|
|
},
|
|
"onbutton": []
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"on-content-available": {
|
|
"_comment": "Contract is ready to be played",
|
|
"alter-actions": {
|
|
"path": "accept",
|
|
"value": {
|
|
"link": {
|
|
"page": "contractcreation_planning",
|
|
"args": {
|
|
"url": "contractcreation/planning",
|
|
"args": {
|
|
"location": "$.SubLocation.Id",
|
|
"contractCreationIdOverwrite": "$.SubLocation.Properties.CreateContractId"
|
|
},
|
|
"contractid": "$.SubLocation.Properties.CreateContractId"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"$else": {}
|
|
}
|
|
},
|
|
{
|
|
"select": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": [
|
|
{
|
|
"view": "menu3.basic.HeadlineElement",
|
|
"selectable": false,
|
|
"pressable": false,
|
|
"data": {
|
|
"$if $isnull $.SubLocation": {
|
|
"$then": {
|
|
"title": "$loc $formatstring UI_{$.CompletionData.SubLocationId}_TITLE",
|
|
"header": {
|
|
"$setup": {
|
|
"$set Country": "$loc $formatstring UI_{$.CompletionData.SubLocationId}_COUNTRY",
|
|
"$set City": "$loc $formatstring UI_{$.CompletionData.SubLocationId}_CITY",
|
|
"$in": "$formatstring {$.City} / {$.Country}"
|
|
}
|
|
},
|
|
"typeicon": "location"
|
|
},
|
|
"$else": {
|
|
"title": {
|
|
"$if $not $.SubLocation.Properties.IsLocked": {
|
|
"$then": "$loc $formatstring UI_{$.SubLocation.Id}_TITLE",
|
|
"$else": {
|
|
"$if $.SubLocation.Properties.UpcomingContent": {
|
|
"$then": "$loc $formatstring UI_{$.SubLocation.Id}_COUNTRY"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"header": {
|
|
"$if $not $.SubLocation.Properties.IsLocked": {
|
|
"$then": {
|
|
"$setup": {
|
|
"$set Country": "$loc $formatstring UI_{$.SubLocation.Id}_COUNTRY",
|
|
"$set City": "$loc $formatstring UI_{$.SubLocation.Id}_CITY",
|
|
"$in": "$formatstring {$.City} / {$.Country}"
|
|
}
|
|
},
|
|
"$else": {
|
|
"$if $.SubLocation.Properties.UpcomingContent": {
|
|
"$then": "$loc $.SubLocation.Properties.UpcomingKey"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"typeicon": "location"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"view": "menu3.basic.ItemTileSmall",
|
|
"id": "search_contract_tile",
|
|
"nrows": 1.5,
|
|
"ncols": 2,
|
|
"pressable": {
|
|
"$if $($arg _ugcrestricted)": {
|
|
"$then": false,
|
|
"$else": true
|
|
}
|
|
},
|
|
"data": {
|
|
"$if $($arg _ugcrestricted)": {
|
|
"$then": {
|
|
"title": "$loc UI_MENU_PAGE_HITS_ELEMENT_CATEGORY_SEARCH",
|
|
"image": "$res images/contracts/categories/contracts/smalltile02_top.jpg",
|
|
"icon": "locked",
|
|
"locked": true,
|
|
"lockedreason": "$loc UI_CONTRACT_NO_ACCESS_UGC_DESCRIPTION",
|
|
"availability": {
|
|
"available": true,
|
|
"_comment": "hack to get locked reason to show"
|
|
}
|
|
},
|
|
"$else": {
|
|
"title": "$loc UI_MENU_PAGE_HITS_ELEMENT_CATEGORY_SEARCH",
|
|
"image": "$res images/contracts/categories/contracts/smalltile02_top.jpg",
|
|
"icon": "search"
|
|
}
|
|
}
|
|
},
|
|
"actions": {
|
|
"select": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": [
|
|
{
|
|
"view": "menu3.basic.HeadlineElement",
|
|
"selectable": false,
|
|
"pressable": false,
|
|
"data": {
|
|
"title": "$loc UI_MENU_PAGE_HITS_ELEMENT_CATEGORY_SEARCH",
|
|
"typeicon": "search"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"deselect": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": []
|
|
}
|
|
}
|
|
},
|
|
"children": {
|
|
"id": "contractsearch_body",
|
|
"controller": "group",
|
|
"components": {
|
|
"search-manager": {
|
|
"always-reload-setup": false,
|
|
"setup": {
|
|
"submit-button": "go_search_button",
|
|
"input-textfield": "freetext_search",
|
|
"selected-filters-container": "selected_filter_container"
|
|
}
|
|
}
|
|
},
|
|
"actions": {
|
|
"on-add-child": {
|
|
"sm:set-active": true
|
|
},
|
|
"on-remove-child": {
|
|
"sm:set-active": false
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "search_input",
|
|
"controller": "group",
|
|
"view": "menu3.containers.AnimationContainerSearchPage",
|
|
"pages": true,
|
|
"autoselectchildren": true,
|
|
"data": {
|
|
"move_col": -8.2,
|
|
"move_row": 0,
|
|
"moveduration": 0.5,
|
|
"blendoutduration": 0.2,
|
|
"callback_forward": "start_search",
|
|
"callback_reverse": "reset_input"
|
|
},
|
|
"actions": {
|
|
"start_search": {
|
|
"sm:submit-search-request": {
|
|
"load-async": {
|
|
"from": {
|
|
"url": "contractsearch",
|
|
"args": {
|
|
"sorting": ""
|
|
}
|
|
},
|
|
"post-load-action": {
|
|
"hide-node": "search_input",
|
|
"show-node": "search_results",
|
|
"set-selected": {
|
|
"target": "search_results_container"
|
|
}
|
|
},
|
|
"target": "search_results",
|
|
"showloadingindicator": true,
|
|
"blocksinput": true
|
|
}
|
|
},
|
|
"set-busystate": {
|
|
"set-active": false
|
|
}
|
|
},
|
|
"reset_input": {
|
|
"set-busystate": {
|
|
"set-active": false
|
|
},
|
|
"show-node": [
|
|
"search_matrix"
|
|
]
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "search_matrix",
|
|
"controller": "group",
|
|
"pages": true,
|
|
"view": "menu3.containers.ScrollingListContainer",
|
|
"direction": "vertical",
|
|
"data": {
|
|
"direction": "vertical",
|
|
"overflowscrolling": 2,
|
|
"scrollbarspaceoffset": -10,
|
|
"animation": "blendout"
|
|
},
|
|
"ncols": 8,
|
|
"nrows": 3.96,
|
|
"children": [
|
|
{
|
|
"id": "freetext_search_group",
|
|
"controller": "group",
|
|
"pages": true,
|
|
"ncols": 8,
|
|
"nrows": 1.32,
|
|
"row": 0,
|
|
"col": 0,
|
|
"autoselectchildren": true,
|
|
"children": [
|
|
{
|
|
"id": "freetext_search_header",
|
|
"view": "menu3.search.SearchTagGroupHeader",
|
|
"ncols": 4.8,
|
|
"nrows": 0.32,
|
|
"selectable": false,
|
|
"pressable": true,
|
|
"data": {
|
|
"title": "$loc UI_SEARCH_PAGE_INPUT_TITLE",
|
|
"icon": "edit"
|
|
},
|
|
"buttons": [
|
|
{
|
|
"actiontype": "select",
|
|
"actionlabel": "$loc UI_BUTTON_PROMPTS_SHOW_TEXT_SEARCH_HELP"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "freetext_search",
|
|
"view": "menu3.search.SearchTagElementCustomInput",
|
|
"ncols": 4.8,
|
|
"nrows": 1,
|
|
"data": {
|
|
"title": "$loc UI_SEARCH_PAGE_INPUT_TITLE",
|
|
"input-replace-token": "InputTextToken"
|
|
},
|
|
"buttons": [
|
|
{
|
|
"actiontype": "select",
|
|
"actionlabel": "$loc UI_BUTTON_PROMPTS_SHOW_TEXT_SEARCH_HELP"
|
|
}
|
|
],
|
|
"actions": {
|
|
"accept": {
|
|
"$switch $arg _platform": [
|
|
{
|
|
"case": "pc",
|
|
"return": {
|
|
"call": {
|
|
"target": "freetext_search",
|
|
"method": "doTextFieldAccept"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"case": "stadia",
|
|
"return": {
|
|
"call": {
|
|
"target": "freetext_search",
|
|
"method": "doTextFieldAccept"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"default": {
|
|
"open-virtual-keyboard": {
|
|
"target": "freetext_search",
|
|
"title": "$loc UI_SEARCH_PAGE_INPUT_TITLE",
|
|
"maxchars": 40,
|
|
"multiline": false
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"on-input-entered": {
|
|
"$notransform": {
|
|
"sm:add-text-filter": {
|
|
"$setup": {
|
|
"$set Title": "$.InputTextToken",
|
|
"$set Key": "Text",
|
|
"$set Value": "$.InputTextToken",
|
|
"$in": {
|
|
"selected-filter-id": "$formatstring SELECTED_FILTER_Text_{$.InputTextToken}",
|
|
"filter-group-id": "$.Key",
|
|
"filter-element": {
|
|
"view": "menu3.search.SearchSelectedTagElement",
|
|
"id": "$formatstring SELECTED_FILTER_{$.Key}_{$.Value}",
|
|
"data": {
|
|
"title": {
|
|
"$switch $.Key": [
|
|
{
|
|
"case": "Text",
|
|
"return": "$formatstring \"{$.Title}\""
|
|
},
|
|
{
|
|
"default": "$.Title"
|
|
}
|
|
]
|
|
},
|
|
"key": "$.Key",
|
|
"value": "$.Value",
|
|
"active": false
|
|
},
|
|
"actions": {
|
|
"$switch $.Key": [
|
|
{
|
|
"case": "Text",
|
|
"return": {
|
|
"accept": {
|
|
"sm:remove-text-filter": ""
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"default": {
|
|
"accept": {
|
|
"sm:remove-filter": ""
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"action-select": {
|
|
"set-selectable": {
|
|
"freetext_search_header": true
|
|
},
|
|
"set-selected": {
|
|
"target": "freetext_search_header"
|
|
},
|
|
"show-modal": {
|
|
"config": {
|
|
"view": "menu3.modal.ModalDialogGeneric",
|
|
"buttons": [
|
|
{
|
|
"label": "$loc UI_DIALOG_OK",
|
|
"type": "cancel",
|
|
"icon": "arrowright"
|
|
}
|
|
],
|
|
"data": {
|
|
"title": "$loc UI_DIALOG_CONTRACT_TEXT_SEARCH_HELP_TITLE",
|
|
"description": "$loc UI_DIALOG_CONTRACT_TEXT_SEARCH_HELP_TEXT"
|
|
}
|
|
},
|
|
"onbutton": [
|
|
{
|
|
"set-selected": {
|
|
"target": "freetext_search"
|
|
},
|
|
"set-selectable": {
|
|
"freetext_search_header": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"view": "menu3.search.SearchTagGroupHeader",
|
|
"ncols": 3.2,
|
|
"nrows": 0.32,
|
|
"selectable": false,
|
|
"pressable": false,
|
|
"data": {
|
|
"title": "$loc UI_SEARCH_PAGE_CATEGORY_FRIENDS",
|
|
"icon": "npc"
|
|
}
|
|
},
|
|
{
|
|
"$setup": {
|
|
"$set Key": "Friends",
|
|
"$set Value": "active",
|
|
"$set Title": "$loc UI_SEARCH_PAGE_TARGETS_FRIENDS_FILTER",
|
|
"$in": {
|
|
"view": "menu3.search.SearchTagElementCustom",
|
|
"id": "$formatstring FILTER_{$.Key}_{$.Value}",
|
|
"ncols": 3.2,
|
|
"nrows": 1,
|
|
"data": {
|
|
"defaulttext": "$.Title"
|
|
},
|
|
"actions": {
|
|
"accept": {
|
|
"sm:toggle-filter": {
|
|
"selected-filter-id": "$formatstring SELECTED_FILTER_{$.Key}_{$.Value}",
|
|
"filter-group-id": "$.Key",
|
|
"filter-element": {
|
|
"view": "menu3.search.SearchSelectedTagElement",
|
|
"id": "$formatstring SELECTED_FILTER_{$.Key}_{$.Value}",
|
|
"data": {
|
|
"title": {
|
|
"$switch $.Key": [
|
|
{
|
|
"case": "Text",
|
|
"return": "$formatstring \"{$.Title}\""
|
|
},
|
|
{
|
|
"default": "$.Title"
|
|
}
|
|
]
|
|
},
|
|
"key": "$.Key",
|
|
"value": "$.Value",
|
|
"active": false
|
|
},
|
|
"actions": {
|
|
"$switch $.Key": [
|
|
{
|
|
"case": "Text",
|
|
"return": {
|
|
"accept": {
|
|
"sm:remove-text-filter": ""
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"default": {
|
|
"accept": {
|
|
"sm:remove-filter": ""
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$setup": {
|
|
"$set DataTemp": {
|
|
"$mergeobjects": {
|
|
"$each $.FilterData": {
|
|
"$expand $.Key": "$."
|
|
}
|
|
}
|
|
},
|
|
"$set Data": [
|
|
{
|
|
"Width": 3.2,
|
|
"SubData": [
|
|
"$.DataTemp.Location"
|
|
]
|
|
},
|
|
{
|
|
"Width": 1.6,
|
|
"SubData": [
|
|
"$.DataTemp.TargetCount",
|
|
"$.DataTemp.Disguises"
|
|
]
|
|
},
|
|
{
|
|
"Width": 1.6,
|
|
"SubData": [
|
|
"$.DataTemp.KillTypes"
|
|
]
|
|
},
|
|
{
|
|
"Width": 1.6,
|
|
"SubData": [
|
|
"$.DataTemp.Conditions"
|
|
]
|
|
}
|
|
],
|
|
"$in": {
|
|
"id": "tag_search_group",
|
|
"controller": "group",
|
|
"pages": true,
|
|
"ncols": 8,
|
|
"nrows": 2.88,
|
|
"row": 1.1,
|
|
"col": 0,
|
|
"navigationmode": "leaf-selection",
|
|
"autoselectchildren": true,
|
|
"children": {
|
|
"$each $.Data": {
|
|
"controller": "group",
|
|
"pages": true,
|
|
"autoselectchildren": true,
|
|
"navigationmode": "forward-to-parent",
|
|
"ncols": "$.Width",
|
|
"children": {
|
|
"$each $.SubData": {
|
|
"controller": "group",
|
|
"fillstrategy": "rowfirst",
|
|
"pages": true,
|
|
"autoselectchildren": true,
|
|
"navigationmode": "forward-to-parent",
|
|
"ncols": {
|
|
"$if $eqs ($.Key,Location)": {
|
|
"$then": 3.2,
|
|
"$else": 1.6
|
|
}
|
|
},
|
|
"nrows": {
|
|
"$if $eqs ($.Key,TargetCount)": {
|
|
"$then": 2.24
|
|
}
|
|
},
|
|
"children": {
|
|
"$merge": [
|
|
{
|
|
"view": "menu3.search.SearchTagGroupHeader",
|
|
"ncols": {
|
|
"$if $eqs ($.Key,Location)": {
|
|
"$then": 3.2,
|
|
"$else": 1.6
|
|
}
|
|
},
|
|
"nrows": 0.32,
|
|
"selectable": false,
|
|
"pressable": false,
|
|
"data": {
|
|
"title": "$loc $.Title",
|
|
"icon": {
|
|
"$switch $.Key": [
|
|
{
|
|
"case": "Location",
|
|
"return": "mission"
|
|
},
|
|
{
|
|
"case": "TargetCount",
|
|
"return": "target"
|
|
},
|
|
{
|
|
"case": "Disguises",
|
|
"return": "disguise"
|
|
},
|
|
{
|
|
"case": "KillTypes",
|
|
"return": "difficulty"
|
|
},
|
|
{
|
|
"case": "Conditions",
|
|
"return": "complication"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"view": {
|
|
"$switch $.Key": [
|
|
{
|
|
"case": "Location",
|
|
"return": "menu3.search.SearchTagElementBig"
|
|
},
|
|
{
|
|
"default": "menu3.search.SearchTagElement"
|
|
}
|
|
]
|
|
},
|
|
"ncols": {
|
|
"$switch $.Key": [
|
|
{
|
|
"case": "Location",
|
|
"return": 3.2
|
|
},
|
|
{
|
|
"default": 1.6
|
|
}
|
|
]
|
|
},
|
|
"nrows": 0.32,
|
|
"selectable": "true",
|
|
"pressable": "true",
|
|
"id": "$formatstring FILTER_ANY_{$.Key}",
|
|
"data": {
|
|
"title": "$loc $formatstring UI_SEARCH_PAGE_ANY_{$.Key}",
|
|
"active": true
|
|
},
|
|
"actions": {
|
|
"accept": {
|
|
"sm:remove-all-filters": {
|
|
"filter-group-id": "$.Key",
|
|
"reselect-on-last-filter-removed": false
|
|
}
|
|
},
|
|
"on-add-child": {
|
|
"sm:register-any-button": {
|
|
"filter-group-id": "$.Key"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"$each $.Values": {
|
|
"$setup": {
|
|
"$set View": {
|
|
"$switch $.Key": [
|
|
{
|
|
"case": "Location",
|
|
"return": "menu3.search.SearchTagElementBig"
|
|
},
|
|
{
|
|
"default": "menu3.search.SearchTagElement"
|
|
}
|
|
]
|
|
},
|
|
"$set Width": {
|
|
"$switch $.Key": [
|
|
{
|
|
"case": "Location",
|
|
"return": 3.2
|
|
},
|
|
{
|
|
"default": 1.6
|
|
}
|
|
]
|
|
},
|
|
"$set FilterEnabled": {
|
|
"$switch $.Key": [
|
|
{
|
|
"case": "Location",
|
|
"return": false
|
|
},
|
|
{
|
|
"default": true
|
|
}
|
|
]
|
|
},
|
|
"$set TitleTab01": {
|
|
"$switch $.Key": [
|
|
{
|
|
"case": "Location",
|
|
"return": {
|
|
"$setup": {
|
|
"$set City": "$loc $formatstring UI_{$.Value}_CITY",
|
|
"$in": "$formatstring {$.City}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"default": null
|
|
}
|
|
]
|
|
},
|
|
"$set TitleTab02": {
|
|
"$switch $.Key": [
|
|
{
|
|
"case": "Location",
|
|
"return": "$loc $.Title"
|
|
},
|
|
{
|
|
"default": null
|
|
}
|
|
]
|
|
},
|
|
"$set Title": {
|
|
"$switch $.Key": [
|
|
{
|
|
"case": "Location",
|
|
"return": {
|
|
"$setup": {
|
|
"$set City": "$loc $formatstring UI_{$.Value}_CITY",
|
|
"$set Mission": "$loc $.Title",
|
|
"$in": "$formatstring {$.City} / {$.Mission}"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"case": "Conditions",
|
|
"return": {
|
|
"$if $stringcontains ($.Value,_secondary)": {
|
|
"$then": {
|
|
"$setup": {
|
|
"$set LocalizedTitle": "$loc $.Title",
|
|
"$set Optional": "$loc UI_DIALOG_OPTIONAL",
|
|
"$in": "$formatstring {$.LocalizedTitle} {$.Optional}"
|
|
}
|
|
},
|
|
"$else": "$loc $.Title"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"default": "$loc $.Title"
|
|
}
|
|
]
|
|
},
|
|
"$in": {
|
|
"view": "$.View",
|
|
"ncols": "$.Width",
|
|
"nrows": 0.32,
|
|
"selectable": "$.FilterEnabled",
|
|
"pressable": "$.FilterEnabled",
|
|
"id": "$formatstring FILTER_{$.Key}_{$.Value}",
|
|
"data": {
|
|
"title": "$.Title",
|
|
"titletab01": "$.TitleTab01",
|
|
"titletab02": "$.TitleTab02",
|
|
"tabposition": 180,
|
|
"disabled": "$not $.FilterEnabled"
|
|
},
|
|
"buttons": [
|
|
{
|
|
"actiontype": "accept",
|
|
"actionlabel": "$loc UI_BUTTON_PROMPTS_ACTION_SELECT"
|
|
},
|
|
{
|
|
"actiontype": "cancel",
|
|
"actionlabel": "$loc UI_BUTTON_PROMPTS_ACTION_BACK"
|
|
}
|
|
],
|
|
"actions": {
|
|
"accept": {
|
|
"sm:toggle-filter": {
|
|
"selected-filter-id": "$formatstring SELECTED_FILTER_{$.Key}_{$.Value}",
|
|
"filter-group-id": "$.Key",
|
|
"filter-element": {
|
|
"view": "menu3.search.SearchSelectedTagElement",
|
|
"id": "$formatstring SELECTED_FILTER_{$.Key}_{$.Value}",
|
|
"data": {
|
|
"title": {
|
|
"$switch $.Key": [
|
|
{
|
|
"case": "Text",
|
|
"return": "$formatstring \"{$.Title}\""
|
|
},
|
|
{
|
|
"default": "$.Title"
|
|
}
|
|
]
|
|
},
|
|
"key": "$.Key",
|
|
"value": "$.Value",
|
|
"active": false
|
|
},
|
|
"actions": {
|
|
"$switch $.Key": [
|
|
{
|
|
"case": "Text",
|
|
"return": {
|
|
"accept": {
|
|
"sm:remove-text-filter": ""
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"default": {
|
|
"accept": {
|
|
"sm:remove-filter": ""
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "search_matrix_selected",
|
|
"controller": "list",
|
|
"direction": "vertical",
|
|
"data": {
|
|
"direction": "vertical",
|
|
"animation": "move"
|
|
},
|
|
"row": 0,
|
|
"col": 8.1,
|
|
"ncols": 1,
|
|
"nrows": 3.9,
|
|
"children": [
|
|
{
|
|
"id": "go_search_button",
|
|
"view": "menu3.search.SearchButton",
|
|
"row": 0,
|
|
"col": 0,
|
|
"nrows": 1,
|
|
"ncols": 2,
|
|
"selectable": false,
|
|
"pressable": false,
|
|
"data": {
|
|
"title": "$loc UI_SEARCH_PAGE_GO_BUTTON",
|
|
"icon": "search",
|
|
"highcontrastmode": true,
|
|
"disabled": true
|
|
},
|
|
"buttons": [
|
|
{
|
|
"actiontype": "accept",
|
|
"actionlabel": "$loc UI_BUTTON_PROMPTS_ACTION_SELECT"
|
|
},
|
|
{
|
|
"actiontype": "cancel",
|
|
"actionlabel": "$loc UI_BUTTON_PROMPTS_ACTION_BACK"
|
|
}
|
|
],
|
|
"actions": {
|
|
"accept": {
|
|
"hide-node": [
|
|
"search_matrix",
|
|
"search_results"
|
|
],
|
|
"set-busystate": {
|
|
"set-active": true,
|
|
"blocksinput": true
|
|
},
|
|
"call": {
|
|
"target": "search_input",
|
|
"method": "startAnimation",
|
|
"args": true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "selected_filter_container",
|
|
"controller": "list",
|
|
"view": "menu3.search.SearchSelectedTagScrollingListContainer",
|
|
"direction": "vertical",
|
|
"data": {
|
|
"direction": "vertical",
|
|
"instantfirstscroll": true,
|
|
"usepersistentreloaddata": true,
|
|
"overflowscrolling": "1.15",
|
|
"scrollbarspaceoffset": -18,
|
|
"offsetCol": 0.056,
|
|
"emptycount": 8,
|
|
"emptyelementfillcount": 1,
|
|
"elementnrows": 0.32,
|
|
"icon": "tag",
|
|
"title": "$loc UI_SEARCH_PAGE_CATEGORY_SELECTEDTAGS"
|
|
},
|
|
"row": 1.071,
|
|
"col": 0.029,
|
|
"ncols": 1.94,
|
|
"nrows": 2.88,
|
|
"hidedefaultnocontent": true,
|
|
"actions": {
|
|
"last-child-removed": {
|
|
"set-selected": {
|
|
"target": "search_matrix"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "search_results",
|
|
"controller": "group",
|
|
"children": []
|
|
},
|
|
{
|
|
"id": "locations_resourceavailability_check_container",
|
|
"children": {
|
|
"$each $.LocationsData.Data.Locations": {
|
|
"selectable": false,
|
|
"pressable": false,
|
|
"stateproviders": [
|
|
{
|
|
"type": "contractavailability",
|
|
"activate-on-page-opened": false,
|
|
"fire-actions-again-after-reactivating": true,
|
|
"contract": "$.Contract"
|
|
}
|
|
],
|
|
"actions": {
|
|
"on-content-available": {
|
|
"sm:enable-owned-location": {
|
|
"available-filter-element": "$formatstring FILTER_Location_{$.SubLocation.Id}",
|
|
"location-id": "$.SubLocation.Id"
|
|
}
|
|
},
|
|
"on-content-not-owned": {
|
|
"sm:disable-owned-location": {
|
|
"available-filter-element": "$formatstring FILTER_Location_{$.SubLocation.Id}",
|
|
"location-id": "$.SubLocation.Id"
|
|
}
|
|
},
|
|
"on-content-not-installed": {
|
|
"sm:disable-owned-location": {
|
|
"available-filter-element": "$formatstring FILTER_Location_{$.SubLocation.Id}",
|
|
"location-id": "$.SubLocation.Id"
|
|
}
|
|
},
|
|
"on-content-downloading": {
|
|
"sm:disable-owned-location": {
|
|
"available-filter-element": "$formatstring FILTER_Location_{$.SubLocation.Id}",
|
|
"location-id": "$.SubLocation.Id"
|
|
}
|
|
},
|
|
"on-content-update-required": {
|
|
"sm:disable-owned-location": {
|
|
"available-filter-element": "$formatstring FILTER_Location_{$.SubLocation.Id}",
|
|
"location-id": "$.SubLocation.Id"
|
|
}
|
|
},
|
|
"on-content-installing": {
|
|
"sm:disable-owned-location": {
|
|
"available-filter-element": "$formatstring FILTER_Location_{$.SubLocation.Id}",
|
|
"location-id": "$.SubLocation.Id"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"$merge": [
|
|
{
|
|
"id": "hiddenPublicIdNode",
|
|
"pressable": false,
|
|
"selectable": false,
|
|
"nrows": 0,
|
|
"ncols": 0,
|
|
"data": {
|
|
"publicId": ""
|
|
}
|
|
},
|
|
{
|
|
"_comment": "don't change the ID, it's referenced in other json files!",
|
|
"id": "searchcontractstile",
|
|
"view": "menu3.basic.ItemTileSmall",
|
|
"nrows": 1.5,
|
|
"ncols": 2,
|
|
"pressable": {
|
|
"$if $($arg _ugcrestricted)": {
|
|
"$then": false,
|
|
"$else": true
|
|
}
|
|
},
|
|
"data": {
|
|
"$if $($arg _ugcrestricted)": {
|
|
"$then": {
|
|
"title": "$loc UI_MENU_ELEMENT_SEARCH_CONTRACTS",
|
|
"image": "$res images/contracts/categories/contracts/smalltile02_bottom.jpg",
|
|
"icon": "locked",
|
|
"locked": true,
|
|
"lockedreason": "$loc UI_CONTRACT_NO_ACCESS_UGC_DESCRIPTION",
|
|
"availability": {
|
|
"available": true,
|
|
"_comment": "hack to get locked reason to show"
|
|
}
|
|
},
|
|
"$else": {
|
|
"title": "$loc UI_MENU_ELEMENT_SEARCH_CONTRACTS",
|
|
"image": "$res images/contracts/categories/contracts/smalltile02_bottom.jpg",
|
|
"icon": "search"
|
|
}
|
|
}
|
|
},
|
|
"actions": {
|
|
"select": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": [
|
|
{
|
|
"view": "menu3.basic.HeadlineElement",
|
|
"selectable": false,
|
|
"pressable": false,
|
|
"data": {
|
|
"title": "$loc UI_MENU_ELEMENT_SEARCH_CONTRACTS",
|
|
"typeicon": "search"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"deselect": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": []
|
|
}
|
|
},
|
|
"accept": {
|
|
"show-edit-text-dialog": {
|
|
"target": "hiddenPublicIdNode",
|
|
"dataproperty": "publicId",
|
|
"title": "$loc UI_MENU_ELEMENT_SEARCH_CONTRACTS",
|
|
"hint": "$loc UI_MENU_PAGE_SEARCH_DESCRIPTION",
|
|
"_comment": "maxlength is not used by publicid dialog, keep it for consoles though!",
|
|
"maxlength": 15,
|
|
"char-restrict": "[0-9]",
|
|
"dialog-type": "publicid",
|
|
"validation": [
|
|
{
|
|
"type": "platformid",
|
|
"platformid": {
|
|
"$switch $arg _platform": [
|
|
{
|
|
"case": "pc",
|
|
"return": 1
|
|
},
|
|
{
|
|
"case": "stadia",
|
|
"return": 1
|
|
},
|
|
{
|
|
"case": "orbis",
|
|
"return": 2
|
|
},
|
|
{
|
|
"case": "ps5",
|
|
"return": 2
|
|
},
|
|
{
|
|
"case": "durango",
|
|
"return": 3
|
|
},
|
|
{
|
|
"case": "scarlett",
|
|
"return": 3
|
|
},
|
|
{
|
|
"default": 0
|
|
}
|
|
]
|
|
},
|
|
"level": 1,
|
|
"message": "$loc UI_MENU_ELEMENT_SEARCH_CONTRACT_INVALID_PLATFORMID"
|
|
}
|
|
],
|
|
"clear-on-cancel": true,
|
|
"input-dialog-style": "number",
|
|
"data": {
|
|
"selectable": true,
|
|
"editable": true
|
|
},
|
|
"onbutton": [
|
|
{
|
|
"link-with-copy": {
|
|
"data-copy": {
|
|
"source": "hiddenPublicIdNode",
|
|
"dataproperty": "publicId",
|
|
"target-path": "args.args.publicid"
|
|
},
|
|
"link": {
|
|
"page": "lookupcontractpublicid",
|
|
"args": {
|
|
"url": "lookupcontractpublicid",
|
|
"args": {
|
|
"publicid": ""
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$setup": {
|
|
"$set Category": "Trending",
|
|
"$in": {
|
|
"$if": {
|
|
"$condition": {
|
|
"$or": [
|
|
"$eqs ($.Category,MyHistory)",
|
|
"$eqs ($.Category,MyPlaylist)",
|
|
"$eqs ($.Category,MyContracts)"
|
|
]
|
|
},
|
|
"$then": {
|
|
"$setpageargs": {
|
|
"NextSubType": {
|
|
"$switch $.CurrentSubType": [
|
|
{
|
|
"case": "MyHistory_all",
|
|
"return": "MyHistory_completed"
|
|
},
|
|
{
|
|
"case": "MyHistory_completed",
|
|
"return": "MyHistory_failed"
|
|
},
|
|
{
|
|
"case": "MyHistory_failed",
|
|
"return": "MyHistory_all"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_all",
|
|
"return": "MyPlaylist_completed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_completed",
|
|
"return": "MyPlaylist_failed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_failed",
|
|
"return": "MyPlaylist_all"
|
|
},
|
|
{
|
|
"case": "MyContracts_all",
|
|
"return": "MyContracts_completed"
|
|
},
|
|
{
|
|
"case": "MyContracts_completed",
|
|
"return": "MyContracts_failed"
|
|
},
|
|
{
|
|
"case": "MyContracts_failed",
|
|
"return": "MyContracts_all"
|
|
},
|
|
{
|
|
"default": ""
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"view": "menu3.basic.ItemTileSmall",
|
|
"_comment": "do not change this id - is used by PlanningButtons & empty featured tiles!",
|
|
"id": "$formatstring {$.Category}_tile",
|
|
"nrows": 1.5,
|
|
"ncols": 2,
|
|
"data": {
|
|
"title": "$loc $formatstring UI_MENU_PAGE_HITS_ELEMENT_CATEGORY_{$.Category}",
|
|
"image": {
|
|
"$switch $.Category": [
|
|
{
|
|
"case": "Trending",
|
|
"return": "$res images/contracts/categories/contracts/smalltile03_top.jpg"
|
|
},
|
|
{
|
|
"case": "MostPlayedLastWeek",
|
|
"return": "$res images/contracts/categories/contracts/smalltile03_bottom.jpg"
|
|
},
|
|
{
|
|
"case": "Featured",
|
|
"return": "$res images/contracts/categories/contracts/smalltile04_top.jpg"
|
|
},
|
|
{
|
|
"case": "MyHistory",
|
|
"return": "$res images/contracts/categories/contracts/smalltile04_bottom.jpg"
|
|
},
|
|
{
|
|
"case": "MyContracts",
|
|
"return": "$res images/contracts/categories/contracts/smalltile05_top.jpg"
|
|
},
|
|
{
|
|
"default": "$res images/contracts/categories/contracts/smalltile05_bottom.jpg"
|
|
}
|
|
]
|
|
},
|
|
"icon": {
|
|
"$switch $.Category": [
|
|
{
|
|
"case": "Featured",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "Trending",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "MostPlayedLastWeek",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"default": "contract"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"actions": {
|
|
"select": {
|
|
"set-page-args": {
|
|
"HitsCategory": "$.Category",
|
|
"NextSubType": {
|
|
"$switch $.CurrentSubType": [
|
|
{
|
|
"case": "MyHistory_all",
|
|
"return": "MyHistory_completed"
|
|
},
|
|
{
|
|
"case": "MyHistory_completed",
|
|
"return": "MyHistory_failed"
|
|
},
|
|
{
|
|
"case": "MyHistory_failed",
|
|
"return": "MyHistory_all"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_all",
|
|
"return": "MyPlaylist_completed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_completed",
|
|
"return": "MyPlaylist_failed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_failed",
|
|
"return": "MyPlaylist_all"
|
|
},
|
|
{
|
|
"case": "MyContracts_all",
|
|
"return": "MyContracts_completed"
|
|
},
|
|
{
|
|
"case": "MyContracts_completed",
|
|
"return": "MyContracts_failed"
|
|
},
|
|
{
|
|
"case": "MyContracts_failed",
|
|
"return": "MyContracts_all"
|
|
},
|
|
{
|
|
"default": ""
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": [
|
|
{
|
|
"view": "menu3.basic.HeadlineElement",
|
|
"selectable": false,
|
|
"pressable": false,
|
|
"data": {
|
|
"title": "$loc $formatstring UI_MENU_PAGE_HITS_ELEMENT_CATEGORY_{$.Category}",
|
|
"typeicon": {
|
|
"$switch $.Category": [
|
|
{
|
|
"case": "Featured",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "Trending",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "MostPlayedLastWeek",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"default": "contract"
|
|
}
|
|
]
|
|
},
|
|
"infoicon": "info"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"deselect": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": []
|
|
}
|
|
}
|
|
},
|
|
"children": {
|
|
"controller": "group",
|
|
"view": "menu3.containers.ScrollingListContainer",
|
|
"pages": true,
|
|
"id": "hitscategory_container",
|
|
"nrows": 3,
|
|
"ncols": 10,
|
|
"pressable": false,
|
|
"data": {
|
|
"direction": "horizontal"
|
|
},
|
|
"actions": {
|
|
"on-add-child": {
|
|
"load-async": {
|
|
"from": {
|
|
"url": "hitscategory",
|
|
"args": {
|
|
"page": "0",
|
|
"type": "$.Category"
|
|
}
|
|
},
|
|
"page": "0",
|
|
"pagedirection": "1",
|
|
"target": "hitscategory_container",
|
|
"showloadingindicator": true,
|
|
"blocksinput": false,
|
|
"post-load-action": [
|
|
{
|
|
"set-selected": {
|
|
"target": "hitscategory_container"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"pressable": false,
|
|
"selectable": false
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"$setup": {
|
|
"$set Category": "MostPlayedLastWeek",
|
|
"$in": {
|
|
"$if": {
|
|
"$condition": {
|
|
"$or": [
|
|
"$eqs ($.Category,MyHistory)",
|
|
"$eqs ($.Category,MyPlaylist)",
|
|
"$eqs ($.Category,MyContracts)"
|
|
]
|
|
},
|
|
"$then": {
|
|
"$setpageargs": {
|
|
"NextSubType": {
|
|
"$switch $.CurrentSubType": [
|
|
{
|
|
"case": "MyHistory_all",
|
|
"return": "MyHistory_completed"
|
|
},
|
|
{
|
|
"case": "MyHistory_completed",
|
|
"return": "MyHistory_failed"
|
|
},
|
|
{
|
|
"case": "MyHistory_failed",
|
|
"return": "MyHistory_all"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_all",
|
|
"return": "MyPlaylist_completed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_completed",
|
|
"return": "MyPlaylist_failed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_failed",
|
|
"return": "MyPlaylist_all"
|
|
},
|
|
{
|
|
"case": "MyContracts_all",
|
|
"return": "MyContracts_completed"
|
|
},
|
|
{
|
|
"case": "MyContracts_completed",
|
|
"return": "MyContracts_failed"
|
|
},
|
|
{
|
|
"case": "MyContracts_failed",
|
|
"return": "MyContracts_all"
|
|
},
|
|
{
|
|
"default": ""
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"view": "menu3.basic.ItemTileSmall",
|
|
"_comment": "do not change this id - is used by PlanningButtons & empty featured tiles!",
|
|
"id": "$formatstring {$.Category}_tile",
|
|
"nrows": 1.5,
|
|
"ncols": 2,
|
|
"data": {
|
|
"title": "$loc $formatstring UI_MENU_PAGE_HITS_ELEMENT_CATEGORY_{$.Category}",
|
|
"image": {
|
|
"$switch $.Category": [
|
|
{
|
|
"case": "Trending",
|
|
"return": "$res images/contracts/categories/contracts/smalltile03_top.jpg"
|
|
},
|
|
{
|
|
"case": "MostPlayedLastWeek",
|
|
"return": "$res images/contracts/categories/contracts/smalltile03_bottom.jpg"
|
|
},
|
|
{
|
|
"case": "Featured",
|
|
"return": "$res images/contracts/categories/contracts/smalltile04_top.jpg"
|
|
},
|
|
{
|
|
"case": "MyHistory",
|
|
"return": "$res images/contracts/categories/contracts/smalltile04_bottom.jpg"
|
|
},
|
|
{
|
|
"case": "MyContracts",
|
|
"return": "$res images/contracts/categories/contracts/smalltile05_top.jpg"
|
|
},
|
|
{
|
|
"default": "$res images/contracts/categories/contracts/smalltile05_bottom.jpg"
|
|
}
|
|
]
|
|
},
|
|
"icon": {
|
|
"$switch $.Category": [
|
|
{
|
|
"case": "Featured",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "Trending",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "MostPlayedLastWeek",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"default": "contract"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"actions": {
|
|
"select": {
|
|
"set-page-args": {
|
|
"HitsCategory": "$.Category",
|
|
"NextSubType": {
|
|
"$switch $.CurrentSubType": [
|
|
{
|
|
"case": "MyHistory_all",
|
|
"return": "MyHistory_completed"
|
|
},
|
|
{
|
|
"case": "MyHistory_completed",
|
|
"return": "MyHistory_failed"
|
|
},
|
|
{
|
|
"case": "MyHistory_failed",
|
|
"return": "MyHistory_all"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_all",
|
|
"return": "MyPlaylist_completed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_completed",
|
|
"return": "MyPlaylist_failed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_failed",
|
|
"return": "MyPlaylist_all"
|
|
},
|
|
{
|
|
"case": "MyContracts_all",
|
|
"return": "MyContracts_completed"
|
|
},
|
|
{
|
|
"case": "MyContracts_completed",
|
|
"return": "MyContracts_failed"
|
|
},
|
|
{
|
|
"case": "MyContracts_failed",
|
|
"return": "MyContracts_all"
|
|
},
|
|
{
|
|
"default": ""
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": [
|
|
{
|
|
"view": "menu3.basic.HeadlineElement",
|
|
"selectable": false,
|
|
"pressable": false,
|
|
"data": {
|
|
"title": "$loc $formatstring UI_MENU_PAGE_HITS_ELEMENT_CATEGORY_{$.Category}",
|
|
"typeicon": {
|
|
"$switch $.Category": [
|
|
{
|
|
"case": "Featured",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "Trending",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "MostPlayedLastWeek",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"default": "contract"
|
|
}
|
|
]
|
|
},
|
|
"infoicon": "info"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"deselect": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": []
|
|
}
|
|
}
|
|
},
|
|
"children": {
|
|
"controller": "group",
|
|
"view": "menu3.containers.ScrollingListContainer",
|
|
"pages": true,
|
|
"id": "hitscategory_container",
|
|
"nrows": 3,
|
|
"ncols": 10,
|
|
"pressable": false,
|
|
"data": {
|
|
"direction": "horizontal"
|
|
},
|
|
"actions": {
|
|
"on-add-child": {
|
|
"load-async": {
|
|
"from": {
|
|
"url": "hitscategory",
|
|
"args": {
|
|
"page": "0",
|
|
"type": "$.Category"
|
|
}
|
|
},
|
|
"page": "0",
|
|
"pagedirection": "1",
|
|
"target": "hitscategory_container",
|
|
"showloadingindicator": true,
|
|
"blocksinput": false,
|
|
"post-load-action": [
|
|
{
|
|
"set-selected": {
|
|
"target": "hitscategory_container"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"pressable": false,
|
|
"selectable": false
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"$setup": {
|
|
"$set Category": "Featured",
|
|
"$in": {
|
|
"$if": {
|
|
"$condition": {
|
|
"$or": [
|
|
"$eqs ($.Category,MyHistory)",
|
|
"$eqs ($.Category,MyPlaylist)",
|
|
"$eqs ($.Category,MyContracts)"
|
|
]
|
|
},
|
|
"$then": {
|
|
"$setpageargs": {
|
|
"NextSubType": {
|
|
"$switch $.CurrentSubType": [
|
|
{
|
|
"case": "MyHistory_all",
|
|
"return": "MyHistory_completed"
|
|
},
|
|
{
|
|
"case": "MyHistory_completed",
|
|
"return": "MyHistory_failed"
|
|
},
|
|
{
|
|
"case": "MyHistory_failed",
|
|
"return": "MyHistory_all"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_all",
|
|
"return": "MyPlaylist_completed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_completed",
|
|
"return": "MyPlaylist_failed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_failed",
|
|
"return": "MyPlaylist_all"
|
|
},
|
|
{
|
|
"case": "MyContracts_all",
|
|
"return": "MyContracts_completed"
|
|
},
|
|
{
|
|
"case": "MyContracts_completed",
|
|
"return": "MyContracts_failed"
|
|
},
|
|
{
|
|
"case": "MyContracts_failed",
|
|
"return": "MyContracts_all"
|
|
},
|
|
{
|
|
"default": ""
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"view": "menu3.basic.ItemTileSmall",
|
|
"_comment": "do not change this id - is used by PlanningButtons & empty featured tiles!",
|
|
"id": "$formatstring {$.Category}_tile",
|
|
"nrows": 1.5,
|
|
"ncols": 2,
|
|
"data": {
|
|
"title": "$loc $formatstring UI_MENU_PAGE_HITS_ELEMENT_CATEGORY_{$.Category}",
|
|
"image": {
|
|
"$switch $.Category": [
|
|
{
|
|
"case": "Trending",
|
|
"return": "$res images/contracts/categories/contracts/smalltile03_top.jpg"
|
|
},
|
|
{
|
|
"case": "MostPlayedLastWeek",
|
|
"return": "$res images/contracts/categories/contracts/smalltile03_bottom.jpg"
|
|
},
|
|
{
|
|
"case": "Featured",
|
|
"return": "$res images/contracts/categories/contracts/smalltile04_top.jpg"
|
|
},
|
|
{
|
|
"case": "MyHistory",
|
|
"return": "$res images/contracts/categories/contracts/smalltile04_bottom.jpg"
|
|
},
|
|
{
|
|
"case": "MyContracts",
|
|
"return": "$res images/contracts/categories/contracts/smalltile05_top.jpg"
|
|
},
|
|
{
|
|
"default": "$res images/contracts/categories/contracts/smalltile05_bottom.jpg"
|
|
}
|
|
]
|
|
},
|
|
"icon": {
|
|
"$switch $.Category": [
|
|
{
|
|
"case": "Featured",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "Trending",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "MostPlayedLastWeek",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"default": "contract"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"actions": {
|
|
"select": {
|
|
"set-page-args": {
|
|
"HitsCategory": "$.Category",
|
|
"NextSubType": {
|
|
"$switch $.CurrentSubType": [
|
|
{
|
|
"case": "MyHistory_all",
|
|
"return": "MyHistory_completed"
|
|
},
|
|
{
|
|
"case": "MyHistory_completed",
|
|
"return": "MyHistory_failed"
|
|
},
|
|
{
|
|
"case": "MyHistory_failed",
|
|
"return": "MyHistory_all"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_all",
|
|
"return": "MyPlaylist_completed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_completed",
|
|
"return": "MyPlaylist_failed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_failed",
|
|
"return": "MyPlaylist_all"
|
|
},
|
|
{
|
|
"case": "MyContracts_all",
|
|
"return": "MyContracts_completed"
|
|
},
|
|
{
|
|
"case": "MyContracts_completed",
|
|
"return": "MyContracts_failed"
|
|
},
|
|
{
|
|
"case": "MyContracts_failed",
|
|
"return": "MyContracts_all"
|
|
},
|
|
{
|
|
"default": ""
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": [
|
|
{
|
|
"view": "menu3.basic.HeadlineElement",
|
|
"selectable": false,
|
|
"pressable": false,
|
|
"data": {
|
|
"title": "$loc $formatstring UI_MENU_PAGE_HITS_ELEMENT_CATEGORY_{$.Category}",
|
|
"typeicon": {
|
|
"$switch $.Category": [
|
|
{
|
|
"case": "Featured",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "Trending",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "MostPlayedLastWeek",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"default": "contract"
|
|
}
|
|
]
|
|
},
|
|
"infoicon": "info"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"deselect": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": []
|
|
}
|
|
}
|
|
},
|
|
"children": {
|
|
"controller": "group",
|
|
"view": "menu3.containers.ScrollingListContainer",
|
|
"pages": true,
|
|
"id": "hitscategory_container",
|
|
"nrows": 3,
|
|
"ncols": 10,
|
|
"pressable": false,
|
|
"data": {
|
|
"direction": "horizontal"
|
|
},
|
|
"actions": {
|
|
"on-add-child": {
|
|
"load-async": {
|
|
"from": {
|
|
"url": "hitscategory",
|
|
"args": {
|
|
"page": "0",
|
|
"type": "$.Category"
|
|
}
|
|
},
|
|
"page": "0",
|
|
"pagedirection": "1",
|
|
"target": "hitscategory_container",
|
|
"showloadingindicator": true,
|
|
"blocksinput": false,
|
|
"post-load-action": [
|
|
{
|
|
"set-selected": {
|
|
"target": "hitscategory_container"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"pressable": false,
|
|
"selectable": false
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"$setup": {
|
|
"$set Category": "MyHistory",
|
|
"$in": {
|
|
"$if": {
|
|
"$condition": {
|
|
"$or": [
|
|
"$eqs ($.Category,MyHistory)",
|
|
"$eqs ($.Category,MyPlaylist)",
|
|
"$eqs ($.Category,MyContracts)"
|
|
]
|
|
},
|
|
"$then": {
|
|
"$setpageargs": {
|
|
"NextSubType": {
|
|
"$switch $.CurrentSubType": [
|
|
{
|
|
"case": "MyHistory_all",
|
|
"return": "MyHistory_completed"
|
|
},
|
|
{
|
|
"case": "MyHistory_completed",
|
|
"return": "MyHistory_failed"
|
|
},
|
|
{
|
|
"case": "MyHistory_failed",
|
|
"return": "MyHistory_all"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_all",
|
|
"return": "MyPlaylist_completed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_completed",
|
|
"return": "MyPlaylist_failed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_failed",
|
|
"return": "MyPlaylist_all"
|
|
},
|
|
{
|
|
"case": "MyContracts_all",
|
|
"return": "MyContracts_completed"
|
|
},
|
|
{
|
|
"case": "MyContracts_completed",
|
|
"return": "MyContracts_failed"
|
|
},
|
|
{
|
|
"case": "MyContracts_failed",
|
|
"return": "MyContracts_all"
|
|
},
|
|
{
|
|
"default": ""
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"view": "menu3.basic.ItemTileSmall",
|
|
"_comment": "do not change this id - is used by PlanningButtons & empty featured tiles!",
|
|
"id": "$formatstring {$.Category}_tile",
|
|
"nrows": 1.5,
|
|
"ncols": 2,
|
|
"data": {
|
|
"title": "$loc $formatstring UI_MENU_PAGE_HITS_ELEMENT_CATEGORY_{$.Category}",
|
|
"image": {
|
|
"$switch $.Category": [
|
|
{
|
|
"case": "Trending",
|
|
"return": "$res images/contracts/categories/contracts/smalltile03_top.jpg"
|
|
},
|
|
{
|
|
"case": "MostPlayedLastWeek",
|
|
"return": "$res images/contracts/categories/contracts/smalltile03_bottom.jpg"
|
|
},
|
|
{
|
|
"case": "Featured",
|
|
"return": "$res images/contracts/categories/contracts/smalltile04_top.jpg"
|
|
},
|
|
{
|
|
"case": "MyHistory",
|
|
"return": "$res images/contracts/categories/contracts/smalltile04_bottom.jpg"
|
|
},
|
|
{
|
|
"case": "MyContracts",
|
|
"return": "$res images/contracts/categories/contracts/smalltile05_top.jpg"
|
|
},
|
|
{
|
|
"default": "$res images/contracts/categories/contracts/smalltile05_bottom.jpg"
|
|
}
|
|
]
|
|
},
|
|
"icon": {
|
|
"$switch $.Category": [
|
|
{
|
|
"case": "Featured",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "Trending",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "MostPlayedLastWeek",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"default": "contract"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"actions": {
|
|
"select": {
|
|
"set-page-args": {
|
|
"HitsCategory": "$.Category",
|
|
"NextSubType": {
|
|
"$switch $.CurrentSubType": [
|
|
{
|
|
"case": "MyHistory_all",
|
|
"return": "MyHistory_completed"
|
|
},
|
|
{
|
|
"case": "MyHistory_completed",
|
|
"return": "MyHistory_failed"
|
|
},
|
|
{
|
|
"case": "MyHistory_failed",
|
|
"return": "MyHistory_all"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_all",
|
|
"return": "MyPlaylist_completed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_completed",
|
|
"return": "MyPlaylist_failed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_failed",
|
|
"return": "MyPlaylist_all"
|
|
},
|
|
{
|
|
"case": "MyContracts_all",
|
|
"return": "MyContracts_completed"
|
|
},
|
|
{
|
|
"case": "MyContracts_completed",
|
|
"return": "MyContracts_failed"
|
|
},
|
|
{
|
|
"case": "MyContracts_failed",
|
|
"return": "MyContracts_all"
|
|
},
|
|
{
|
|
"default": ""
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": [
|
|
{
|
|
"view": "menu3.basic.HeadlineElement",
|
|
"selectable": false,
|
|
"pressable": false,
|
|
"data": {
|
|
"title": "$loc $formatstring UI_MENU_PAGE_HITS_ELEMENT_CATEGORY_{$.Category}",
|
|
"typeicon": {
|
|
"$switch $.Category": [
|
|
{
|
|
"case": "Featured",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "Trending",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "MostPlayedLastWeek",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"default": "contract"
|
|
}
|
|
]
|
|
},
|
|
"infoicon": "info"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"deselect": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": []
|
|
}
|
|
}
|
|
},
|
|
"children": {
|
|
"controller": "group",
|
|
"view": "menu3.containers.ScrollingListContainer",
|
|
"pages": true,
|
|
"id": "hitscategory_container",
|
|
"nrows": 3,
|
|
"ncols": 10,
|
|
"pressable": false,
|
|
"data": {
|
|
"direction": "horizontal"
|
|
},
|
|
"actions": {
|
|
"on-add-child": {
|
|
"load-async": {
|
|
"from": {
|
|
"url": "hitscategory",
|
|
"args": {
|
|
"page": "0",
|
|
"type": "$.Category"
|
|
}
|
|
},
|
|
"page": "0",
|
|
"pagedirection": "1",
|
|
"target": "hitscategory_container",
|
|
"showloadingindicator": true,
|
|
"blocksinput": false,
|
|
"post-load-action": [
|
|
{
|
|
"set-selected": {
|
|
"target": "hitscategory_container"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"pressable": false,
|
|
"selectable": false
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"$setup": {
|
|
"$set Category": "MyContracts",
|
|
"$in": {
|
|
"$if": {
|
|
"$condition": {
|
|
"$or": [
|
|
"$eqs ($.Category,MyHistory)",
|
|
"$eqs ($.Category,MyPlaylist)",
|
|
"$eqs ($.Category,MyContracts)"
|
|
]
|
|
},
|
|
"$then": {
|
|
"$setpageargs": {
|
|
"NextSubType": {
|
|
"$switch $.CurrentSubType": [
|
|
{
|
|
"case": "MyHistory_all",
|
|
"return": "MyHistory_completed"
|
|
},
|
|
{
|
|
"case": "MyHistory_completed",
|
|
"return": "MyHistory_failed"
|
|
},
|
|
{
|
|
"case": "MyHistory_failed",
|
|
"return": "MyHistory_all"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_all",
|
|
"return": "MyPlaylist_completed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_completed",
|
|
"return": "MyPlaylist_failed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_failed",
|
|
"return": "MyPlaylist_all"
|
|
},
|
|
{
|
|
"case": "MyContracts_all",
|
|
"return": "MyContracts_completed"
|
|
},
|
|
{
|
|
"case": "MyContracts_completed",
|
|
"return": "MyContracts_failed"
|
|
},
|
|
{
|
|
"case": "MyContracts_failed",
|
|
"return": "MyContracts_all"
|
|
},
|
|
{
|
|
"default": ""
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"view": "menu3.basic.ItemTileSmall",
|
|
"_comment": "do not change this id - is used by PlanningButtons & empty featured tiles!",
|
|
"id": "$formatstring {$.Category}_tile",
|
|
"nrows": 1.5,
|
|
"ncols": 2,
|
|
"data": {
|
|
"title": "$loc $formatstring UI_MENU_PAGE_HITS_ELEMENT_CATEGORY_{$.Category}",
|
|
"image": {
|
|
"$switch $.Category": [
|
|
{
|
|
"case": "Trending",
|
|
"return": "$res images/contracts/categories/contracts/smalltile03_top.jpg"
|
|
},
|
|
{
|
|
"case": "MostPlayedLastWeek",
|
|
"return": "$res images/contracts/categories/contracts/smalltile03_bottom.jpg"
|
|
},
|
|
{
|
|
"case": "Featured",
|
|
"return": "$res images/contracts/categories/contracts/smalltile04_top.jpg"
|
|
},
|
|
{
|
|
"case": "MyHistory",
|
|
"return": "$res images/contracts/categories/contracts/smalltile04_bottom.jpg"
|
|
},
|
|
{
|
|
"case": "MyContracts",
|
|
"return": "$res images/contracts/categories/contracts/smalltile05_top.jpg"
|
|
},
|
|
{
|
|
"default": "$res images/contracts/categories/contracts/smalltile05_bottom.jpg"
|
|
}
|
|
]
|
|
},
|
|
"icon": {
|
|
"$switch $.Category": [
|
|
{
|
|
"case": "Featured",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "Trending",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "MostPlayedLastWeek",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"default": "contract"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"actions": {
|
|
"select": {
|
|
"set-page-args": {
|
|
"HitsCategory": "$.Category",
|
|
"NextSubType": {
|
|
"$switch $.CurrentSubType": [
|
|
{
|
|
"case": "MyHistory_all",
|
|
"return": "MyHistory_completed"
|
|
},
|
|
{
|
|
"case": "MyHistory_completed",
|
|
"return": "MyHistory_failed"
|
|
},
|
|
{
|
|
"case": "MyHistory_failed",
|
|
"return": "MyHistory_all"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_all",
|
|
"return": "MyPlaylist_completed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_completed",
|
|
"return": "MyPlaylist_failed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_failed",
|
|
"return": "MyPlaylist_all"
|
|
},
|
|
{
|
|
"case": "MyContracts_all",
|
|
"return": "MyContracts_completed"
|
|
},
|
|
{
|
|
"case": "MyContracts_completed",
|
|
"return": "MyContracts_failed"
|
|
},
|
|
{
|
|
"case": "MyContracts_failed",
|
|
"return": "MyContracts_all"
|
|
},
|
|
{
|
|
"default": ""
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": [
|
|
{
|
|
"view": "menu3.basic.HeadlineElement",
|
|
"selectable": false,
|
|
"pressable": false,
|
|
"data": {
|
|
"title": "$loc $formatstring UI_MENU_PAGE_HITS_ELEMENT_CATEGORY_{$.Category}",
|
|
"typeicon": {
|
|
"$switch $.Category": [
|
|
{
|
|
"case": "Featured",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "Trending",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"case": "MostPlayedLastWeek",
|
|
"return": "featured"
|
|
},
|
|
{
|
|
"default": "contract"
|
|
}
|
|
]
|
|
},
|
|
"infoicon": "info"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"deselect": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": []
|
|
}
|
|
}
|
|
},
|
|
"children": {
|
|
"controller": "group",
|
|
"view": "menu3.containers.ScrollingListContainer",
|
|
"pages": true,
|
|
"id": "hitscategory_container",
|
|
"nrows": 3,
|
|
"ncols": 10,
|
|
"pressable": false,
|
|
"data": {
|
|
"direction": "horizontal"
|
|
},
|
|
"actions": {
|
|
"on-add-child": {
|
|
"load-async": {
|
|
"from": {
|
|
"url": "hitscategory",
|
|
"args": {
|
|
"page": "0",
|
|
"type": "$.Category"
|
|
}
|
|
},
|
|
"page": "0",
|
|
"pagedirection": "1",
|
|
"target": "hitscategory_container",
|
|
"showloadingindicator": true,
|
|
"blocksinput": false,
|
|
"post-load-action": [
|
|
{
|
|
"set-selected": {
|
|
"target": "hitscategory_container"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"pressable": false,
|
|
"selectable": false
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"view": "menu3.basic.ItemTileSmall",
|
|
"id": "myplaylist_tile",
|
|
"nrows": 1.5,
|
|
"ncols": 2,
|
|
"pressable": {
|
|
"$if $($arg _ugcrestricted)": {
|
|
"$then": false,
|
|
"$else": true
|
|
}
|
|
},
|
|
"data": {
|
|
"$if $($arg _ugcrestricted)": {
|
|
"$then": {
|
|
"title": "$loc UI_MENU_PAGE_HITS_ELEMENT_CATEGORY_MYPLAYLIST",
|
|
"image": "$res images/contracts/categories/contracts/smalltile05_bottom.jpg",
|
|
"icon": "locked",
|
|
"locked": true,
|
|
"lockedreason": "$loc UI_CONTRACT_NO_ACCESS_UGC_DESCRIPTION",
|
|
"availability": {
|
|
"available": true,
|
|
"_comment": "hack to get locked reason to show"
|
|
}
|
|
},
|
|
"$else": {
|
|
"title": "$loc UI_MENU_PAGE_HITS_ELEMENT_CATEGORY_MYPLAYLIST",
|
|
"image": "$res images/contracts/categories/contracts/smalltile05_bottom.jpg",
|
|
"icon": "favoritecontracts"
|
|
}
|
|
}
|
|
},
|
|
"actions": {
|
|
"select": {
|
|
"set-page-args": {
|
|
"HitsCategory": "MyPlaylist",
|
|
"NextSubType": {
|
|
"$switch $.CurrentSubType": [
|
|
{
|
|
"case": "MyHistory_all",
|
|
"return": "MyHistory_completed"
|
|
},
|
|
{
|
|
"case": "MyHistory_completed",
|
|
"return": "MyHistory_failed"
|
|
},
|
|
{
|
|
"case": "MyHistory_failed",
|
|
"return": "MyHistory_all"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_all",
|
|
"return": "MyPlaylist_completed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_completed",
|
|
"return": "MyPlaylist_failed"
|
|
},
|
|
{
|
|
"case": "MyPlaylist_failed",
|
|
"return": "MyPlaylist_all"
|
|
},
|
|
{
|
|
"case": "MyContracts_all",
|
|
"return": "MyContracts_completed"
|
|
},
|
|
{
|
|
"case": "MyContracts_completed",
|
|
"return": "MyContracts_failed"
|
|
},
|
|
{
|
|
"case": "MyContracts_failed",
|
|
"return": "MyContracts_all"
|
|
},
|
|
{
|
|
"default": ""
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": [
|
|
{
|
|
"view": "menu3.basic.HeadlineElement",
|
|
"selectable": false,
|
|
"pressable": false,
|
|
"data": {
|
|
"title": "$loc $formatstring UI_MENU_PAGE_HITS_ELEMENT_CATEGORY_MYPLAYLIST",
|
|
"typeicon": "favoritecontracts",
|
|
"infoicon": "info"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"deselect": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": []
|
|
}
|
|
},
|
|
"contextpushed": {
|
|
"replace-children": {
|
|
"target": "contracts_container",
|
|
"children": {
|
|
"controller": "group",
|
|
"view": "menu3.containers.ScrollingListContainer",
|
|
"pages": true,
|
|
"id": "hitscategory_container",
|
|
"nrows": 3,
|
|
"ncols": 10,
|
|
"pressable": false,
|
|
"data": {
|
|
"direction": "horizontal"
|
|
},
|
|
"actions": {
|
|
"on-add-child": {
|
|
"display-player-profile-xp-indicator": {
|
|
"display": false
|
|
}
|
|
},
|
|
"on-remove-child": {
|
|
"display-player-profile-xp-indicator": {
|
|
"display": true
|
|
}
|
|
},
|
|
"on-page-closed": {
|
|
"display-player-profile-xp-indicator": {
|
|
"display": true
|
|
}
|
|
},
|
|
"refresh-playlist": {
|
|
"load-async": {
|
|
"from": {
|
|
"url": "hitscategory",
|
|
"args": {
|
|
"page": "0",
|
|
"type": "MyPlaylist"
|
|
}
|
|
},
|
|
"page": "0",
|
|
"pagedirection": "1",
|
|
"target": "hitscategory_container",
|
|
"showloadingindicator": true,
|
|
"blocksinput": true,
|
|
"post-load-action": [
|
|
{
|
|
"set-selected": {
|
|
"target": "hitscategory_container"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"hidedefaultnocontent": true
|
|
}
|
|
},
|
|
"trigger-action": {
|
|
"target": "hitscategory_container",
|
|
"name": "refresh-playlist"
|
|
}
|
|
}
|
|
},
|
|
"children": {
|
|
"selectable": false,
|
|
"pressable": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|