1
mirror of https://github.com/thepeacockproject/Peacock synced 2025-02-16 16:34:28 +01:00
Peacock/static/FrankensteinHubTemplate.json
Reece Dunham 6245e91624 Initial commit
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>
2022-10-19 21:33:45 -04:00

11311 lines
1.5 MiB

{
"buttons": [
{
"actiontype": "accept",
"actionlabel": "$loc UI_BUTTON_PROMPTS_ACTION_SELECT"
},
{
"actiontype": "cancel",
"actionlabel": "$loc UI_BUTTON_PROMPTS_ACTION_BACK"
},
{
"actiontype": "action-x",
"actionlabel": "$loc UI_BUTTON_PROMPTS_GO_ONLINE"
}
],
"onpageopened": {
"$mergeobjects": [
{
"set-background": "$res images/ui/worldmap_grey.jpg",
"set-page-args": {
"IOIAccountStatus": "$.IOIAccountStatus"
},
"emit-sound-signal": {
"signal-name": "SET_DIFFICULTY_normal"
}
}
]
},
"onpageclosed": {
"on-remove-child": {
"remove-privacy-modifier": {
"id": "IOIACCOUNT_DISABLE_SHARE"
}
}
},
"oncontrolleravailable": {
"update-controller-menu": {
"target": "UI_CONTROLLER_BUTTON"
}
},
"oncontrollerlost": {
"update-controller-menu": {
"target": "UI_CONTROLLER_BUTTON"
}
},
"pageisclosable": false,
"body": {
"$setupcomponents": {
"favorites-removal": {}
},
"view": "common.UtcClockInitializer",
"controller": "list",
"actions": {
"action-x": {
"$if $not $arg _isonline": {
"$then": {
"try-trigger-online": {}
},
"$else": null
}
}
},
"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"
},
{
"view": "menu3.containers.ScrollingTabsContainer",
"direction": "horizontal",
"data": {
"direction": "horizontal",
"overflowscrolling": "0.45",
"buttonprompts": [
{
"actiontype": ["lb", "rb"],
"actionlabel": "$loc UI_BUTTON_PROMPTS_BROWSE_CATEGORIES"
}
]
},
"ncols": 10,
"controller": "category",
"container": "category_container",
"children": [
{
"view": "menu3.basic.CategoryElement",
"id": "category_featured",
"data": {
"title": "$loc UI_SNIPER_CHALLENGE_TITLE",
"icon": "mission"
},
"children": {
"$if": {
"$condition": {
"$or": ["$arg _isonline"]
},
"$then": {
"controller": "group",
"row": 1,
"nrows": 3,
"ncols": 10,
"pages": true,
"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"
}
},
{
"view": "menu3.basic.ItemTileSmall",
"nrows": 1.5,
"ncols": 2,
"data": {
"header": "The Peacock Project",
"title": "The Peacock Project",
"icon": "story",
"image": "$res images/generic/sniper_peacock.png"
},
"actions": {
"accept": {},
"select": {
"replace-children": {
"target": "headline_container",
"children": [
{
"view": "menu3.basic.HeadlineElement",
"selectable": false,
"pressable": false,
"data": {
"header": "Playing on a Peacock instance",
"title": "The Peacock Project",
"typeicon": "story"
}
}
]
}
},
"deselect": {
"replace-children": {
"target": "headline_container",
"children": []
}
}
}
},
{
"view": "menu3.basic.ItemTileSmall",
"nrows": 1.5,
"ncols": 2,
"data": {
"title": "Go Offline",
"icon": "goonline",
"image": "$res images/ui/tiles/button_goonline.jpg"
},
"actions": {
"accept": {
"force-offline": {}
},
"select": {
"replace-children": {
"target": "headline_container",
"children": [
{
"view": "menu3.basic.HeadlineElement",
"selectable": false,
"pressable": false,
"data": {
"header": "",
"title": "Go Offline",
"typeicon": "goonline"
}
}
]
}
},
"deselect": {
"replace-children": {
"target": "headline_container",
"children": []
}
}
}
},
{
"view": "menu3.containers.ListContainerWithHeader",
"direction": "horizontal",
"data": {
"direction": "horizontal",
"headlinetitle": "$loc UI_MENU_GAME_MODE_SINGLE_PLAYER"
},
"controller": "list",
"ncols": 4,
"nrows": 3,
"children": [
{
"view": "menu3.basic.MenuTileLarge",
"id": "hawk_singleplayer_tile",
"data": {
"header": "",
"title": "",
"image": ""
},
"actions": {
"onapplyuidata": {
"load-async": {
"onfailurebehaviour": "ignorefailures",
"from": {
"url": "dashboard/Dashboard_Category_Sniper_Singleplayer/00000000-0000-0000-0000-000000000015/Contract/ff9f46cf-00bd-4c12-b887-eac491c3a96d"
},
"target": "hawk_singleplayer_tile",
"showloadingindicator": true
}
}
}
}
]
},
{
"view": "menu3.containers.ListContainerWithHeader",
"direction": "horizontal",
"data": {
"direction": "horizontal",
"headlinetitle": "$loc UI_MENU_GAME_MODE_MULTIPLAYER"
},
"controller": "list",
"ncols": 4,
"nrows": 3,
"children": [
{
"$if $arg _isonline": {
"$then": {
"view": "menu3.basic.MenuTileLarge",
"id": "hawk_multiplayer_tile",
"data": {
"header": "",
"title": "",
"image": ""
},
"actions": {
"onapplyuidata": {
"load-async": {
"onfailurebehaviour": "ignorefailures",
"from": {
"url": "dashboard/Dashboard_Category_Sniper_Multiplayer/00000000-0000-0000-0000-000000000015/Contract/ff9f46cf-00bd-4c12-b887-eac491c3a96d"
},
"target": "hawk_multiplayer_tile",
"showloadingindicator": true
}
}
}
},
"$else": {
"view": "menu3.basic.MenuTileLarge",
"id": "hawk_multiplayer_tile",
"data": {
"header": "$loc UI_MENU_PAGE_HUB_MULTIPLAYER_HEADER",
"title": "$loc UI_MENU_PAGE_HUB_MULTIPLAYER_TITLE_OFFLINE",
"image": "$res images/livetile_sc/tile_sc_mp_offline.jpg",
"icon": "goonline"
},
"actions": {
"select": {
"replace-children": {
"target": "headline_container",
"children": [
{
"view": "menu3.basic.HeadlineElement",
"selectable": false,
"pressable": false,
"data": {
"header": "$loc UI_MENU_PAGE_HUB_MULTIPLAYER_HEADER",
"title": "$loc UI_MENU_PAGE_HUB_MULTIPLAYER_TITLE_OFFLINE",
"typeicon": "goonline"
}
}
]
}
},
"deselect": {
"replace-children": {
"target": "headline_container",
"children": []
}
},
"accept": {
"try-trigger-online": {}
}
}
}
}
}
]
}
]
},
"$else": {
"controller": "group",
"row": 1,
"nrows": 3,
"ncols": 10,
"pages": true,
"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"
}
},
{
"view": "menu3.containers.ListContainerWithHeader",
"direction": "horizontal",
"data": {
"direction": "horizontal",
"headlinetitle": "$loc UI_MENU_GAME_MODE_SINGLE_PLAYER"
},
"controller": "list",
"ncols": 4,
"nrows": 3,
"children": [
{
"view": "menu3.basic.MenuTileLarge",
"id": "hawk_singleplayer_tile",
"data": {
"header": "$loc UI_MENU_PAGE_HUB_SINGLEPLAYER_HEADER",
"title": "$loc UI_MENU_ELEMENT_GO_ONLINE_TITLE",
"image": "$res images/livetile_sc/tile_sc_sp_offline.jpg",
"icon": "goonline"
},
"actions": {
"select": {
"replace-children": {
"target": "headline_container",
"children": [
{
"view": "menu3.basic.HeadlineElement",
"selectable": false,
"pressable": false,
"data": {
"header": "$loc UI_MENU_PAGE_HUB_SINGLEPLAYER_HEADER",
"title": "$loc UI_MENU_ELEMENT_GO_ONLINE_TITLE",
"typeicon": "goonline"
}
}
]
}
},
"deselect": {
"replace-children": {
"target": "headline_container",
"children": []
}
},
"accept": {
"try-trigger-online": {}
}
}
}
]
},
{
"view": "menu3.containers.ListContainerWithHeader",
"direction": "horizontal",
"data": {
"direction": "horizontal",
"headlinetitle": "$loc UI_MENU_GAME_MODE_MULTIPLAYER"
},
"controller": "list",
"ncols": 4,
"nrows": 3,
"children": [
{
"view": "menu3.basic.MenuTileLarge",
"id": "hawk_multiplayer_tile",
"data": {
"header": "$loc UI_MENU_PAGE_HUB_MULTIPLAYER_HEADER",
"title": "$loc UI_MENU_PAGE_HUB_MULTIPLAYER_TITLE_OFFLINE",
"image": "$res images/livetile_sc/tile_sc_mp_offline.jpg",
"icon": "goonline"
},
"actions": {
"select": {
"replace-children": {
"target": "headline_container",
"children": [
{
"view": "menu3.basic.HeadlineElement",
"selectable": false,
"pressable": false,
"data": {
"header": "$loc UI_MENU_PAGE_HUB_MULTIPLAYER_HEADER",
"title": "$loc UI_MENU_PAGE_HUB_MULTIPLAYER_TITLE_OFFLINE",
"typeicon": "goonline"
}
}
]
}
},
"deselect": {
"replace-children": {
"target": "headline_container",
"children": []
}
},
"accept": {
"try-trigger-online": {}
}
}
}
]
}
]
}
}
}
},
{
"view": "menu3.basic.CategoryElement",
"id": "UI_MENU_PAGE_HUB_SETTINGS",
"data": {
"title": "$loc UI_MENU_PAGE_HUB_SETTINGS",
"icon": "settings"
},
"children": {
"$merge": [
{
"controller": "group",
"id": "options_container"
},
{
"controller": "group",
"id": "options_container_2"
},
{
"controller": "group",
"id": "options_container_3"
},
{
"controller": "group",
"id": "options_info_container",
"row": 1,
"col": 6.5,
"nrows": 4.1,
"ncols": 4,
"selectable": false,
"pressable": false,
"_comment": "the container that will hold the OptionInfoElement. It will show info on whatever item is selected"
},
{
"selectable": false,
"pressable": false,
"actions": {
"on-add-child": {
"display-game-version": {
"display": true
}
},
"on-remove-child": {
"display-game-version": {
"display": false
}
},
"on-page-closed": {
"display-game-version": {
"display": false
}
}
}
},
{
"view": "menu3.containers.ListContainer",
"groupselect": true,
"controller": "context",
"contextmode": "jump",
"navigationmode": "list",
"loopedselection": false,
"id": "options_context_controller",
"container": "options_container",
"row": 1,
"col": 0,
"nrows": 3,
"ncols": 2,
"actions": {
"select": {
"replace-children": {
"target": "headline_container",
"children": []
}
}
},
"children": [
{
"view": "menu3.basic.ListElementSmall",
"id": "UI_GAME_BUTTON",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_MENU_PAGE_SETTINGS_AID",
"icon": "weapon"
},
"children": {
"$merge": [
{
"controller": "list",
"view": "menu3.containers.ScrollingListContainer",
"direction": "vertical",
"data": {
"direction": "vertical",
"overflowscrolling": "1.0"
},
"actions": {
"on-remove-child": {
"save-options": {
"id": "PLAYER_AID"
}
},
"on-page-closed": {
"save-options": {
"id": "PLAYER_AID"
}
}
},
"row": 1,
"col": 2.25,
"nrows": 3.75,
"ncols": 4,
"children": [
{
"controller": "context",
"view": "menu3.containers.ListContainer",
"contextmode": "jump",
"navigationmode": "list",
"loopedselection": false,
"groupselect": true,
"id": "PLAYER_AIDS_CONTROLLER",
"container": "options_container_2",
"children": [
{
"controller": "preference-item",
"id": "UI_OPTION_GAME_AID_INSTINCT",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_INSTINCT",
"displayValue": "$formatstring [{$loc $($arg playeraid_instinct).lockey}]"
},
"children": [
{
"id": "UI_OPTION_GAME_AID_INSTINCT_LIST",
"controller": "list",
"view": "menu3.containers.ListContainer",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "UI_OPTION_GAME_AID_INSTINCT_LIST",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GAME_AID_INSTINCT"
}
}
}
}
},
"children": [
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_OFF",
"value": 0
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_AID_INSTINCT",
"actions": {
"set": 0
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_AID_INSTINCT",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_OFF}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_ON",
"value": 1
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_AID_INSTINCT",
"actions": {
"set": 1
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_AID_INSTINCT",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_ON}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
]
}
],
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_AID_INSTINCT",
"paragraph": "$loc UI_AID_INSTINCT_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"controller": "preference-item",
"id": "UI_OPTION_GAME_AID_VITAL_INFO",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VITAL_INFO",
"displayValue": "$formatstring [{$loc $($arg playeraid_vitalinfo).lockey}]"
},
"children": [
{
"id": "UI_OPTION_GAME_AID_VITAL_INFO_LIST",
"controller": "list",
"view": "menu3.containers.ListContainer",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "UI_OPTION_GAME_AID_VITAL_INFO_LIST",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GAME_AID_VITAL_INFO"
}
}
}
}
},
"children": [
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_OFF",
"value": 0
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_AID_VITAL_INFO",
"actions": {
"set": 0
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_AID_VITAL_INFO",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_OFF}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_ON",
"value": 1
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_AID_VITAL_INFO",
"actions": {
"set": 1
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_AID_VITAL_INFO",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_ON}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
]
}
],
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_AID_VITAL_INFO",
"paragraph": "$loc UI_AID_VITAL_INFO_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"controller": "preference-item",
"id": "UI_OPTION_GAME_AID_OBJECTIVES",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_OBJECTIVES",
"displayValue": "$formatstring [{$loc $($arg playeraid_objectives).lockey}]"
},
"children": [
{
"id": "UI_OPTION_GAME_AID_OBJECTIVES_LIST",
"controller": "list",
"view": "menu3.containers.ListContainer",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "UI_OPTION_GAME_AID_OBJECTIVES_LIST",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GAME_AID_OBJECTIVES"
}
}
}
}
},
"children": [
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_DEFAULT",
"value": 0
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_AID_OBJECTIVES",
"actions": {
"set": 0
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_AID_OBJECTIVES",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_DEFAULT}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_ALWAYS_OFF",
"value": 1
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_AID_OBJECTIVES",
"actions": {
"set": 1
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_AID_OBJECTIVES",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_ALWAYS_OFF}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_ALWAYS_ON",
"value": 2
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_AID_OBJECTIVES",
"actions": {
"set": 2
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_AID_OBJECTIVES",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_ALWAYS_ON}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
]
}
],
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_AID_OBJECTIVES",
"paragraph": "$loc UI_AID_OBJECTIVES_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"controller": "preference-item",
"id": "UI_OPTION_GAME_AID_NPC_ICONS",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_NPC_ICONS",
"displayValue": "$formatstring [{$loc $($arg playeraid_npcicons).lockey}]"
},
"children": [
{
"id": "UI_OPTION_GAME_AID_NPC_ICONS_LIST",
"controller": "list",
"view": "menu3.containers.ListContainer",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "UI_OPTION_GAME_AID_NPC_ICONS_LIST",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GAME_AID_NPC_ICONS"
}
}
}
}
},
"children": [
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_OFF",
"value": 0
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_AID_NPC_ICONS",
"actions": {
"set": 0
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_AID_NPC_ICONS",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_OFF}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_ON",
"value": 1
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_AID_NPC_ICONS",
"actions": {
"set": 1
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_AID_NPC_ICONS",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_ON}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
]
}
],
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_AID_NPC_ICONS",
"paragraph": "$loc UI_AID_NPC_ICONS_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"controller": "preference-item",
"id": "UI_OPTION_GAME_AID_WEAPON_HUD",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_WEAPON_HUD",
"displayValue": "$formatstring [{$loc $($arg playeraid_weapon_hud).lockey}]"
},
"children": [
{
"id": "UI_OPTION_GAME_AID_WEAPON_HUD_LIST",
"controller": "list",
"view": "menu3.containers.ListContainer",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "UI_OPTION_GAME_AID_WEAPON_HUD_LIST",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GAME_AID_WEAPON_HUD"
}
}
}
}
},
"children": [
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_FULL",
"value": 2
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_AID_WEAPON_HUD",
"actions": {
"set": 2
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_AID_WEAPON_HUD",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_FULL}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_MINIMAL",
"value": 1
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_AID_WEAPON_HUD",
"actions": {
"set": 1
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_AID_WEAPON_HUD",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_MINIMAL}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_OFF",
"value": 0
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_AID_WEAPON_HUD",
"actions": {
"set": 0
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_AID_WEAPON_HUD",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_OFF}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
]
}
],
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_AID_WEAPON_HUD",
"paragraph": "$loc UI_AID_WEAPON_HUD_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"controller": "preference-item",
"id": "UI_OPTION_GAME_AID_CHALLENGEDESCRIPTION",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_ACTIVITIES_CHALLENGES",
"displayValue": "$formatstring [{$loc $($arg playeraid_challengedescription).lockey}]"
},
"children": [
{
"id": "UI_OPTION_GAME_AID_CHALLENGEDESCRIPTION_LIST",
"controller": "list",
"view": "menu3.containers.ListContainer",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "UI_OPTION_GAME_AID_CHALLENGEDESCRIPTION_LIST",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GAME_AID_CHALLENGEDESCRIPTION"
}
}
}
}
},
"children": [
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_FULL",
"value": 0
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_AID_CHALLENGEDESCRIPTION",
"actions": {
"set": 0
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_AID_CHALLENGEDESCRIPTION",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_FULL}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_MINIMAL",
"value": 1
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_AID_CHALLENGEDESCRIPTION",
"actions": {
"set": 1
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_AID_CHALLENGEDESCRIPTION",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_MINIMAL}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_OFF",
"value": 2
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_AID_CHALLENGEDESCRIPTION",
"actions": {
"set": 2
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_AID_CHALLENGEDESCRIPTION",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_OFF}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
]
}
],
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_ACTIVITIES_CHALLENGES",
"paragraph": "$loc UI_AID_CHALLENGES_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"controller": "preference-item",
"id": "UI_OPTION_GAME_AID_CHALLENGE_HUD",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_CHALLENGES_HUD",
"displayValue": "$formatstring [{$loc $($arg playeraid_challenge_hud).lockey}]"
},
"children": [
{
"id": "UI_OPTION_GAME_AID_CHALLENGE_HUD_LIST",
"controller": "list",
"view": "menu3.containers.ListContainer",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "UI_OPTION_GAME_AID_CHALLENGE_HUD_LIST",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GAME_AID_CHALLENGE_HUD"
}
}
}
}
},
"children": [
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_OFF",
"value": 0
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_AID_CHALLENGE_HUD",
"actions": {
"set": 0
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_AID_CHALLENGE_HUD",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_OFF}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_ON",
"value": 1
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_AID_CHALLENGE_HUD",
"actions": {
"set": 1
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_AID_CHALLENGE_HUD",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_ON}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
]
}
],
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_AID_CHALLENGES_HUD",
"paragraph": "$loc UI_AID_CHALLENGES_HUD_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"controller": "preference-item",
"id": "UI_OPTION_GAME_AID_MISSION_TIMER",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_OPTION_GAME_AID_MISSION_TIMER",
"displayValue": "$formatstring [{$loc $($arg game_mission_timer).lockey}]"
},
"children": [
{
"id": "UI_OPTION_GAME_AID_MISSION_TIMER_LIST",
"controller": "list",
"view": "menu3.containers.ListContainer",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "UI_OPTION_GAME_AID_MISSION_TIMER_LIST",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GAME_AID_MISSION_TIMER"
}
}
}
}
},
"children": [
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_OFF",
"value": false
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_AID_MISSION_TIMER",
"actions": {
"set": false
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_AID_MISSION_TIMER",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_OFF}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_ON",
"value": true
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_AID_MISSION_TIMER",
"actions": {
"set": true
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_AID_MISSION_TIMER",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_ON}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
]
}
],
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_OPTION_GAME_AID_MISSION_TIMER",
"paragraph": "$loc UI_OPTION_GAME_AID_MISSION_TIMER_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"controller": "preference-item",
"id": "UI_OPTION_GAME_SCORE_HUD",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_HUD_SCORING",
"displayValue": "$formatstring [{$loc $($arg game_score_hud).lockey}]"
},
"children": [
{
"id": "UI_OPTION_GAME_SCORE_HUD_LIST",
"controller": "list",
"view": "menu3.containers.ListContainer",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "UI_OPTION_GAME_SCORE_HUD_LIST",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GAME_SCORE_HUD"
}
}
}
}
},
"children": [
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_OFF",
"value": false
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_SCORE_HUD",
"actions": {
"set": false
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_SCORE_HUD",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_OFF}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_ON",
"value": true
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_SCORE_HUD",
"actions": {
"set": true
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_SCORE_HUD",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_ON}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
]
}
],
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_AID_HUD_SCORING",
"paragraph": "$loc UI_AID_HUD_SCORING_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"view": "menu3.basic.OptionsListElement",
"id": "UI_OPTION_GAME_DEFAULT",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCES_RESTORE_DEFAULT"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCES_RESTORE_DEFAULT",
"paragraph": "$loc UI_PREFERENCES_RESTORE_DEFAULT_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
},
"accept": {
"show-modal": {
"config": {
"type": "system",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_RESTORE_DEFAULTS_TITLE",
"description": {
"$loc": {
"key": "UI_DIALOG_CONFIRM_TEXT",
"data": "$loc UI_DIALOG_ACTION_RESTORE_DEFAULT"
}
}
}
},
"onbutton": [
{
"set-default": {
"setting-category": "game"
},
"push-menu-context": {
"onpageopened": [
{
"_comment": "This is to reselect the locale once applied, as we reload the page when locale changes"
},
{
"set-selected": [
{
"target": "UI_MENU_PAGE_HUB_SETTINGS"
},
{
"target": "UI_GAME_BUTTON"
}
],
"trigger-input": {
"action": "accept"
}
}
]
}
},
{
"set-selected": {}
}
]
}
}
}
}
]
}
]
}
]
}
},
{
"view": "menu3.basic.ListElementSmall",
"id": "UI_CONTROLLER_BUTTON",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": {
"$switch $arg _platform": [
{
"case": "orbis",
"return": "$loc UI_MENU_PAGE_SETTINGS_CONTROLLER_SONY"
},
{
"case": "durango",
"return": "$loc UI_MENU_PAGE_SETTINGS_CONTROLLER_MICROSOFT"
},
{
"default": "$loc UI_MENU_PAGE_SETTINGS_CONTROLLER"
}
]
},
"icon": "controller",
"greyelement": false
},
"children": {
"controller": "list",
"view": "menu3.containers.ScrollingListContainer",
"direction": "vertical",
"data": {
"direction": "vertical",
"overflowscrolling": "1.0"
},
"actions": {
"on-remove-child": {
"save-options": {
"id": "CONTROLLER"
}
},
"on-page-closed": {
"save-options": {
"id": "CONTROLLER"
}
}
},
"row": 1,
"col": 2.25,
"nrows": 3.75,
"ncols": 4,
"children": [
{
"controller": "context",
"view": "menu3.containers.ListContainer",
"contextmode": "jump",
"navigationmode": "list",
"loopedselection": false,
"groupselect": true,
"id": "PLAYER_AIDS_CONTROLLER",
"container": "options_container_2",
"children": [
{
"controller": "preference-item",
"id": "UI_OPTION_GAME_INVERT_Y",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCE_INVERT_Y",
"displayValue": "$formatstring [{$loc $($arg game_inverty).lockey}]"
},
"children": [
{
"id": "UI_OPTION_GAME_INVERT_Y_LIST",
"controller": "list",
"view": "menu3.containers.ListContainer",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "UI_OPTION_GAME_INVERT_Y_LIST",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GAME_INVERT_Y"
}
}
}
}
},
"children": [
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_OFF",
"value": false
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_INVERT_Y",
"actions": {
"set": false
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_INVERT_Y",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_OFF}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_ON",
"value": true
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_INVERT_Y",
"actions": {
"set": true
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_INVERT_Y",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_ON}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
]
}
],
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCE_INVERT_Y",
"paragraph": "$loc UI_PREFERENCE_INVERT_Y_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"controller": "preference-item",
"id": "UI_OPTION_GAME_INVERT_X",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCE_INVERT_X",
"displayValue": "$formatstring [{$loc $($arg game_invertx).lockey}]"
},
"children": [
{
"id": "UI_OPTION_GAME_INVERT_X_LIST",
"controller": "list",
"view": "menu3.containers.ListContainer",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "UI_OPTION_GAME_INVERT_X_LIST",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GAME_INVERT_X"
}
}
}
}
},
"children": [
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_OFF",
"value": false
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_INVERT_X",
"actions": {
"set": false
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_INVERT_X",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_OFF}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_ON",
"value": true
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_INVERT_X",
"actions": {
"set": true
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_INVERT_X",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_ON}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
]
}
],
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCE_INVERT_X",
"paragraph": "$loc UI_PREFERENCE_INVERT_X_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"view": "menu3.basic.OptionsListElement",
"controller": "preference-item",
"id": "UI_OPTION_GAME_AIM_SENSITIVITY",
"sliderdata": "$($arg game_aim_sensitivity).sliderdata",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"slider": true,
"title": "$loc UI_PREFERENCE_AIM_SENSITIVITY",
"displayValue": "$($arg game_aim_sensitivity).current"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCE_AIM_SENSITIVITY",
"paragraph": "$loc UI_PREFERENCE_AIM_SENSITIVITY_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"view": "menu3.basic.OptionsListElement",
"controller": "preference-item",
"id": "UI_OPTION_GAME_CAMERA_SENSITIVITY",
"sliderdata": "$($arg game_cam_sensitivity).sliderdata",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"slider": true,
"title": "$loc UI_PREFERENCE_CAMERA_SENSITIVITY",
"displayValue": "$($arg game_cam_sensitivity).current"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCE_CAMERA_SENSITIVITY",
"paragraph": "$loc UI_PREFERENCE_CAMERA_SENSITIVITY_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"controller": "preference-item",
"id": "UI_OPTION_GAME_VIBRATION",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCE_VIBRATION",
"displayValue": "$formatstring [{$loc $($arg game_vibration).lockey}]"
},
"children": [
{
"id": "UI_OPTION_GAME_VIBRATION_LIST",
"controller": "list",
"view": "menu3.containers.ListContainer",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "UI_OPTION_GAME_VIBRATION_LIST",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GAME_VIBRATION"
}
}
}
}
},
"children": [
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_OFF",
"value": true
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_VIBRATION",
"actions": {
"set": true
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_VIBRATION",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_OFF}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_ON",
"value": false
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_VIBRATION",
"actions": {
"set": false
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_VIBRATION",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_ON}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
]
}
],
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCE_VIBRATION",
"paragraph": "$loc UI_PREFERENCE_VIBRATION_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"view": "menu3.basic.OptionsListElement",
"id": "UI_OPTION_CONTROLLER_DEFAULT",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCES_RESTORE_DEFAULT"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCES_RESTORE_DEFAULT",
"paragraph": "$loc UI_PREFERENCES_RESTORE_DEFAULT_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
},
"accept": {
"show-modal": {
"config": {
"type": "system",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_RESTORE_DEFAULTS_TITLE",
"description": {
"$loc": {
"key": "UI_DIALOG_CONFIRM_TEXT",
"data": "$loc UI_DIALOG_ACTION_RESTORE_DEFAULT"
}
}
}
},
"onbutton": [
{
"set-default": {
"setting-category": "controller"
},
"push-menu-context": {
"onpageopened": [
{
"_comment": "This is to reselect the locale once applied, as we reload the page when locale changes"
},
{
"set-selected": [
{
"target": "UI_MENU_PAGE_HUB_SETTINGS"
},
{
"target": "UI_CONTROLLER_BUTTON"
}
],
"trigger-input": {
"action": "accept"
}
}
]
}
},
{
"set-selected": {}
}
]
}
}
}
}
]
}
]
},
"actions": {
"on-add-child": {
"update-controller-menu": {}
}
}
},
{
"$if $($arg showkeyboardoptions)": {
"$then": {
"view": "menu3.basic.ListElementSmall",
"id": "UI_KEYBOARD_BUTTON",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_MENU_PAGE_SETTINGS_KEYBOARD",
"icon": "mousekeyboard"
},
"children": {
"controller": "list",
"view": "menu3.containers.ScrollingListContainer",
"direction": "vertical",
"data": {
"direction": "vertical",
"overflowscrolling": "1.0"
},
"actions": {
"on-remove-child": {
"save-options": {
"id": "KEYBOARD"
}
},
"on-page-closed": {
"save-options": {
"id": "KEYBOARD"
}
}
},
"row": 1,
"col": 2.25,
"nrows": 3.75,
"ncols": 4,
"children": [
{
"controller": "context",
"view": "menu3.containers.ListContainer",
"contextmode": "jump",
"navigationmode": "list",
"loopedselection": false,
"groupselect": true,
"id": "PLAYER_AIDS_CONTROLLER",
"container": "options_container_2",
"children": [
{
"controller": "preference-item",
"id": "UI_OPTION_GAME_INVERT_MOUSE_Y",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCE_INVERT_MOUSE_Y",
"displayValue": "$formatstring [{$loc $($arg game_invertmousey).lockey}]"
},
"children": [
{
"id": "UI_OPTION_GAME_INVERT_MOUSE_Y_LIST",
"controller": "list",
"view": "menu3.containers.ListContainer",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "UI_OPTION_GAME_INVERT_MOUSE_Y_LIST",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GAME_INVERT_MOUSE_Y"
}
}
}
}
},
"children": [
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_OFF",
"value": false
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_INVERT_MOUSE_Y",
"actions": {
"set": false
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_INVERT_MOUSE_Y",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_OFF}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_ON",
"value": true
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_INVERT_MOUSE_Y",
"actions": {
"set": true
}
},
"set-data-property": {
"target": "UI_OPTION_GAME_INVERT_MOUSE_Y",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_ON}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
]
}
],
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCE_INVERT_MOUSE_Y",
"paragraph": "$loc UI_PREFERENCE_INVERT_MOUSE_Y_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"view": "menu3.basic.OptionsListElement",
"controller": "preference-item",
"id": "UI_OPTION_GAME_MOUSE_SENSITIVITY",
"sliderdata": "$($arg mousesensitivity).sliderdata",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"slider": true,
"title": "$loc UI_PREFERENCE_MOUSE_SENSITIVITY",
"displayValue": "$($arg mousesensitivity).current"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCE_MOUSE_SENSITIVITY",
"paragraph": "$loc UI_PREFERENCE_MOUSE_SENSITIVITY_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCE_KEY_BINDINGS",
"icon": "controller"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCE_KEY_BINDINGS",
"paragraph": "$loc UI_PREFERENCE_KEY_BINDINGS_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
},
"accept": {
"link": {
"page": "keybindings",
"args": {}
}
}
}
}
]
}
]
}
},
"$else": {
"selectable": false,
"pressable": false
}
}
},
{
"$if $($arg showgraphicsoptions)": {
"$then": {
"view": "menu3.basic.ListElementSmall",
"id": "UI_GRAPHICS_BUTTON",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_MENU_PAGE_SETTINGS_GRAPHICS",
"icon": "graphics"
},
"children": {
"$merge": [
{
"controller": "preference-item",
"id": "UI_OPTION_DISPLAY_FULLSCREEN",
"selectable": false,
"pressable": false
},
{
"controller": "preference-item",
"id": "UI_OPTION_DISPLAY_RESOLUTION",
"selectable": false,
"pressable": false
},
{
"controller": "preference-item",
"id": "UI_OPTION_GRAPHICS_VSYNC",
"selectable": false,
"pressable": false
},
{
"controller": "preference-item",
"id": "UI_OPTION_GRAPHICS_LOD",
"selectable": false,
"pressable": false
},
{
"controller": "preference-item",
"id": "UI_OPTION_GRAPHICS_ANTI_ALIASING",
"selectable": false,
"pressable": false
},
{
"controller": "preference-item",
"id": "UI_OPTION_GRAPHICS_TEXTURE_QUALITY",
"selectable": false,
"pressable": false
},
{
"controller": "preference-item",
"id": "UI_OPTION_GRAPHICS_TEXTURE_FILTER",
"selectable": false,
"pressable": false
},
{
"controller": "preference-item",
"id": "UI_OPTION_GRAPHICS_SSAO",
"selectable": false,
"pressable": false
},
{
"controller": "preference-item",
"id": "UI_OPTION_GRAPHICS_SHADOW_QUALITY",
"selectable": false,
"pressable": false
},
{
"controller": "preference-item",
"id": "UI_OPTION_GRAPHICS_FRAMERATE_LIMIT",
"selectable": false,
"pressable": false
},
{
"controller": "context",
"container": "options_container_2",
"view": "menu3.containers.ScrollingListContainer",
"contextmode": "jump",
"direction": "vertical",
"groupselect": true,
"data": {
"direction": "vertical",
"overflowscrolling": 1.0
},
"actions": {
"on-add-child": {
"enable-display-game-in-background": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
}
},
"on-remove-child": {
"save-options": {
"id": "GRAPHICS"
},
"enable-display-game-in-background": false
},
"on-page-closed": {
"save-options": {
"id": "GRAPHICS"
},
"enable-display-game-in-background": false
}
},
"navigationmode": "list",
"loopedselection": false,
"row": 1,
"col": 2.25,
"nrows": 3.75,
"ncols": 4,
"children": [
{
"id": "ui_option_display_resolution_view",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_DISPLAY_MENU_ITEM_RESOLUTION",
"displayValue": "$formatstring [{$($arg resolutions).current}]"
},
"children": {
"id": "ui_option_display_resolution_list",
"controller": "list",
"view": "menu3.containers.ScrollingListContainer",
"data": {
"overflowscrolling": "1.0"
},
"container": "options_container_3",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "ui_option_display_resolution_list",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_DISPLAY_RESOLUTION"
}
}
}
}
},
"children": {
"$merge": [
{
"$each $($arg resolutions).available": {
"view": "menu3.basic.OptionsListElementSmall",
"selectable": "$.selectable",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"name": "$.label",
"title": "$.label",
"isLocked": "$.isLocked",
"value": "$.value"
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_DISPLAY_RESOLUTION",
"actions": {
"set": "$.value"
}
},
"set-data-property": {
"target": "ui_option_display_resolution_view",
"property": {
"name": "displayValue",
"value": "$formatstring [{$.label}]"
}
},
"refresh-page": {},
"push-menu-context": {
"onpageopened": [
{
"_comment": "This is to reselect the locale once applied, as we reload the page when locale changes"
},
{
"set-selected": [
{
"target": "UI_MENU_PAGE_HUB_SETTINGS"
},
{
"target": "UI_GRAPHICS_BUTTON"
}
],
"trigger-input": {
"action": "accept"
}
}
]
}
}
}
}
}
]
}
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_DISPLAY_MENU_ITEM_RESOLUTION",
"paragraph": "$loc EUI_TEXT_OPTIONS_GRAPHICS_DISPLAY_MENU_ITEM_RESOLUTION_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"id": "ui_option_display_fullscreen_view",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_DISPLAY_MENU_ITEM_DISPLAYMODE",
"displayValue": "$formatstring [{$($arg fullscreenoptions).currentloc}]"
},
"children": {
"id": "ui_option_display_fullscreen_list",
"controller": "list",
"view": "menu3.containers.ScrollingListContainer",
"data": {
"overflowscrolling": "1.0"
},
"stateproviders": [
{
"type": "useroption",
"option": "UI_OPTION_DISPLAY_FULLSCREEN"
}
],
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "ui_option_display_fullscreen_list",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_DISPLAY_FULLSCREEN"
}
}
}
}
},
"children": {
"$merge": [
{
"$each $($arg fullscreenoptions).available": {
"view": "menu3.basic.OptionsListElementSmall",
"selectable": "$.selectable",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"name": "$.label",
"title": "$.label",
"isLocked": "$.isLocked",
"value": "$._index"
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_DISPLAY_FULLSCREEN",
"actions": {
"set": "$._index"
}
},
"set-data-property": {
"target": "ui_option_display_fullscreen_view",
"property": {
"name": "displayValue",
"value": "$formatstring [{$.label}]"
}
},
"refresh-page": {},
"push-menu-context": {
"onpageopened": [
{
"_comment": "This is to reselect the locale once applied, as we reload the page when locale changes"
},
{
"set-selected": [
{
"target": "UI_MENU_PAGE_HUB_SETTINGS"
},
{
"target": "UI_GRAPHICS_BUTTON"
}
],
"trigger-input": {
"action": "accept"
}
}
]
}
}
}
}
}
]
}
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_DISPLAY_MENU_ITEM_DISPLAYMODE",
"paragraph": "$loc EUI_TEXT_OPTIONS_GRAPHICS_DISPLAY_MENU_ITEM_DISPLAYMODE_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"id": "ui_option_vsync_view",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_DISPLAY_MENU_ITEM_VSYNC",
"displayValue": "$formatstring [{$($arg vsync).currentloc}]"
},
"children": {
"id": "ui_option_vsync_list",
"controller": "list",
"view": "menu3.containers.ScrollingListContainer",
"data": {
"overflowscrolling": "1.0"
},
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "ui_option_vsync_list",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GRAPHICS_VSYNC"
}
}
}
}
},
"children": {
"$merge": [
{
"$each $($arg vsync).available": {
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"name": "$.label",
"title": "$.label",
"value": "$.value"
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GRAPHICS_VSYNC",
"actions": {
"set": "$.value"
}
},
"set-data-property": {
"target": "ui_option_vsync_view",
"property": {
"name": "displayValue",
"value": "$formatstring [{$.label}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
}
]
}
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_DISPLAY_MENU_ITEM_VSYNC",
"paragraph": "$loc EUI_TEXT_OPTIONS_GRAPHICS_DISPLAY_MENU_ITEM_VSYNC_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"id": "ui_option_framerate_limit_view",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_MENU_ITEM_VSYNC_INTERVAL",
"displayValue": "$formatstring [{$($arg frameratelimit).currentloc}]"
},
"children": {
"id": "ui_option_framerate_limit_list",
"controller": "list",
"view": "menu3.containers.ScrollingListContainer",
"data": {
"overflowscrolling": "1.0"
},
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "ui_option_framerate_limit_list",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GRAPHICS_FRAMERATE_LIMIT"
}
}
}
}
},
"children": {
"$merge": [
{
"$each $($arg frameratelimit).available": {
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"name": "$.label",
"title": "$.label",
"value": "$.value"
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GRAPHICS_FRAMERATE_LIMIT",
"actions": {
"set": "$.value"
}
},
"set-data-property": {
"target": "ui_option_framerate_limit_view",
"property": {
"name": "displayValue",
"value": "$formatstring [{$.label}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
}
]
}
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_MENU_ITEM_VSYNC_INTERVAL",
"paragraph": "$loc EUI_TEXT_OPTIONS_GRAPHICS_MENU_ITEM_VSYNC_INTERVAL_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"view": "menu3.basic.OptionsListElement",
"id": "ui_option_hdr_view",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCE_HDR"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCE_HDR",
"paragraph": "$loc EUI_TEXT_OPTIONS_GRAPHICS_DISPLAY_MENU_ITEM_HDR_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
},
"accept": {
"link": {
"page": "hdrsettings"
}
}
}
},
{
"view": "menu3.basic.OptionsListElement",
"controller": "preference-item",
"id": "UI_OPTION_GRAPHICS_GAMMA",
"sliderdata": "$($arg gamma).sliderdata",
"selectable": "$not $($arg hdr).current",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"slider": true,
"title": "$formatstring {$loc $($arg gamma).lockey}",
"displayValue": "$($arg gamma).current"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_MENU_ITEM_GAMMA",
"paragraph": "$loc EUI_TEXT_OPTIONS_GRAPHICS_MENU_ITEM_GAMMA_DESCRIPTION",
"useImage": true,
"imageId": "gamma"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"$if $($arg supersamplingsupported)": {
"$then": {
"view": "menu3.basic.OptionsListElement",
"controller": "preference-item",
"id": "UI_OPTION_GRAPHICS_SUPER_SAMPLING",
"sliderdata": "$($arg supersampling).sliderdata",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"slider": true,
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_DISPLAY_MENU_ITEM_SUPERSAMPLING",
"displayValue": "$($arg supersampling).current"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_DISPLAY_MENU_ITEM_SUPERSAMPLING",
"paragraph": "$loc EUI_TEXT_OPTIONS_GRAPHICS_DISPLAY_MENU_ITEM_SUPERSAMPLING_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
"$else": {
"view": "menu3.basic.OptionsListElement",
"controller": "preference-item",
"id": "UI_OPTION_GRAPHICS_SUPER_SAMPLING",
"sliderdata": "$($arg supersampling).sliderdata",
"pressable": false,
"selectable": false,
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"slider": true,
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_DISPLAY_MENU_ITEM_SUPERSAMPLING",
"displayValue": "$($arg supersampling).current"
}
}
}
},
{
"id": "ui_option_lod_view",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_QUALITY_MENU_ITEM_LOD",
"displayValue": "$formatstring [{$($arg lods).currentloc}]"
},
"children": {
"id": "ui_option_lod_list",
"controller": "list",
"view": "menu3.containers.ScrollingListContainer",
"data": {
"overflowscrolling": "1.0"
},
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "ui_option_lod_list",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GRAPHICS_LOD"
}
}
}
}
},
"children": {
"$merge": [
{
"$each $($arg lods).available": {
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"name": "$.label",
"title": "$.label",
"value": "$.value"
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GRAPHICS_LOD",
"actions": {
"set": "$.value"
}
},
"set-data-property": {
"target": "ui_option_lod_view",
"property": {
"name": "displayValue",
"value": "$formatstring [{$.label}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
}
]
}
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_QUALITY_MENU_ITEM_LOD",
"paragraph": "$loc EUI_TEXT_OPTIONS_GRAPHICS_QUALITY_MENU_ITEM_LOD_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"id": "ui_option_anti_aliasing_view",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_QUALITY_MENU_ITEM_AA",
"displayValue": "$formatstring [{$($arg aas).currentloc}]"
},
"children": {
"id": "ui_option_anti_aliasing_list",
"controller": "list",
"view": "menu3.containers.ScrollingListContainer",
"data": {
"overflowscrolling": "1.0"
},
"container": "options_container_3",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "ui_option_anti_aliasing_list",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GRAPHICS_ANTI_ALIASING"
}
}
}
}
},
"children": {
"$merge": [
{
"$each $($arg aas).available": {
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"name": "$.label",
"title": "$.label",
"value": "$.value"
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GRAPHICS_ANTI_ALIASING",
"actions": {
"set": "$.value"
}
},
"set-data-property": {
"target": "ui_option_anti_aliasing_view",
"property": {
"name": "displayValue",
"value": "$formatstring [{$.label}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
}
]
}
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_QUALITY_MENU_ITEM_AA",
"paragraph": "$loc EUI_TEXT_OPTIONS_GRAPHICS_QUALITY_MENU_ITEM_AA_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"id": "ui_option_texturequalities_view",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_QUALITY_MENU_ITEM_TEXTURE_QUALITY",
"displayValue": "$formatstring [{$($arg texturequalities).currentloc}]"
},
"children": {
"id": "ui_option_texturequalities_list",
"controller": "list",
"view": "menu3.containers.ScrollingListContainer",
"data": {
"overflowscrolling": "1.0"
},
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "ui_option_texturequalities_list",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GRAPHICS_TEXTURE_QUALITY"
}
}
}
}
},
"children": {
"$merge": [
{
"$each $($arg texturequalities).available": {
"view": "menu3.basic.OptionsListElementSmall",
"selectable": "$.selectable",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"name": "$.label",
"title": "$.label",
"isLocked": "$.isLocked",
"value": "$.value"
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GRAPHICS_TEXTURE_QUALITY",
"actions": {
"set": "$.value"
}
},
"set-data-property": {
"target": "ui_option_texturequalities_view",
"property": {
"name": "displayValue",
"value": "$formatstring [{$.label}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
}
]
}
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_QUALITY_MENU_ITEM_TEXTURE_QUALITY",
"paragraph": "$loc EUI_TEXT_OPTIONS_GRAPHICS_QUALITY_MENU_ITEM_TEXTURE_QUALITY_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"id": "ui_option_texturefilter_view",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_QUALITY_MENU_ITEM_TEXTURE_FILTER",
"displayValue": "$formatstring [{$($arg texturefilter).currentloc}]"
},
"children": {
"id": "ui_option_texturefilter_list",
"controller": "list",
"view": "menu3.containers.ScrollingListContainer",
"data": {
"overflowscrolling": "1.0"
},
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "ui_option_texturefilter_list",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GRAPHICS_TEXTURE_FILTER"
}
}
}
}
},
"children": {
"$merge": [
{
"$each $($arg texturefilter).available": {
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"name": "$.label",
"title": "$.label",
"value": "$.value"
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GRAPHICS_TEXTURE_FILTER",
"actions": {
"set": "$.value"
}
},
"set-data-property": {
"target": "ui_option_texturefilter_view",
"property": {
"name": "displayValue",
"value": "$formatstring [{$.label}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
}
]
}
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_QUALITY_MENU_ITEM_TEXTURE_FILTER",
"paragraph": "$loc EUI_TEXT_OPTIONS_GRAPHICS_QUALITY_MENU_ITEM_TEXTURE_FILTER_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"id": "ui_option_ssao_view",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_QUALITY_MENU_ITEM_SSAO",
"displayValue": "$formatstring [{$($arg ssaos).currentloc}]"
},
"children": {
"id": "ui_option_ssao_list",
"controller": "list",
"view": "menu3.containers.ScrollingListContainer",
"data": {
"overflowscrolling": "1.0"
},
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "ui_option_ssao_list",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GRAPHICS_SSAO"
}
}
}
}
},
"children": {
"$merge": [
{
"$each $($arg ssaos).available": {
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"name": "$.label",
"title": "$.label",
"value": "$.value"
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GRAPHICS_SSAO",
"actions": {
"set": "$.value"
}
},
"set-data-property": {
"target": "ui_option_ssao_view",
"property": {
"name": "displayValue",
"value": "$formatstring [{$.label}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
}
]
}
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_QUALITY_MENU_ITEM_SSAO",
"paragraph": "$loc EUI_TEXT_OPTIONS_GRAPHICS_QUALITY_MENU_ITEM_SSAO_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"id": "ui_option_shadow_quality_view",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_QUALITY_MENU_ITEM_SHADOW",
"displayValue": "$formatstring [{$($arg shadowqualities).currentloc}]"
},
"children": {
"id": "ui_option_shadow_quality_list",
"controller": "list",
"view": "menu3.containers.ScrollingListContainer",
"data": {
"overflowscrolling": "1.0"
},
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "ui_option_shadow_quality_list",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GRAPHICS_SHADOW_QUALITY"
}
}
}
}
},
"children": {
"$merge": [
{
"$each $($arg shadowqualities).available": {
"view": "menu3.basic.OptionsListElementSmall",
"selectable": "$.selectable",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"name": "$.label",
"title": "$.label",
"isLocked": "$.isLocked",
"value": "$.value"
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GRAPHICS_SHADOW_QUALITY",
"actions": {
"set": "$.value"
}
},
"set-data-property": {
"target": "ui_option_shadow_quality_view",
"property": {
"name": "displayValue",
"value": "$formatstring [{$.label}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
}
]
}
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_QUALITY_MENU_ITEM_SHADOW",
"paragraph": "$loc EUI_TEXT_OPTIONS_GRAPHICS_QUALITY_MENU_ITEM_SHADOW_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"view": "menu3.basic.OptionsListElement",
"id": "UI_OPTION_GRAPHICS_DEFAULT",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCES_RESTORE_DEFAULT"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCES_RESTORE_DEFAULT",
"paragraph": "$loc UI_PREFERENCES_RESTORE_DEFAULT_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
},
"accept": {
"show-modal": {
"config": {
"type": "system",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_RESTORE_DEFAULTS_TITLE",
"description": {
"$loc": {
"key": "UI_DIALOG_CONFIRM_TEXT",
"data": "$loc UI_DIALOG_ACTION_RESTORE_DEFAULT"
}
}
}
},
"onbutton": [
{
"set-default": {
"setting-category": "graphics"
},
"push-menu-context": {
"onpageopened": [
{
"_comment": "This is to reselect the locale once applied, as we reload the page when locale changes"
},
{
"set-selected": [
{
"target": "UI_MENU_PAGE_HUB_SETTINGS"
},
{
"target": "UI_GRAPHICS_BUTTON"
}
],
"trigger-input": {
"action": "accept"
}
}
]
}
},
{
"set-selected": {}
}
]
}
}
}
}
]
}
]
}
},
"$else": {
"view": "menu3.basic.ListElementSmall",
"id": "UI_GRAPHICS_BUTTON",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_MENU_PAGE_SETTINGS_GRAPHICS",
"icon": "graphics"
},
"children": {
"$merge": [
{
"controller": "preference-item",
"id": "UI_OPTION_GRAPHICS_FRAMERATE_LIMIT",
"selectable": false,
"pressable": false
},
{
"controller": "preference-item",
"id": "UI_OPTION_GRAPHICS_RENDERING_QUALITY",
"selectable": false,
"pressable": false
},
{
"controller": "context",
"container": "options_container_2",
"view": "menu3.containers.ScrollingListContainer",
"contextmode": "jump",
"groupselect": true,
"direction": "vertical",
"data": {
"direction": "vertical",
"overflowscrolling": "1.0"
},
"actions": {
"on-add-child": {
"enable-display-game-in-background": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
}
},
"on-remove-child": {
"save-options": {
"id": "GRAPHICS_CONSOLE"
},
"enable-display-game-in-background": false
},
"on-page-closed": {
"save-options": {
"id": "GRAPHICS_CONSOLE"
},
"enable-display-game-in-background": false
}
},
"navigationmode": "list",
"loopedselection": false,
"row": 1,
"col": 2.25,
"nrows": 3.75,
"ncols": 4,
"children": [
{
"view": "menu3.basic.OptionsListElement",
"id": "ui_option_hdr_view",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCE_HDR"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCE_HDR",
"paragraph": "$loc EUI_TEXT_OPTIONS_GRAPHICS_DISPLAY_MENU_ITEM_HDR_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
},
"accept": {
"link": {
"page": "hdrsettings"
}
}
}
},
{
"view": "menu3.basic.OptionsListElement",
"controller": "preference-item",
"id": "UI_OPTION_GRAPHICS_GAMMA",
"sliderdata": "$($arg gamma).sliderdata",
"selectable": "$not $($arg hdr).current",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"slider": true,
"title": "$formatstring {$loc $($arg gamma).lockey}",
"displayValue": "$($arg gamma).current"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_MENU_ITEM_GAMMA",
"paragraph": "$loc EUI_TEXT_OPTIONS_GRAPHICS_MENU_ITEM_GAMMA_DESCRIPTION",
"useImage": true,
"imageId": "gamma"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"id": "ui_option_framerate_limit_view",
"view": "menu3.basic.OptionsListElement",
"pressable": "$not $($arg frameratelimit).islocked",
"selectable": "$($arg frameratelimit).selectable",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_MENU_ITEM_FRAMERATE_LOCK",
"displayValue": {
"$if $($arg frameratelimit).islocked": {
"$then": "$formatstring [{$($arg frameratelimit).available[1].label}]",
"$else": "$formatstring [{$($arg frameratelimit).currentloc}]"
}
}
},
"children": {
"id": "ui_option_framerate_limit_list",
"controller": "list",
"view": "menu3.containers.ScrollingListContainer",
"data": {
"overflowscrolling": "1.0"
},
"container": "options_container_3",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "ui_option_framerate_limit_list",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GRAPHICS_FRAMERATE_LIMIT"
}
}
}
}
},
"children": {
"$merge": [
{
"$each $($arg frameratelimit).available": {
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"name": "$.label",
"title": "$.label",
"value": "$.value"
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GRAPHICS_FRAMERATE_LIMIT",
"actions": {
"set": "$.value"
}
},
"set-data-property": {
"target": "ui_option_framerate_limit_view",
"property": {
"name": "displayValue",
"value": "$formatstring [{$.label}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
}
]
}
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc EUI_TEXT_OPTIONS_GRAPHICS_MENU_ITEM_FRAMERATE_LOCK",
"paragraph": "$loc EUI_TEXT_OPTIONS_GRAPHICS_MENU_ITEM_FRAMERATE_LOCK_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"$if $not $isnull $($arg graphics_renderingquality)": {
"$then": {
"id": "ui_option_rendering_quality_view",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc $($arg graphics_renderingquality).lockey",
"displayValue": "$formatstring [{$($arg graphics_renderingquality).currentloc}]"
},
"children": {
"id": "ui_option_rendering_quality_list",
"controller": "list",
"view": "menu3.containers.ScrollingListContainer",
"data": {
"overflowscrolling": "1.0"
},
"container": "options_container_3",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "ui_option_rendering_quality_list",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GRAPHICS_RENDERING_QUALITY"
}
}
}
}
},
"children": {
"$merge": [
{
"$each $($arg graphics_renderingquality).available": {
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"name": "$.label",
"title": "$.label",
"value": "$.value"
},
"actions": {
"accept": [
{
"node-action": {
"target": "UI_OPTION_GRAPHICS_RENDERING_QUALITY",
"actions": {
"set": "$.value"
}
},
"set-data-property": {
"target": "ui_option_rendering_quality_view",
"property": {
"name": "displayValue",
"value": "$formatstring [{$.label}]"
}
}
},
{
"set-pressable": {
"ui_option_framerate_limit_view": {
"$if $eq ($.value,0)": {
"$then": true,
"$else": false
}
}
},
"set-selectable": {
"ui_option_framerate_limit_view": {
"$if $eq ($.value,0)": {
"$then": true,
"$else": false
}
}
},
"set-data-property": {
"target": "ui_option_framerate_limit_view",
"property": {
"name": "displayValue",
"value": {
"$if $eq ($.value,0)": {
"$then": "$formatstring [{$($arg frameratelimit).currentloc}]",
"$else": "$formatstring [{$($arg frameratelimit).available[1].label}]"
}
}
}
},
"reload-ui": {
"target": "ui_option_framerate_limit_view",
"dataonly": true
}
},
{
"trigger-input": {
"action": "cancel"
}
}
]
}
}
}
]
}
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCE_GRAPHICS_RENDERING_QUALITY",
"paragraph": "$loc UI_PREFERENCE_GRAPHICS_RENDERING_QUALITY_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
"$else": null
}
},
{
"view": "menu3.basic.OptionsListElement",
"id": "UI_OPTION_GRAPHICS_DEFAULT",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCES_RESTORE_DEFAULT"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCES_RESTORE_DEFAULT",
"paragraph": "$loc UI_PREFERENCES_RESTORE_DEFAULT_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
},
"accept": {
"show-modal": {
"config": {
"type": "system",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_RESTORE_DEFAULTS_TITLE",
"description": {
"$loc": {
"key": "UI_DIALOG_CONFIRM_TEXT",
"data": "$loc UI_DIALOG_ACTION_RESTORE_DEFAULT"
}
}
}
},
"onbutton": [
{
"set-default": {
"setting-category": "graphics"
},
"push-menu-context": {
"onpageopened": [
{
"_comment": "This is to reselect the locale once applied, as we reload the page when locale changes"
},
{
"set-selected": [
{
"target": "UI_MENU_PAGE_HUB_SETTINGS"
},
{
"target": "UI_GRAPHICS_BUTTON"
}
],
"trigger-input": {
"action": "accept"
}
}
]
}
},
{
"set-selected": {}
}
]
}
}
}
}
]
}
]
}
}
}
},
{
"view": "menu3.basic.ListElementSmall",
"id": "UI_AUDIO_BUTTON",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_MENU_PAGE_SETTINGS_AUDIO",
"icon": "audio"
},
"children": {
"controller": "list",
"view": "menu3.containers.ScrollingListContainer",
"direction": "vertical",
"data": {
"direction": "vertical",
"overflowscrolling": "1.0"
},
"actions": {
"on-remove-child": {
"save-options": {
"id": "AUDIO"
}
},
"on-page-closed": {
"save-options": {
"id": "AUDIO"
}
}
},
"row": 1,
"col": 2.25,
"nrows": 3.75,
"ncols": 4,
"children": [
{
"controller": "context",
"view": "menu3.containers.ListContainer",
"contextmode": "jump",
"navigationmode": "list",
"loopedselection": false,
"groupselect": true,
"id": "UI_OPTION_SOUND",
"container": "options_container_2",
"children": [
{
"view": "menu3.basic.OptionsListElement",
"controller": "preference-item",
"id": "UI_OPTION_SOUND_VOLUME_MASTER",
"sliderdata": "$($arg sound_volume_master).sliderdata",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"slider": true,
"title": "$loc UI_PREFERENCE_SOUND_VOLUME_MASTER",
"displayValue": "$($arg sound_volume_master).current",
"displayValueDecimals": "0"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCE_SOUND_VOLUME_MASTER",
"paragraph": "$loc UI_PREFERENCE_SOUND_VOLUME_MASTER_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"view": "menu3.basic.OptionsListElement",
"controller": "preference-item",
"id": "UI_OPTION_SOUND_VOLUME_EFFECTS",
"sliderdata": "$($arg sound_volume_effects).sliderdata",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"slider": true,
"title": "$loc UI_PREFERENCE_SOUND_VOLUME_EFFECTS",
"displayValue": "$($arg sound_volume_effects).current",
"displayValueDecimals": "0"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCE_SOUND_VOLUME_EFFECTS",
"paragraph": "$loc UI_PREFERENCE_SOUND_VOLUME_EFFECTS_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"view": "menu3.basic.OptionsListElement",
"controller": "preference-item",
"id": "UI_OPTION_SOUND_VOLUME_MUSIC",
"sliderdata": "$($arg sound_volume_music).sliderdata",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"slider": true,
"title": "$loc UI_PREFERENCE_SOUND_VOLUME_MUSIC",
"displayValue": "$($arg sound_volume_music).current",
"displayValueDecimals": "0"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCE_SOUND_VOLUME_MUSIC",
"paragraph": "$loc UI_PREFERENCE_SOUND_VOLUME_MUSIC_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"$if $eqs ($arg _platform,durango)": {
"$then": {
"controller": "preference-item",
"id": "UI_OPTION_SOUND_MUTE_MICROPHONE",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCE_SOUND_MUTE_MICROPHONE",
"displayValue": "$formatstring [{$loc $($arg audio_mute_microphone).lockey}]"
},
"children": [
{
"id": "UI_OPTION_SOUND_MUTE_MICROPHONE_LIST",
"controller": "list",
"view": "menu3.containers.ListContainer",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "UI_OPTION_SOUND_MUTE_MICROPHONE_LIST",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_SOUND_MUTE_MICROPHONE"
}
}
}
}
},
"children": [
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_OFF",
"value": false
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_SOUND_MUTE_MICROPHONE",
"actions": {
"set": false
}
},
"set-data-property": {
"target": "UI_OPTION_SOUND_MUTE_MICROPHONE",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_OFF}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_ON",
"value": true
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_SOUND_MUTE_MICROPHONE",
"actions": {
"set": true
}
},
"set-data-property": {
"target": "UI_OPTION_SOUND_MUTE_MICROPHONE",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_ON}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
]
}
],
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCE_SOUND_MUTE_MICROPHONE",
"paragraph": "$loc UI_PREFERENCE_SOUND_MUTE_MICROPHONE_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
}
}
},
{
"$if $eqs ($arg _platform,durango)": {
"$then": {
"controller": "preference-item",
"id": "UI_OPTION_SOUND_MUTE_OTHER_PLAYER",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_OPTION_SOUND_MUTE_OTHER_PLAYER",
"displayValue": "$formatstring [{$loc $($arg audio_mute_other_player).lockey}]"
},
"children": [
{
"id": "UI_OPTION_SOUND_MUTE_OTHER_PLAYER_LIST",
"controller": "list",
"view": "menu3.containers.ListContainer",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "UI_OPTION_SOUND_MUTE_OTHER_PLAYER_LIST",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_SOUND_MUTE_OTHER_PLAYER"
}
}
}
}
},
"children": [
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_OFF",
"value": false
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_SOUND_MUTE_OTHER_PLAYER",
"actions": {
"set": false
}
},
"set-data-property": {
"target": "UI_OPTION_SOUND_MUTE_OTHER_PLAYER",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_OFF}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_ON",
"value": true
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_SOUND_MUTE_OTHER_PLAYER",
"actions": {
"set": true
}
},
"set-data-property": {
"target": "UI_OPTION_SOUND_MUTE_OTHER_PLAYER",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_ON}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
]
}
],
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_OPTION_SOUND_MUTE_OTHER_PLAYER",
"paragraph": "$loc UI_PREFERENCE_SOUND_MUTE_OTHER_PLAYER_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
}
}
},
{
"controller": "preference-item",
"id": "UI_OPTION_SOUND_OUTPUTMODE",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCE_SOUND_OUTPUTMODE",
"displayValue": "$formatstring [{$loc $($arg sound_outputmode).lockey}]"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCE_SOUND_OUTPUTMODE",
"paragraph": "$loc UI_PREFERENCE_SOUND_OUTPUTMODE_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
},
"children": [
{
"id": "UI_OPTION_SOUND_OUTPUTMODE_LIST",
"controller": "list",
"view": "menu3.containers.ListContainer",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "UI_OPTION_SOUND_OUTPUTMODE_LIST",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_SOUND_OUTPUTMODE"
}
}
}
}
},
"children": [
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCE_SOUND_OUTPUTMODE_SURROUND",
"value": 0
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_SOUND_OUTPUTMODE",
"actions": {
"set": 0
}
},
"set-data-property": {
"target": "UI_OPTION_SOUND_OUTPUTMODE",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_PREFERENCE_SOUND_OUTPUTMODE_SURROUND}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCE_SOUND_OUTPUTMODE_STEREO",
"value": 1
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_SOUND_OUTPUTMODE",
"actions": {
"set": 1
}
},
"set-data-property": {
"target": "UI_OPTION_SOUND_OUTPUTMODE",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_PREFERENCE_SOUND_OUTPUTMODE_STEREO}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCE_SOUND_OUTPUTMODE_HEADPHONES",
"value": 2
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_SOUND_OUTPUTMODE",
"actions": {
"set": 2
}
},
"set-data-property": {
"target": "UI_OPTION_SOUND_OUTPUTMODE",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_PREFERENCE_SOUND_OUTPUTMODE_HEADPHONES}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
]
}
]
},
{
"view": "menu3.basic.OptionsListElement",
"id": "UI_OPTION_SOUND_DEFAULT",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCES_RESTORE_DEFAULT"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCES_RESTORE_DEFAULT",
"paragraph": "$loc UI_PREFERENCES_RESTORE_DEFAULT_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
},
"accept": {
"show-modal": {
"config": {
"type": "system",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_RESTORE_DEFAULTS_TITLE",
"description": {
"$loc": {
"key": "UI_DIALOG_CONFIRM_TEXT",
"data": "$loc UI_DIALOG_ACTION_RESTORE_DEFAULT"
}
}
}
},
"onbutton": [
{
"set-default": {
"setting-category": "audio"
},
"push-menu-context": {
"onpageopened": [
{
"_comment": "This is to reselect the locale once applied, as we reload the page when locale changes"
},
{
"set-selected": [
{
"target": "UI_MENU_PAGE_HUB_SETTINGS"
},
{
"target": "UI_AUDIO_BUTTON"
}
],
"trigger-input": {
"action": "accept"
}
}
]
}
},
{
"set-selected": {}
}
]
}
}
}
}
]
}
]
}
},
{
"view": "menu3.basic.ListElementSmall",
"id": "UI_LANGUAGE_BUTTON",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_MENU_PAGE_SETTINGS_LANGUAGE",
"icon": "language"
},
"children": {
"controller": "list",
"view": "menu3.containers.ScrollingListContainer",
"direction": "vertical",
"data": {
"direction": "vertical",
"overflowscrolling": "1.0"
},
"actions": {
"on-remove-child": {
"save-options": {
"id": "LANGUAGE_OPS"
}
},
"on-page-closed": {
"save-options": {
"id": "LANGUAGE_OPS"
}
}
},
"row": 1,
"col": 2.25,
"nrows": 3.75,
"ncols": 4,
"children": [
{
"controller": "context",
"view": "menu3.containers.ListContainer",
"contextmode": "jump",
"navigationmode": "list",
"loopedselection": false,
"groupselect": true,
"id": "PLAYER_AIDS_CONTROLLER",
"container": "options_container_2",
"children": [
{
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc $($arg locales).lockey",
"displayValue": "$formatstring [{$loc $($arg locales).currentloc}]"
},
"children": {
"$merge": [
{
"controller": "preference-item",
"id": "UI_OPTION_GAME_LANG_TEXT",
"selectable": false,
"pressable": false
},
{
"id": "UI_OPTION_GAME_LANG_TEXT_LIST",
"controller": "list",
"view": "menu3.containers.ScrollingListContainer",
"direction": "vertical",
"data": {
"direction": "vertical",
"overflowscrolling": "1.0"
},
"groupselect": true,
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "UI_OPTION_GAME_LANG_TEXT_LIST",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GAME_LANG_TEXT"
}
}
}
}
},
"children": {
"$each": {
"in": {
"$orderby": {
"from": "$($arg locales).available",
"by": "value",
"order": [
"en",
"fr",
"it",
"de",
"es",
"mx",
"br",
"pl",
"ru",
"cn",
"jp"
]
}
},
"do": {
"view": "menu3.basic.OptionsListElementSmall",
"id": "$.label",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc $.label",
"value": "$.value"
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_LANG_TEXT",
"actions": {
"set": "$.value"
}
},
"push-menu-context": {
"$switch $.value": [
{
"case": "$($arg locales).current",
"return": {}
},
{
"default": {
"onpageopened": [
{
"_comment": "This is to reselect the locale once applied, as we reload the page when locale changes"
},
{
"set-selected": {
"target": "UI_MENU_PAGE_HUB_SETTINGS"
}
},
{
"set-selected": {
"target": "UI_LANGUAGE_BUTTON"
}
},
{
"trigger-input": {
"action": "accept"
}
},
{
"trigger-input": {
"action": "accept"
}
},
{
"set-selected": {
"target": "$.label"
}
}
]
}
}
]
},
"trigger-input": {
"action": "cancel"
}
}
}
}
}
}
}
]
}
},
{
"$if": {
"$condition": {
"$if $gt ($arraysize $($arg audiolocales).available,1)": {
"$then": true,
"$else": false
}
},
"$then": {
"view": "menu3.basic.OptionsListElement",
"id": "UI_OPTION_LANGUAGE_AUDIO_LOCALE_ELEMENT",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc $($arg audiolocales).lockey",
"displayValue": "$formatstring [{$loc $($arg audiolocales).currentloc}]"
},
"children": {
"$merge": [
{
"controller": "preference-item",
"id": "UI_OPTION_GAME_LANG_AUDIO",
"selectable": false,
"pressable": false
},
{
"id": "UI_OPTION_GAME_LANG_AUDIO_LIST",
"controller": "list",
"view": "menu3.containers.ScrollingListContainer",
"direction": "vertical",
"data": {
"direction": "vertical",
"overflowscrolling": "1.0"
},
"groupselect": true,
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "UI_OPTION_GAME_LANG_AUDIO_LIST",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GAME_LANG_AUDIO"
}
}
}
}
},
"children": {
"$each": {
"in": {
"$orderby": {
"from": "$($arg audiolocales).available",
"by": "value",
"order": [
"en",
"fr",
"it",
"de",
"es",
"mx",
"br",
"pl",
"ru",
"cn",
"jp"
]
}
},
"do": {
"view": "menu3.basic.OptionsListElementSmall",
"id": "$.label",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc $.label",
"value": "$.value"
},
"stateproviders": [
{
"$if $eqs ($.label,UI_OPTION_GAME_LANG_JP)": {
"$then": {
"_comment": "hardcoded to show dlc missing modal if japanese pack is not installed and/or 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"
],
"locale": [
"jp"
]
}
}
}
],
"actions": {
"$mergeobjects": [
{
"accept": {
"node-action": {
"target": "UI_OPTION_GAME_LANG_AUDIO",
"actions": {
"set": "$.value"
}
},
"set-data-property": {
"target": "UI_OPTION_LANGUAGE_AUDIO_LOCALE_ELEMENT",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc $.label}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
},
{
"$if $eqs ($.label,UI_OPTION_GAME_LANG_JP)": {
"$then": {
"$setup": {
"$set Data": {
"DlcName": "GAME_STORE_METADATA_LANG_JPN_TITLE",
"DlcImage": "images/livetile/dlc/language_japanese_wide_logo.png"
},
"$in": {
"on-free-prologue-user": {
"alter-actions": {
"path": "accept",
"value": {
"$if": {
"$condition": {
"$if": {
"$condition": {
"$and": [
{
"$if": {
"$condition": {
"$areresourcesinstalled": [
"[assembly:/_pro/scenes/missions/thefacility/_scene_polarbear_005.entity].entitytemplate"
]
},
"$then": false,
"$else": true
}
},
{
"$if": {
"$condition": {
"$areaudiopacksinstalled": [
"jp"
]
},
"$then": true,
"$else": false
}
}
]
},
"$then": true,
"$else": false
}
},
"$then": {
"trigger-action": {
"name": "on-chunk1-missing"
}
},
"$else": {
"show-modal": {
"config": {
"type": "online",
"view": "menu3.modal.ModalDialogGeneric",
"buttons": [
{
"label": {
"$setup": {
"$set Store": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "UI_MENU_GO_TO_STORE"
},
{
"case": "orbis",
"return": "UI_MENU_GO_TO_STORE_PSN"
},
{
"case": "durango",
"return": "UI_MENU_GO_TO_STORE_XBOX"
}
]
},
"$in": "$formatstring {$loc UI_MENU_PAGE_FEATURED_GOTO_HEADER} {$loc $.Store}"
}
},
"icon": "arrowright"
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"$setup": {
"$set Title": "UI_DIALOG_CONTRACT_SEARCH_DLC_NOT_INSTALLED_TITLE",
"_comment": "using the NOT_OWNED string here as well is intentional",
"$set Description": "UI_DIALOG_CONTRACT_SEARCH_DLC_NOT_INSTALLED_DESCRIPTION",
"$in": {
"title": "$loc $.Title",
"_comment": "HACK: use typeoverride to make the buttons work",
"typeoverride": "online",
"frameheightmax": 850,
"information": [
{
"$if $not $($isnull $.Contract)": {
"$then": {
"contract": {
"type": "$.Contract.Metadata.Type",
"name": {
"$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"
}
]
},
"creator": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": "$loc UI_CATEGORY_MESSAGE_CENTER_COMMUNITY"
},
{
"default": "$($user $.Contract.Metadata.CreatorUserId).name"
}
]
},
"id": "$formatpublicid $.Contract.Metadata.PublicId",
"creationdate": "$.Contract.Metadata.CreationTimestamp",
"description": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": {
"$if $stringvalid $loc $.Contract.Metadata.Description": {
"$then": "$loc $.Contract.Metadata.Description",
"$else": "$.Contract.Metadata.Description"
}
}
},
{
"case": "creation",
"return": "$loc UI_MENU_PAGE_CREATE_CONTRACT_NO_ACCESS_DESCRIPTION"
},
{
"default": "$loc $.Contract.Metadata.Description"
}
]
},
"image": {
"$if $.Contract.Metadata.TileImage": {
"$then": {
"$if $gt ($arraysize $.Contract.Metadata.TileImage,0)": {
"$then": {
"$setup": {
"$set GameMode": {
"$if $isnull $.GameMode": {
"$then": {
"$if $isnull $arg GameMode": {
"$then": "singleplayer",
"$else": "$arg GameMode"
}
},
"$else": "$.GameMode"
}
},
"$set TileImageOrdered": {
"$orderby": {
"from": "$expand $.Contract.Metadata.TileImage",
"by": "Mode",
"order": [
"$.GameMode"
]
}
},
"$in": "$res $.TileImageOrdered[0].Image"
}
},
"$else": "$res $expand $.Contract.Metadata.TileImage"
}
},
"$else": "$res images/ui/tiles/defaultmenutilesmall.jpg"
}
},
"icon": {
"$switch $.Contract.Metadata.Type": [
{
"case": "orbis",
"return": "ica"
},
{
"case": "campaign",
"return": "mission"
},
{
"case": "sniper",
"return": "sniperrifle"
},
{
"default": "$.Contract.Metadata.Type"
}
]
},
"locked": true
}
}
}
},
{
"dlcmissing": {
"$setup": {
"$set DlcName": {
"$if $isnull $.DlcName": {
"$then": {
"$if $isnull $.SubLocation": {
"$then": {
"$if $isnull $.Location": {
"$then": "$loc $.Data.DlcName",
"$else": "$loc $.Location.Properties.DlcName"
}
},
"$else": "$loc $.SubLocation.Properties.DlcName"
}
},
"$else": "$.DlcName"
}
},
"$set DlcImage": {
"$if $isnull $.DlcImage": {
"$then": {
"$if $isnull $.SubLocation": {
"$then": {
"$if $isnull $.Location": {
"$then": "$res $.Data.DlcImage",
"$else": "$res $.Location.Properties.DlcImage"
}
},
"$else": "$res $.SubLocation.Properties.DlcImage"
}
},
"$else": "$.DlcImage"
}
},
"$set CreatedInMission": "$loc $formatstring UI_{$.Contract.Metadata.Location}_TITLE",
"$set CreatedInLocation": "$loc $formatstring UI_{$.Contract.Metadata.Location}_CITY",
"$in": {
"showcreatedin": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": true
},
{
"case": "usercreated",
"return": true
},
{
"default": false
}
]
},
"episode": "$.DlcName",
"location": {
"$loc": {
"key": "UI_DIALOG_CONTRACT_SEARCH_CREATED_IN",
"data": [
"$formatstring {$.CreatedInMission}, {$.CreatedInLocation}"
]
}
},
"description": {
"$if $isnull $.DescriptionExpanded": {
"$then": {
"$loc": {
"key": "$.Description",
"data": [
"$.DlcName"
]
}
},
"$else": "$.DescriptionExpanded"
}
},
"image": "$.DlcImage"
}
}
}
}
],
"userresolution": {
"$if": {
"$condition": {
"$and": [
"$not $($isnull $.Contract)",
{
"$equal": [
"usercreated",
"$.Contract.Metadata.Type"
]
}
]
},
"$then": {
"informationtarget": "contract.creator",
"profileid": "$.Contract.Metadata.CreatorUserId"
}
}
}
}
}
}
},
"onbutton": [
{
"$if $not $arg _isonline": {
"$then": {
"open-package-store": {
"packageid": "$.packageid",
"skipdialog": true
}
},
"$else": {
"show-store-item-detail": {
"itemId": {
"$setup": {
"$set LocationId": {
"$if $isnull $.SubLocation": {
"$then": {
"$if $isnull $.Location": {
"$then": {
"$if $not $($isnull $.Contract)": {
"$then": "$.Contract.Metadata.Location",
"$else": null
}
},
"$else": "$.Location.Id"
}
},
"$else": "$.SubLocation.Id"
}
},
"$in": {
"$if $isnull $.LocationId": {
"$then": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "236870"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA06508",
"return": "HITMANCOMPLETE01"
},
{
"case": "CUSA06535",
"return": "HITMANCOMPLETE01"
},
{
"case": "CUSA07680",
"return": "HITMANCOMPLETE01"
},
{
"default": "FULLEXPERIENCE00"
}
]
}
},
{
"case": "durango",
"return": "5c49c5fd-2c07-4840-8d24-1188318dc50a"
}
]
},
"$else": {
"$switch $.LocationId": [
{
"case": "LOCATION_PARENT_ICA_FACILITY",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "236870"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"default": "HITMANGAME000001"
}
]
}
},
{
"case": "durango",
"return": "7b51fef8-8cdc-456b-8170-285e7388815b"
}
]
}
},
{
"case": "LOCATION_ICA_FACILITY",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "236870"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"default": "HITMANGAME000001"
}
]
}
},
{
"case": "durango",
"return": "7b51fef8-8cdc-456b-8170-285e7388815b"
}
]
}
},
{
"case": "LOCATION_PARENT_PARIS",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "439870"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000001"
},
{
"default": "000000000000DLC0"
}
]
}
},
{
"case": "durango",
"return": "ddbfb905-1db6-4f8d-a195-f4c618090158"
}
]
}
},
{
"case": "LOCATION_PARIS",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "439870"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000001"
},
{
"default": "000000000000DLC0"
}
]
}
},
{
"case": "durango",
"return": "ddbfb905-1db6-4f8d-a195-f4c618090158"
}
]
}
},
{
"case": "LOCATION_PARENT_COASTALTOWN",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "439890"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000002"
},
{
"default": "000000000000DLC1"
}
]
}
},
{
"case": "durango",
"return": "7259af16-3c9b-4669-bcd9-1a5e3420e82e"
}
]
}
},
{
"case": "LOCATION_COASTALTOWN",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "439890"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000002"
},
{
"default": "000000000000DLC1"
}
]
}
},
{
"case": "durango",
"return": "7259af16-3c9b-4669-bcd9-1a5e3420e82e"
}
]
}
},
{
"case": "LOCATION_COASTALTOWN_NIGHT",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440940"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000004"
},
{
"default": "000000000000DLC3"
}
]
}
},
{
"case": "durango",
"return": "69bb2429-7101-482e-a7d8-c21d9bd7b9aa"
}
]
}
},
{
"case": "LOCATION_COASTALTOWN_MOVIESET",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440940"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000004"
},
{
"default": "000000000000DLC3"
}
]
}
},
{
"case": "durango",
"return": "69bb2429-7101-482e-a7d8-c21d9bd7b9aa"
}
]
}
},
{
"case": "LOCATION_COASTALTOWN_EBOLA",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "439890"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000002"
},
{
"default": "000000000000DLC1"
}
]
}
},
{
"case": "durango",
"return": "7259af16-3c9b-4669-bcd9-1a5e3420e82e"
}
]
}
},
{
"case": "LOCATION_PARENT_MARRAKECH",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440930"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000003"
},
{
"default": "000000000000DLC2"
}
]
}
},
{
"case": "durango",
"return": "4ab5a553-0620-427c-8dc3-792ff3edfa93"
}
]
}
},
{
"case": "LOCATION_MARRAKECH",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440930"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000003"
},
{
"default": "000000000000DLC2"
}
]
}
},
{
"case": "durango",
"return": "4ab5a553-0620-427c-8dc3-792ff3edfa93"
}
]
}
},
{
"case": "LOCATION_MARRAKECH_NIGHT",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440940"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000004"
},
{
"default": "000000000000DLC3"
}
]
}
},
{
"case": "durango",
"return": "69bb2429-7101-482e-a7d8-c21d9bd7b9aa"
}
]
}
},
{
"case": "LOCATION_PARENT_BANGKOK",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440960"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000005"
},
{
"default": "000000000000DLC4"
}
]
}
},
{
"case": "durango",
"return": "af20b77b-2abd-4d14-8d46-49a3cefc2f24"
}
]
}
},
{
"case": "LOCATION_BANGKOK",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440960"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000005"
},
{
"default": "000000000000DLC4"
}
]
}
},
{
"case": "durango",
"return": "af20b77b-2abd-4d14-8d46-49a3cefc2f24"
}
]
}
},
{
"case": "LOCATION_BANGKOK_ZIKA",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440960"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000005"
},
{
"default": "000000000000DLC4"
}
]
}
},
{
"case": "durango",
"return": "af20b77b-2abd-4d14-8d46-49a3cefc2f24"
}
]
}
},
{
"case": "LOCATION_PARENT_COLORADO",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440961"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000006"
},
{
"default": "000000000000DLC5"
}
]
}
},
{
"case": "durango",
"return": "788565e6-8c1f-4715-ab42-591d0ec7f400"
}
]
}
},
{
"case": "LOCATION_COLORADO",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440961"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000006"
},
{
"default": "000000000000DLC5"
}
]
}
},
{
"case": "durango",
"return": "788565e6-8c1f-4715-ab42-591d0ec7f400"
}
]
}
},
{
"case": "LOCATION_COLORADO_RABIES",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440961"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000006"
},
{
"default": "000000000000DLC5"
}
]
}
},
{
"case": "durango",
"return": "788565e6-8c1f-4715-ab42-591d0ec7f400"
}
]
}
},
{
"case": "LOCATION_PARENT_HOKKAIDO",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440962"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000007"
},
{
"default": "000000000000DLC6"
}
]
}
},
{
"case": "durango",
"return": "f897e25f-7661-40db-a854-272f5858b1cd"
}
]
}
},
{
"case": "LOCATION_HOKKAIDO",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440962"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000007"
},
{
"default": "000000000000DLC6"
}
]
}
},
{
"case": "durango",
"return": "f897e25f-7661-40db-a854-272f5858b1cd"
}
]
}
},
{
"case": "LOCATION_HOKKAIDO_FLU",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440962"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000007"
},
{
"default": "000000000000DLC6"
}
]
}
},
{
"case": "durango",
"return": "f897e25f-7661-40db-a854-272f5858b1cd"
}
]
}
},
{
"default": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "236870"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA06508",
"return": "HITMANCOMPLETE01"
},
{
"case": "CUSA06535",
"return": "HITMANCOMPLETE01"
},
{
"case": "CUSA07680",
"return": "HITMANCOMPLETE01"
},
{
"default": "FULLEXPERIENCE00"
}
]
}
},
{
"case": "durango",
"return": "5c49c5fd-2c07-4840-8d24-1188318dc50a"
}
]
}
}
]
}
}
}
}
}
}
}
}
}
]
}
}
}
}
}
},
"on-content-unknown": {
"_comment": "No DLC could be found containing contract",
"alter-actions": {
"path": "accept",
"value": {
"$if": {
"$condition": {
"$if": {
"$condition": {
"$and": [
{
"$if": {
"$condition": {
"$areresourcesinstalled": [
"[assembly:/_pro/scenes/missions/thefacility/_scene_polarbear_005.entity].entitytemplate"
]
},
"$then": false,
"$else": true
}
},
{
"$if": {
"$condition": {
"$areaudiopacksinstalled": [
"jp"
]
},
"$then": true,
"$else": false
}
}
]
},
"$then": true,
"$else": false
}
},
"$then": {
"trigger-action": {
"name": "on-chunk1-missing"
}
},
"$else": {
"show-modal": {
"config": {
"type": "online",
"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": "DLC is not owned",
"alter-actions": {
"path": "accept",
"value": {
"$if": {
"$condition": {
"$if": {
"$condition": {
"$and": [
{
"$if": {
"$condition": {
"$areresourcesinstalled": [
"[assembly:/_pro/scenes/missions/thefacility/_scene_polarbear_005.entity].entitytemplate"
]
},
"$then": false,
"$else": true
}
},
{
"$if": {
"$condition": {
"$areaudiopacksinstalled": [
"jp"
]
},
"$then": true,
"$else": false
}
}
]
},
"$then": true,
"$else": false
}
},
"$then": {
"trigger-action": {
"name": "on-chunk1-missing"
}
},
"$else": {
"show-modal": {
"config": {
"type": "online",
"view": "menu3.modal.ModalDialogGeneric",
"buttons": [
{
"label": {
"$setup": {
"$set Store": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "UI_MENU_GO_TO_STORE"
},
{
"case": "orbis",
"return": "UI_MENU_GO_TO_STORE_PSN"
},
{
"case": "durango",
"return": "UI_MENU_GO_TO_STORE_XBOX"
}
]
},
"$in": "$formatstring {$loc UI_MENU_PAGE_FEATURED_GOTO_HEADER} {$loc $.Store}"
}
},
"icon": "arrowright"
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"$setup": {
"$set DlcName": {
"$notransform": {
"$if": {
"$condition": {
"$or": [
"$eqs ($.MissingEntitlements[0].Id,GOTY_PATIENT_ZERO)",
"$eqs ($.MissingEntitlements[0].Id,TOKEN_OUTFIT_PARIS_CLOWN)",
"$eqs ($.MissingEntitlements[0].Id,TOKEN_OUTFIT_MARRAKESH_DARK_SNIPER)",
"$eqs ($.MissingEntitlements[0].Id,TOKEN_OUTFIT_HOKKAIDO_COWBOY)"
]
},
"$then": {
"$if": {
"$condition": {
"$and": [
{
"$isintropackuser": ""
},
{
"$if": {
"$condition": {
"$if": {
"$condition": {
"$and": [
"$eqs ($arg _platform,orbis)",
{
"$if": {
"$condition": {
"$or": [
"$eqs ($arg _storeregion,CUSA02976)",
"$eqs ($arg _storeregion,CUSA06535)"
]
},
"$then": true,
"$else": false
}
}
]
},
"$then": false,
"$else": true
}
}
}
}
]
},
"$then": "$loc GAME_STORE_METADATA_PACKAGE_GOTY_UPGRADE_INTRO_TITLE",
"$else": {
"$if": {
"$condition": {
"$isfullexperienceuser": ""
},
"$then": "$loc GAME_STORE_METADATA_PACKAGE_GOTY_UPGRADE_CFS_TITLE",
"$else": "$loc GAME_STORE_METADATA_PACKAGE_GOTY_TITLE"
}
}
}
}
}
}
},
"$set DlcImage": {
"$notransform": {
"$if": {
"$condition": {
"$or": [
"$eqs ($.MissingEntitlements[0].Id,GOTY_PATIENT_ZERO)",
"$eqs ($.MissingEntitlements[0].Id,TOKEN_OUTFIT_PARIS_CLOWN)",
"$eqs ($.MissingEntitlements[0].Id,TOKEN_OUTFIT_MARRAKESH_DARK_SNIPER)",
"$eqs ($.MissingEntitlements[0].Id,TOKEN_OUTFIT_HOKKAIDO_COWBOY)"
]
},
"$then": {
"$if": {
"$condition": {
"$and": [
{
"$isintropackuser": ""
},
{
"$if": {
"$condition": {
"$if": {
"$condition": {
"$and": [
"$eqs ($arg _platform,orbis)",
{
"$if": {
"$condition": {
"$or": [
"$eqs ($arg _storeregion,CUSA02976)",
"$eqs ($arg _storeregion,CUSA06535)"
]
},
"$then": true,
"$else": false
}
}
]
},
"$then": false,
"$else": true
}
}
}
}
]
},
"$then": "$res images/livetile/dlc/tile_goty_intro.jpg",
"$else": {
"$if": {
"$condition": {
"$isfullexperienceuser": ""
},
"$then": "$res images/livetile/dlc/tile_goty_cfs.jpg",
"$else": "$res images/livetile/dlc/tile_goty.jpg"
}
}
}
}
}
}
},
"$set Title": "UI_DIALOG_CONTRACT_ENTITLEMENT_MISSING_TITLE",
"$set DescriptionExpanded": {
"$notransform": {
"$loc": {
"key": "UI_DIALOG_CONTRACT_ENTITLEMENT_MISSING_DESCRIPTION",
"data": [
{
"$if": {
"$condition": {
"$or": [
"$eqs ($.MissingEntitlements[0].Id,GOTY_PATIENT_ZERO)",
"$eqs ($.MissingEntitlements[0].Id,TOKEN_OUTFIT_PARIS_CLOWN)",
"$eqs ($.MissingEntitlements[0].Id,TOKEN_OUTFIT_MARRAKESH_DARK_SNIPER)",
"$eqs ($.MissingEntitlements[0].Id,TOKEN_OUTFIT_HOKKAIDO_COWBOY)"
]
},
"$then": {
"$if": {
"$condition": {
"$and": [
{
"$isintropackuser": ""
},
{
"$if": {
"$condition": {
"$if": {
"$condition": {
"$and": [
"$eqs ($arg _platform,orbis)",
{
"$if": {
"$condition": {
"$or": [
"$eqs ($arg _storeregion,CUSA02976)",
"$eqs ($arg _storeregion,CUSA06535)"
]
},
"$then": true,
"$else": false
}
}
]
},
"$then": false,
"$else": true
}
}
}
}
]
},
"$then": "$loc GAME_STORE_METADATA_PACKAGE_GOTY_UPGRADE_INTRO_TITLE",
"$else": {
"$if": {
"$condition": {
"$isfullexperienceuser": ""
},
"$then": "$loc GAME_STORE_METADATA_PACKAGE_GOTY_UPGRADE_CFS_TITLE",
"$else": "$loc GAME_STORE_METADATA_PACKAGE_GOTY_TITLE"
}
}
}
}
}
}
]
}
}
},
"$in": {
"title": "$loc $.Title",
"_comment": "HACK: use typeoverride to make the buttons work",
"typeoverride": "online",
"frameheightmax": 850,
"information": [
{
"$if $not $($isnull $.Contract)": {
"$then": {
"contract": {
"type": "$.Contract.Metadata.Type",
"name": {
"$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"
}
]
},
"creator": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": "$loc UI_CATEGORY_MESSAGE_CENTER_COMMUNITY"
},
{
"default": "$($user $.Contract.Metadata.CreatorUserId).name"
}
]
},
"id": "$formatpublicid $.Contract.Metadata.PublicId",
"creationdate": "$.Contract.Metadata.CreationTimestamp",
"description": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": {
"$if $stringvalid $loc $.Contract.Metadata.Description": {
"$then": "$loc $.Contract.Metadata.Description",
"$else": "$.Contract.Metadata.Description"
}
}
},
{
"case": "creation",
"return": "$loc UI_MENU_PAGE_CREATE_CONTRACT_NO_ACCESS_DESCRIPTION"
},
{
"default": "$loc $.Contract.Metadata.Description"
}
]
},
"image": {
"$if $.Contract.Metadata.TileImage": {
"$then": {
"$if $gt ($arraysize $.Contract.Metadata.TileImage,0)": {
"$then": {
"$setup": {
"$set GameMode": {
"$if $isnull $.GameMode": {
"$then": {
"$if $isnull $arg GameMode": {
"$then": "singleplayer",
"$else": "$arg GameMode"
}
},
"$else": "$.GameMode"
}
},
"$set TileImageOrdered": {
"$orderby": {
"from": "$expand $.Contract.Metadata.TileImage",
"by": "Mode",
"order": [
"$.GameMode"
]
}
},
"$in": "$res $.TileImageOrdered[0].Image"
}
},
"$else": "$res $expand $.Contract.Metadata.TileImage"
}
},
"$else": "$res images/ui/tiles/defaultmenutilesmall.jpg"
}
},
"icon": {
"$switch $.Contract.Metadata.Type": [
{
"case": "orbis",
"return": "ica"
},
{
"case": "campaign",
"return": "mission"
},
{
"case": "sniper",
"return": "sniperrifle"
},
{
"default": "$.Contract.Metadata.Type"
}
]
},
"locked": true
}
}
}
},
{
"dlcmissing": {
"$setup": {
"$set DlcName": {
"$if $isnull $.DlcName": {
"$then": {
"$if $isnull $.SubLocation": {
"$then": {
"$if $isnull $.Location": {
"$then": "$loc $.Data.DlcName",
"$else": "$loc $.Location.Properties.DlcName"
}
},
"$else": "$loc $.SubLocation.Properties.DlcName"
}
},
"$else": "$.DlcName"
}
},
"$set DlcImage": {
"$if $isnull $.DlcImage": {
"$then": {
"$if $isnull $.SubLocation": {
"$then": {
"$if $isnull $.Location": {
"$then": "$res $.Data.DlcImage",
"$else": "$res $.Location.Properties.DlcImage"
}
},
"$else": "$res $.SubLocation.Properties.DlcImage"
}
},
"$else": "$.DlcImage"
}
},
"$set CreatedInMission": "$loc $formatstring UI_{$.Contract.Metadata.Location}_TITLE",
"$set CreatedInLocation": "$loc $formatstring UI_{$.Contract.Metadata.Location}_CITY",
"$in": {
"showcreatedin": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": true
},
{
"case": "usercreated",
"return": true
},
{
"default": false
}
]
},
"episode": "$.DlcName",
"location": {
"$loc": {
"key": "UI_DIALOG_CONTRACT_SEARCH_CREATED_IN",
"data": [
"$formatstring {$.CreatedInMission}, {$.CreatedInLocation}"
]
}
},
"description": {
"$if $isnull $.DescriptionExpanded": {
"$then": {
"$loc": {
"key": "$.Description",
"data": [
"$.DlcName"
]
}
},
"$else": "$.DescriptionExpanded"
}
},
"image": "$.DlcImage"
}
}
}
}
],
"userresolution": {
"$if": {
"$condition": {
"$and": [
"$not $($isnull $.Contract)",
{
"$equal": [
"usercreated",
"$.Contract.Metadata.Type"
]
}
]
},
"$then": {
"informationtarget": "contract.creator",
"profileid": "$.Contract.Metadata.CreatorUserId"
}
}
}
}
}
}
},
"onbutton": [
{
"$switch $arg _platform": [
{
"case": "pc",
"return": {
"$if $arg _isonline": {
"$then": {
"open-store-fullxp": {
"_comment": "In online mode, go to the GOTY bundle.",
"storeid": "http://store.steampowered.com/bundle/4854"
}
},
"$else": {
"open-store-fullxp": {
"_comment": "In offline mode, go to the HITMAN app (which will redirect to the dlc page).",
"_comment2": "We can't update this link over our server. So we keep it save and go to the app ID.",
"storeid": "http://store.steampowered.com/app/236870"
}
}
}
}
},
{
"default": {
"$notransform": {
"show-store-item-detail": {
"itemId": {
"$if": {
"$condition": {
"$or": [
"$eqs ($.MissingEntitlements[0].Id,GOTY_PATIENT_ZERO)",
"$eqs ($.MissingEntitlements[0].Id,TOKEN_OUTFIT_PARIS_CLOWN)",
"$eqs ($.MissingEntitlements[0].Id,TOKEN_OUTFIT_MARRAKESH_DARK_SNIPER)",
"$eqs ($.MissingEntitlements[0].Id,TOKEN_OUTFIT_HOKKAIDO_COWBOY)"
]
},
"$then": {
"$setup": {
"$set Platform": {
"$if $isnull $.Platform": {
"$then": "$arg _platform",
"$else": "$.Platform"
}
},
"$set Storeregion": {
"$if $isnull $.Storeregion": {
"$then": "$arg _storeregion",
"$else": "$.Storeregion"
}
},
"$in": {
"$if": {
"$condition": {
"$and": [
{
"$isintropackuser": ""
},
{
"$if": {
"$condition": {
"$if": {
"$condition": {
"$and": [
"$eqs ($arg _platform,orbis)",
{
"$if": {
"$condition": {
"$or": [
"$eqs ($arg _storeregion,CUSA02976)",
"$eqs ($arg _storeregion,CUSA06535)"
]
},
"$then": true,
"$else": false
}
}
]
},
"$then": false,
"$else": true
}
}
}
}
]
},
"$then": {
"$switch $.Platform": [
{
"case": "pc",
"return": "236870"
},
{
"case": "orbis",
"return": {
"$switch $.Storeregion": [
{
"case": "CUSA06508",
"return": "000000S1GOTYDISC"
},
{
"case": "CUSA06535",
"return": "000000S1GOTYDISC"
},
{
"case": "CUSA07680",
"return": "000000S1GOTYDISC"
},
{
"case": "CUSA08340",
"return": "0000S1GOTYFULLXP"
},
{
"default": "00000S1GOTYINTRO"
}
]
}
},
{
"case": "durango",
"return": "721958f5-9ddb-4b9e-8ae3-3e07cdaf4843"
}
]
},
"$else": {
"$if": {
"$condition": {
"$isfullexperienceuser": ""
},
"$then": {
"$switch $.Platform": [
{
"case": "pc",
"return": "236870"
},
{
"case": "orbis",
"return": {
"$switch $.Storeregion": [
{
"case": "CUSA06508",
"return": "000000S1GOTYDISC"
},
{
"case": "CUSA06535",
"return": "000000S1GOTYDISC"
},
{
"case": "CUSA07680",
"return": "000000S1GOTYDISC"
},
{
"default": "0000S1GOTYFULLXP"
}
]
}
},
{
"case": "durango",
"return": "253a5f74-b320-4ace-9f8b-94919faa21d3"
}
]
},
"$else": {
"$switch $.Platform": [
{
"case": "pc",
"return": "236870"
},
{
"case": "orbis",
"return": {
"$switch $.Storeregion": [
{
"case": "CUSA06508",
"return": "000000S1GOTYDISC"
},
{
"case": "CUSA06535",
"return": "000000S1GOTYDISC"
},
{
"case": "CUSA07680",
"return": "000000S1GOTYDISC"
},
{
"case": "CUSA08340",
"return": "0000S1GOTYFULLXP"
},
{
"default": "000000S1GOTYFULL"
}
]
}
},
{
"case": "durango",
"return": "407d4c8a-6c6e-44a8-a81c-7594a791ae67"
}
]
}
}
}
}
}
}
},
"$else": "$.MissingEntitlements[0].StoreId"
}
}
}
}
}
}
]
}
]
}
}
}
}
}
},
"on-content-not-owned": {
"_comment": "DLC is not owned",
"alter-actions": {
"path": "accept",
"value": {
"$if": {
"$condition": {
"$if": {
"$condition": {
"$and": [
{
"$if": {
"$condition": {
"$areresourcesinstalled": [
"[assembly:/_pro/scenes/missions/thefacility/_scene_polarbear_005.entity].entitytemplate"
]
},
"$then": false,
"$else": true
}
},
{
"$if": {
"$condition": {
"$areaudiopacksinstalled": [
"jp"
]
},
"$then": true,
"$else": false
}
}
]
},
"$then": true,
"$else": false
}
},
"$then": {
"trigger-action": {
"name": "on-chunk1-missing"
}
},
"$else": {
"show-modal": {
"config": {
"type": "online",
"view": "menu3.modal.ModalDialogGeneric",
"buttons": [
{
"label": {
"$setup": {
"$set Store": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "UI_MENU_GO_TO_STORE"
},
{
"case": "orbis",
"return": "UI_MENU_GO_TO_STORE_PSN"
},
{
"case": "durango",
"return": "UI_MENU_GO_TO_STORE_XBOX"
}
]
},
"$in": "$formatstring {$loc UI_MENU_PAGE_FEATURED_GOTO_HEADER} {$loc $.Store}"
}
},
"icon": "arrowright"
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"$setup": {
"$set Title": "UI_DIALOG_CONTRACT_SEARCH_DLC_NOT_OWNED_TITLE",
"$set Description": "UI_DIALOG_CONTRACT_SEARCH_DLC_NOT_OWNED_DESCRIPTION",
"$in": {
"title": "$loc $.Title",
"_comment": "HACK: use typeoverride to make the buttons work",
"typeoverride": "online",
"frameheightmax": 850,
"information": [
{
"$if $not $($isnull $.Contract)": {
"$then": {
"contract": {
"type": "$.Contract.Metadata.Type",
"name": {
"$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"
}
]
},
"creator": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": "$loc UI_CATEGORY_MESSAGE_CENTER_COMMUNITY"
},
{
"default": "$($user $.Contract.Metadata.CreatorUserId).name"
}
]
},
"id": "$formatpublicid $.Contract.Metadata.PublicId",
"creationdate": "$.Contract.Metadata.CreationTimestamp",
"description": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": {
"$if $stringvalid $loc $.Contract.Metadata.Description": {
"$then": "$loc $.Contract.Metadata.Description",
"$else": "$.Contract.Metadata.Description"
}
}
},
{
"case": "creation",
"return": "$loc UI_MENU_PAGE_CREATE_CONTRACT_NO_ACCESS_DESCRIPTION"
},
{
"default": "$loc $.Contract.Metadata.Description"
}
]
},
"image": {
"$if $.Contract.Metadata.TileImage": {
"$then": {
"$if $gt ($arraysize $.Contract.Metadata.TileImage,0)": {
"$then": {
"$setup": {
"$set GameMode": {
"$if $isnull $.GameMode": {
"$then": {
"$if $isnull $arg GameMode": {
"$then": "singleplayer",
"$else": "$arg GameMode"
}
},
"$else": "$.GameMode"
}
},
"$set TileImageOrdered": {
"$orderby": {
"from": "$expand $.Contract.Metadata.TileImage",
"by": "Mode",
"order": [
"$.GameMode"
]
}
},
"$in": "$res $.TileImageOrdered[0].Image"
}
},
"$else": "$res $expand $.Contract.Metadata.TileImage"
}
},
"$else": "$res images/ui/tiles/defaultmenutilesmall.jpg"
}
},
"icon": {
"$switch $.Contract.Metadata.Type": [
{
"case": "orbis",
"return": "ica"
},
{
"case": "campaign",
"return": "mission"
},
{
"case": "sniper",
"return": "sniperrifle"
},
{
"default": "$.Contract.Metadata.Type"
}
]
},
"locked": true
}
}
}
},
{
"dlcmissing": {
"$setup": {
"$set DlcName": {
"$if $isnull $.DlcName": {
"$then": {
"$if $isnull $.SubLocation": {
"$then": {
"$if $isnull $.Location": {
"$then": "$loc $.Data.DlcName",
"$else": "$loc $.Location.Properties.DlcName"
}
},
"$else": "$loc $.SubLocation.Properties.DlcName"
}
},
"$else": "$.DlcName"
}
},
"$set DlcImage": {
"$if $isnull $.DlcImage": {
"$then": {
"$if $isnull $.SubLocation": {
"$then": {
"$if $isnull $.Location": {
"$then": "$res $.Data.DlcImage",
"$else": "$res $.Location.Properties.DlcImage"
}
},
"$else": "$res $.SubLocation.Properties.DlcImage"
}
},
"$else": "$.DlcImage"
}
},
"$set CreatedInMission": "$loc $formatstring UI_{$.Contract.Metadata.Location}_TITLE",
"$set CreatedInLocation": "$loc $formatstring UI_{$.Contract.Metadata.Location}_CITY",
"$in": {
"showcreatedin": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": true
},
{
"case": "usercreated",
"return": true
},
{
"default": false
}
]
},
"episode": "$.DlcName",
"location": {
"$loc": {
"key": "UI_DIALOG_CONTRACT_SEARCH_CREATED_IN",
"data": [
"$formatstring {$.CreatedInMission}, {$.CreatedInLocation}"
]
}
},
"description": {
"$if $isnull $.DescriptionExpanded": {
"$then": {
"$loc": {
"key": "$.Description",
"data": [
"$.DlcName"
]
}
},
"$else": "$.DescriptionExpanded"
}
},
"image": "$.DlcImage"
}
}
}
}
],
"userresolution": {
"$if": {
"$condition": {
"$and": [
"$not $($isnull $.Contract)",
{
"$equal": [
"usercreated",
"$.Contract.Metadata.Type"
]
}
]
},
"$then": {
"informationtarget": "contract.creator",
"profileid": "$.Contract.Metadata.CreatorUserId"
}
}
}
}
}
}
},
"onbutton": [
{
"$if $not $arg _isonline": {
"$then": {
"open-package-store": {
"packageid": "$.packageid",
"skipdialog": true
}
},
"$else": {
"show-store-item-detail": {
"itemId": {
"$setup": {
"$set LocationId": {
"$if $isnull $.SubLocation": {
"$then": {
"$if $isnull $.Location": {
"$then": {
"$if $not $($isnull $.Contract)": {
"$then": "$.Contract.Metadata.Location",
"$else": null
}
},
"$else": "$.Location.Id"
}
},
"$else": "$.SubLocation.Id"
}
},
"$in": {
"$if $isnull $.LocationId": {
"$then": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "236870"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA06508",
"return": "HITMANCOMPLETE01"
},
{
"case": "CUSA06535",
"return": "HITMANCOMPLETE01"
},
{
"case": "CUSA07680",
"return": "HITMANCOMPLETE01"
},
{
"default": "FULLEXPERIENCE00"
}
]
}
},
{
"case": "durango",
"return": "5c49c5fd-2c07-4840-8d24-1188318dc50a"
}
]
},
"$else": {
"$switch $.LocationId": [
{
"case": "LOCATION_PARENT_ICA_FACILITY",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "236870"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"default": "HITMANGAME000001"
}
]
}
},
{
"case": "durango",
"return": "7b51fef8-8cdc-456b-8170-285e7388815b"
}
]
}
},
{
"case": "LOCATION_ICA_FACILITY",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "236870"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"default": "HITMANGAME000001"
}
]
}
},
{
"case": "durango",
"return": "7b51fef8-8cdc-456b-8170-285e7388815b"
}
]
}
},
{
"case": "LOCATION_PARENT_PARIS",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "439870"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000001"
},
{
"default": "000000000000DLC0"
}
]
}
},
{
"case": "durango",
"return": "ddbfb905-1db6-4f8d-a195-f4c618090158"
}
]
}
},
{
"case": "LOCATION_PARIS",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "439870"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000001"
},
{
"default": "000000000000DLC0"
}
]
}
},
{
"case": "durango",
"return": "ddbfb905-1db6-4f8d-a195-f4c618090158"
}
]
}
},
{
"case": "LOCATION_PARENT_COASTALTOWN",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "439890"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000002"
},
{
"default": "000000000000DLC1"
}
]
}
},
{
"case": "durango",
"return": "7259af16-3c9b-4669-bcd9-1a5e3420e82e"
}
]
}
},
{
"case": "LOCATION_COASTALTOWN",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "439890"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000002"
},
{
"default": "000000000000DLC1"
}
]
}
},
{
"case": "durango",
"return": "7259af16-3c9b-4669-bcd9-1a5e3420e82e"
}
]
}
},
{
"case": "LOCATION_COASTALTOWN_NIGHT",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440940"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000004"
},
{
"default": "000000000000DLC3"
}
]
}
},
{
"case": "durango",
"return": "69bb2429-7101-482e-a7d8-c21d9bd7b9aa"
}
]
}
},
{
"case": "LOCATION_COASTALTOWN_MOVIESET",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440940"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000004"
},
{
"default": "000000000000DLC3"
}
]
}
},
{
"case": "durango",
"return": "69bb2429-7101-482e-a7d8-c21d9bd7b9aa"
}
]
}
},
{
"case": "LOCATION_COASTALTOWN_EBOLA",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "439890"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000002"
},
{
"default": "000000000000DLC1"
}
]
}
},
{
"case": "durango",
"return": "7259af16-3c9b-4669-bcd9-1a5e3420e82e"
}
]
}
},
{
"case": "LOCATION_PARENT_MARRAKECH",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440930"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000003"
},
{
"default": "000000000000DLC2"
}
]
}
},
{
"case": "durango",
"return": "4ab5a553-0620-427c-8dc3-792ff3edfa93"
}
]
}
},
{
"case": "LOCATION_MARRAKECH",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440930"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000003"
},
{
"default": "000000000000DLC2"
}
]
}
},
{
"case": "durango",
"return": "4ab5a553-0620-427c-8dc3-792ff3edfa93"
}
]
}
},
{
"case": "LOCATION_MARRAKECH_NIGHT",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440940"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000004"
},
{
"default": "000000000000DLC3"
}
]
}
},
{
"case": "durango",
"return": "69bb2429-7101-482e-a7d8-c21d9bd7b9aa"
}
]
}
},
{
"case": "LOCATION_PARENT_BANGKOK",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440960"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000005"
},
{
"default": "000000000000DLC4"
}
]
}
},
{
"case": "durango",
"return": "af20b77b-2abd-4d14-8d46-49a3cefc2f24"
}
]
}
},
{
"case": "LOCATION_BANGKOK",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440960"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000005"
},
{
"default": "000000000000DLC4"
}
]
}
},
{
"case": "durango",
"return": "af20b77b-2abd-4d14-8d46-49a3cefc2f24"
}
]
}
},
{
"case": "LOCATION_BANGKOK_ZIKA",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440960"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000005"
},
{
"default": "000000000000DLC4"
}
]
}
},
{
"case": "durango",
"return": "af20b77b-2abd-4d14-8d46-49a3cefc2f24"
}
]
}
},
{
"case": "LOCATION_PARENT_COLORADO",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440961"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000006"
},
{
"default": "000000000000DLC5"
}
]
}
},
{
"case": "durango",
"return": "788565e6-8c1f-4715-ab42-591d0ec7f400"
}
]
}
},
{
"case": "LOCATION_COLORADO",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440961"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000006"
},
{
"default": "000000000000DLC5"
}
]
}
},
{
"case": "durango",
"return": "788565e6-8c1f-4715-ab42-591d0ec7f400"
}
]
}
},
{
"case": "LOCATION_COLORADO_RABIES",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440961"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000006"
},
{
"default": "000000000000DLC5"
}
]
}
},
{
"case": "durango",
"return": "788565e6-8c1f-4715-ab42-591d0ec7f400"
}
]
}
},
{
"case": "LOCATION_PARENT_HOKKAIDO",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440962"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000007"
},
{
"default": "000000000000DLC6"
}
]
}
},
{
"case": "durango",
"return": "f897e25f-7661-40db-a854-272f5858b1cd"
}
]
}
},
{
"case": "LOCATION_HOKKAIDO",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440962"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000007"
},
{
"default": "000000000000DLC6"
}
]
}
},
{
"case": "durango",
"return": "f897e25f-7661-40db-a854-272f5858b1cd"
}
]
}
},
{
"case": "LOCATION_HOKKAIDO_FLU",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440962"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000007"
},
{
"default": "000000000000DLC6"
}
]
}
},
{
"case": "durango",
"return": "f897e25f-7661-40db-a854-272f5858b1cd"
}
]
}
},
{
"default": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "236870"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA06508",
"return": "HITMANCOMPLETE01"
},
{
"case": "CUSA06535",
"return": "HITMANCOMPLETE01"
},
{
"case": "CUSA07680",
"return": "HITMANCOMPLETE01"
},
{
"default": "FULLEXPERIENCE00"
}
]
}
},
{
"case": "durango",
"return": "5c49c5fd-2c07-4840-8d24-1188318dc50a"
}
]
}
}
]
}
}
}
}
}
}
}
}
}
]
}
}
}
}
}
},
"on-content-not-installed": {
"_comment": "DLC owned but not installed",
"alter-actions": {
"path": "accept",
"value": {
"$if": {
"$condition": {
"$if": {
"$condition": {
"$and": [
{
"$if": {
"$condition": {
"$areresourcesinstalled": [
"[assembly:/_pro/scenes/missions/thefacility/_scene_polarbear_005.entity].entitytemplate"
]
},
"$then": false,
"$else": true
}
},
{
"$if": {
"$condition": {
"$areaudiopacksinstalled": [
"jp"
]
},
"$then": true,
"$else": false
}
}
]
},
"$then": true,
"$else": false
}
},
"$then": {
"trigger-action": {
"name": "on-chunk1-missing"
}
},
"$else": {
"show-modal": {
"config": {
"type": "online",
"view": "menu3.modal.ModalDialogGeneric",
"buttons": [
{
"label": {
"$setup": {
"$set Store": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "UI_MENU_GO_TO_STORE"
},
{
"case": "orbis",
"return": "UI_MENU_GO_TO_STORE_PSN"
},
{
"case": "durango",
"return": "UI_MENU_GO_TO_STORE_XBOX"
}
]
},
"$in": "$formatstring {$loc UI_MENU_PAGE_FEATURED_GOTO_HEADER} {$loc $.Store}"
}
},
"icon": "arrowright"
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"$setup": {
"$set Title": "UI_DIALOG_CONTRACT_SEARCH_DLC_NOT_INSTALLED_TITLE",
"_comment": "using the NOT_OWNED string here as well is intentional",
"$set Description": "UI_DIALOG_CONTRACT_SEARCH_DLC_NOT_INSTALLED_DESCRIPTION",
"$in": {
"title": "$loc $.Title",
"_comment": "HACK: use typeoverride to make the buttons work",
"typeoverride": "online",
"frameheightmax": 850,
"information": [
{
"$if $not $($isnull $.Contract)": {
"$then": {
"contract": {
"type": "$.Contract.Metadata.Type",
"name": {
"$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"
}
]
},
"creator": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": "$loc UI_CATEGORY_MESSAGE_CENTER_COMMUNITY"
},
{
"default": "$($user $.Contract.Metadata.CreatorUserId).name"
}
]
},
"id": "$formatpublicid $.Contract.Metadata.PublicId",
"creationdate": "$.Contract.Metadata.CreationTimestamp",
"description": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": {
"$if $stringvalid $loc $.Contract.Metadata.Description": {
"$then": "$loc $.Contract.Metadata.Description",
"$else": "$.Contract.Metadata.Description"
}
}
},
{
"case": "creation",
"return": "$loc UI_MENU_PAGE_CREATE_CONTRACT_NO_ACCESS_DESCRIPTION"
},
{
"default": "$loc $.Contract.Metadata.Description"
}
]
},
"image": {
"$if $.Contract.Metadata.TileImage": {
"$then": {
"$if $gt ($arraysize $.Contract.Metadata.TileImage,0)": {
"$then": {
"$setup": {
"$set GameMode": {
"$if $isnull $.GameMode": {
"$then": {
"$if $isnull $arg GameMode": {
"$then": "singleplayer",
"$else": "$arg GameMode"
}
},
"$else": "$.GameMode"
}
},
"$set TileImageOrdered": {
"$orderby": {
"from": "$expand $.Contract.Metadata.TileImage",
"by": "Mode",
"order": [
"$.GameMode"
]
}
},
"$in": "$res $.TileImageOrdered[0].Image"
}
},
"$else": "$res $expand $.Contract.Metadata.TileImage"
}
},
"$else": "$res images/ui/tiles/defaultmenutilesmall.jpg"
}
},
"icon": {
"$switch $.Contract.Metadata.Type": [
{
"case": "orbis",
"return": "ica"
},
{
"case": "campaign",
"return": "mission"
},
{
"case": "sniper",
"return": "sniperrifle"
},
{
"default": "$.Contract.Metadata.Type"
}
]
},
"locked": true
}
}
}
},
{
"dlcmissing": {
"$setup": {
"$set DlcName": {
"$if $isnull $.DlcName": {
"$then": {
"$if $isnull $.SubLocation": {
"$then": {
"$if $isnull $.Location": {
"$then": "$loc $.Data.DlcName",
"$else": "$loc $.Location.Properties.DlcName"
}
},
"$else": "$loc $.SubLocation.Properties.DlcName"
}
},
"$else": "$.DlcName"
}
},
"$set DlcImage": {
"$if $isnull $.DlcImage": {
"$then": {
"$if $isnull $.SubLocation": {
"$then": {
"$if $isnull $.Location": {
"$then": "$res $.Data.DlcImage",
"$else": "$res $.Location.Properties.DlcImage"
}
},
"$else": "$res $.SubLocation.Properties.DlcImage"
}
},
"$else": "$.DlcImage"
}
},
"$set CreatedInMission": "$loc $formatstring UI_{$.Contract.Metadata.Location}_TITLE",
"$set CreatedInLocation": "$loc $formatstring UI_{$.Contract.Metadata.Location}_CITY",
"$in": {
"showcreatedin": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": true
},
{
"case": "usercreated",
"return": true
},
{
"default": false
}
]
},
"episode": "$.DlcName",
"location": {
"$loc": {
"key": "UI_DIALOG_CONTRACT_SEARCH_CREATED_IN",
"data": [
"$formatstring {$.CreatedInMission}, {$.CreatedInLocation}"
]
}
},
"description": {
"$if $isnull $.DescriptionExpanded": {
"$then": {
"$loc": {
"key": "$.Description",
"data": [
"$.DlcName"
]
}
},
"$else": "$.DescriptionExpanded"
}
},
"image": "$.DlcImage"
}
}
}
}
],
"userresolution": {
"$if": {
"$condition": {
"$and": [
"$not $($isnull $.Contract)",
{
"$equal": [
"usercreated",
"$.Contract.Metadata.Type"
]
}
]
},
"$then": {
"informationtarget": "contract.creator",
"profileid": "$.Contract.Metadata.CreatorUserId"
}
}
}
}
}
}
},
"onbutton": [
{
"$if $not $arg _isonline": {
"$then": {
"open-package-store": {
"packageid": "$.packageid",
"skipdialog": true
}
},
"$else": {
"show-store-item-detail": {
"itemId": {
"$setup": {
"$set LocationId": {
"$if $isnull $.SubLocation": {
"$then": {
"$if $isnull $.Location": {
"$then": {
"$if $not $($isnull $.Contract)": {
"$then": "$.Contract.Metadata.Location",
"$else": null
}
},
"$else": "$.Location.Id"
}
},
"$else": "$.SubLocation.Id"
}
},
"$in": {
"$if $isnull $.LocationId": {
"$then": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "236870"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA06508",
"return": "HITMANCOMPLETE01"
},
{
"case": "CUSA06535",
"return": "HITMANCOMPLETE01"
},
{
"case": "CUSA07680",
"return": "HITMANCOMPLETE01"
},
{
"default": "FULLEXPERIENCE00"
}
]
}
},
{
"case": "durango",
"return": "5c49c5fd-2c07-4840-8d24-1188318dc50a"
}
]
},
"$else": {
"$switch $.LocationId": [
{
"case": "LOCATION_PARENT_ICA_FACILITY",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "236870"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"default": "HITMANGAME000001"
}
]
}
},
{
"case": "durango",
"return": "7b51fef8-8cdc-456b-8170-285e7388815b"
}
]
}
},
{
"case": "LOCATION_ICA_FACILITY",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "236870"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"default": "HITMANGAME000001"
}
]
}
},
{
"case": "durango",
"return": "7b51fef8-8cdc-456b-8170-285e7388815b"
}
]
}
},
{
"case": "LOCATION_PARENT_PARIS",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "439870"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000001"
},
{
"default": "000000000000DLC0"
}
]
}
},
{
"case": "durango",
"return": "ddbfb905-1db6-4f8d-a195-f4c618090158"
}
]
}
},
{
"case": "LOCATION_PARIS",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "439870"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000001"
},
{
"default": "000000000000DLC0"
}
]
}
},
{
"case": "durango",
"return": "ddbfb905-1db6-4f8d-a195-f4c618090158"
}
]
}
},
{
"case": "LOCATION_PARENT_COASTALTOWN",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "439890"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000002"
},
{
"default": "000000000000DLC1"
}
]
}
},
{
"case": "durango",
"return": "7259af16-3c9b-4669-bcd9-1a5e3420e82e"
}
]
}
},
{
"case": "LOCATION_COASTALTOWN",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "439890"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000002"
},
{
"default": "000000000000DLC1"
}
]
}
},
{
"case": "durango",
"return": "7259af16-3c9b-4669-bcd9-1a5e3420e82e"
}
]
}
},
{
"case": "LOCATION_COASTALTOWN_NIGHT",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440940"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000004"
},
{
"default": "000000000000DLC3"
}
]
}
},
{
"case": "durango",
"return": "69bb2429-7101-482e-a7d8-c21d9bd7b9aa"
}
]
}
},
{
"case": "LOCATION_COASTALTOWN_MOVIESET",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440940"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000004"
},
{
"default": "000000000000DLC3"
}
]
}
},
{
"case": "durango",
"return": "69bb2429-7101-482e-a7d8-c21d9bd7b9aa"
}
]
}
},
{
"case": "LOCATION_COASTALTOWN_EBOLA",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "439890"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000002"
},
{
"default": "000000000000DLC1"
}
]
}
},
{
"case": "durango",
"return": "7259af16-3c9b-4669-bcd9-1a5e3420e82e"
}
]
}
},
{
"case": "LOCATION_PARENT_MARRAKECH",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440930"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000003"
},
{
"default": "000000000000DLC2"
}
]
}
},
{
"case": "durango",
"return": "4ab5a553-0620-427c-8dc3-792ff3edfa93"
}
]
}
},
{
"case": "LOCATION_MARRAKECH",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440930"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000003"
},
{
"default": "000000000000DLC2"
}
]
}
},
{
"case": "durango",
"return": "4ab5a553-0620-427c-8dc3-792ff3edfa93"
}
]
}
},
{
"case": "LOCATION_MARRAKECH_NIGHT",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440940"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000004"
},
{
"default": "000000000000DLC3"
}
]
}
},
{
"case": "durango",
"return": "69bb2429-7101-482e-a7d8-c21d9bd7b9aa"
}
]
}
},
{
"case": "LOCATION_PARENT_BANGKOK",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440960"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000005"
},
{
"default": "000000000000DLC4"
}
]
}
},
{
"case": "durango",
"return": "af20b77b-2abd-4d14-8d46-49a3cefc2f24"
}
]
}
},
{
"case": "LOCATION_BANGKOK",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440960"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000005"
},
{
"default": "000000000000DLC4"
}
]
}
},
{
"case": "durango",
"return": "af20b77b-2abd-4d14-8d46-49a3cefc2f24"
}
]
}
},
{
"case": "LOCATION_BANGKOK_ZIKA",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440960"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000005"
},
{
"default": "000000000000DLC4"
}
]
}
},
{
"case": "durango",
"return": "af20b77b-2abd-4d14-8d46-49a3cefc2f24"
}
]
}
},
{
"case": "LOCATION_PARENT_COLORADO",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440961"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000006"
},
{
"default": "000000000000DLC5"
}
]
}
},
{
"case": "durango",
"return": "788565e6-8c1f-4715-ab42-591d0ec7f400"
}
]
}
},
{
"case": "LOCATION_COLORADO",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440961"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000006"
},
{
"default": "000000000000DLC5"
}
]
}
},
{
"case": "durango",
"return": "788565e6-8c1f-4715-ab42-591d0ec7f400"
}
]
}
},
{
"case": "LOCATION_COLORADO_RABIES",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440961"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000006"
},
{
"default": "000000000000DLC5"
}
]
}
},
{
"case": "durango",
"return": "788565e6-8c1f-4715-ab42-591d0ec7f400"
}
]
}
},
{
"case": "LOCATION_PARENT_HOKKAIDO",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440962"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000007"
},
{
"default": "000000000000DLC6"
}
]
}
},
{
"case": "durango",
"return": "f897e25f-7661-40db-a854-272f5858b1cd"
}
]
}
},
{
"case": "LOCATION_HOKKAIDO",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440962"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000007"
},
{
"default": "000000000000DLC6"
}
]
}
},
{
"case": "durango",
"return": "f897e25f-7661-40db-a854-272f5858b1cd"
}
]
}
},
{
"case": "LOCATION_HOKKAIDO_FLU",
"return": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "440962"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA02369",
"return": "DLC0000000000007"
},
{
"default": "000000000000DLC6"
}
]
}
},
{
"case": "durango",
"return": "f897e25f-7661-40db-a854-272f5858b1cd"
}
]
}
},
{
"default": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "236870"
},
{
"case": "orbis",
"return": {
"$switch $arg _storeregion": [
{
"case": "CUSA06508",
"return": "HITMANCOMPLETE01"
},
{
"case": "CUSA06535",
"return": "HITMANCOMPLETE01"
},
{
"case": "CUSA07680",
"return": "HITMANCOMPLETE01"
},
{
"default": "FULLEXPERIENCE00"
}
]
}
},
{
"case": "durango",
"return": "5c49c5fd-2c07-4840-8d24-1188318dc50a"
}
]
}
}
]
}
}
}
}
}
}
}
}
}
]
}
}
}
}
}
},
"on-content-downloading": {
"_comment": "DLC owned and currently downloading",
"alter-actions": {
"path": "accept",
"value": {
"$if": {
"$condition": {
"$if": {
"$condition": {
"$and": [
{
"$if": {
"$condition": {
"$areresourcesinstalled": [
"[assembly:/_pro/scenes/missions/thefacility/_scene_polarbear_005.entity].entitytemplate"
]
},
"$then": false,
"$else": true
}
},
{
"$if": {
"$condition": {
"$areaudiopacksinstalled": [
"jp"
]
},
"$then": true,
"$else": false
}
}
]
},
"$then": true,
"$else": false
}
},
"$then": {
"trigger-action": {
"name": "on-chunk1-missing"
}
},
"$else": {
"show-modal": {
"config": {
"type": "online",
"view": "menu3.modal.ModalDialogGeneric",
"buttons": [
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"$setup": {
"$set Title": "UI_DIALOG_CONTRACT_SEARCH_DLC_DOWNLOADING_TITLE",
"$set Description": "UI_DIALOG_CONTRACT_SEARCH_DLC_DOWNLOADING_DESCRIPTION",
"$in": {
"title": "$loc $.Title",
"_comment": "HACK: use typeoverride to make the buttons work",
"typeoverride": "online",
"frameheightmax": 850,
"information": [
{
"$if $not $($isnull $.Contract)": {
"$then": {
"contract": {
"type": "$.Contract.Metadata.Type",
"name": {
"$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"
}
]
},
"creator": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": "$loc UI_CATEGORY_MESSAGE_CENTER_COMMUNITY"
},
{
"default": "$($user $.Contract.Metadata.CreatorUserId).name"
}
]
},
"id": "$formatpublicid $.Contract.Metadata.PublicId",
"creationdate": "$.Contract.Metadata.CreationTimestamp",
"description": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": {
"$if $stringvalid $loc $.Contract.Metadata.Description": {
"$then": "$loc $.Contract.Metadata.Description",
"$else": "$.Contract.Metadata.Description"
}
}
},
{
"case": "creation",
"return": "$loc UI_MENU_PAGE_CREATE_CONTRACT_NO_ACCESS_DESCRIPTION"
},
{
"default": "$loc $.Contract.Metadata.Description"
}
]
},
"image": {
"$if $.Contract.Metadata.TileImage": {
"$then": {
"$if $gt ($arraysize $.Contract.Metadata.TileImage,0)": {
"$then": {
"$setup": {
"$set GameMode": {
"$if $isnull $.GameMode": {
"$then": {
"$if $isnull $arg GameMode": {
"$then": "singleplayer",
"$else": "$arg GameMode"
}
},
"$else": "$.GameMode"
}
},
"$set TileImageOrdered": {
"$orderby": {
"from": "$expand $.Contract.Metadata.TileImage",
"by": "Mode",
"order": [
"$.GameMode"
]
}
},
"$in": "$res $.TileImageOrdered[0].Image"
}
},
"$else": "$res $expand $.Contract.Metadata.TileImage"
}
},
"$else": "$res images/ui/tiles/defaultmenutilesmall.jpg"
}
},
"icon": {
"$switch $.Contract.Metadata.Type": [
{
"case": "orbis",
"return": "ica"
},
{
"case": "campaign",
"return": "mission"
},
{
"case": "sniper",
"return": "sniperrifle"
},
{
"default": "$.Contract.Metadata.Type"
}
]
},
"locked": true
}
}
}
},
{
"dlcmissing": {
"$setup": {
"$set DlcName": {
"$if $isnull $.DlcName": {
"$then": {
"$if $isnull $.SubLocation": {
"$then": {
"$if $isnull $.Location": {
"$then": "$loc $.Data.DlcName",
"$else": "$loc $.Location.Properties.DlcName"
}
},
"$else": "$loc $.SubLocation.Properties.DlcName"
}
},
"$else": "$.DlcName"
}
},
"$set DlcImage": {
"$if $isnull $.DlcImage": {
"$then": {
"$if $isnull $.SubLocation": {
"$then": {
"$if $isnull $.Location": {
"$then": "$res $.Data.DlcImage",
"$else": "$res $.Location.Properties.DlcImage"
}
},
"$else": "$res $.SubLocation.Properties.DlcImage"
}
},
"$else": "$.DlcImage"
}
},
"$set CreatedInMission": "$loc $formatstring UI_{$.Contract.Metadata.Location}_TITLE",
"$set CreatedInLocation": "$loc $formatstring UI_{$.Contract.Metadata.Location}_CITY",
"$in": {
"showcreatedin": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": true
},
{
"case": "usercreated",
"return": true
},
{
"default": false
}
]
},
"episode": "$.DlcName",
"location": {
"$loc": {
"key": "UI_DIALOG_CONTRACT_SEARCH_CREATED_IN",
"data": [
"$formatstring {$.CreatedInMission}, {$.CreatedInLocation}"
]
}
},
"description": {
"$if $isnull $.DescriptionExpanded": {
"$then": {
"$loc": {
"key": "$.Description",
"data": [
"$.DlcName"
]
}
},
"$else": "$.DescriptionExpanded"
}
},
"image": "$.DlcImage"
}
}
}
}
],
"userresolution": {
"$if": {
"$condition": {
"$and": [
"$not $($isnull $.Contract)",
{
"$equal": [
"usercreated",
"$.Contract.Metadata.Type"
]
}
]
},
"$then": {
"informationtarget": "contract.creator",
"profileid": "$.Contract.Metadata.CreatorUserId"
}
}
}
}
}
}
}
}
}
}
}
}
},
"on-content-update-required": {
"_comment": "DLC owned and update is required",
"alter-actions": {
"path": "accept",
"value": {
"$if": {
"$condition": {
"$if": {
"$condition": {
"$and": [
{
"$if": {
"$condition": {
"$areresourcesinstalled": [
"[assembly:/_pro/scenes/missions/thefacility/_scene_polarbear_005.entity].entitytemplate"
]
},
"$then": false,
"$else": true
}
},
{
"$if": {
"$condition": {
"$areaudiopacksinstalled": [
"jp"
]
},
"$then": true,
"$else": false
}
}
]
},
"$then": true,
"$else": false
}
},
"$then": {
"trigger-action": {
"name": "on-chunk1-missing"
}
},
"$else": {
"show-modal": {
"config": {
"type": "online",
"view": "menu3.modal.ModalDialogGeneric",
"buttons": [
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"$setup": {
"$set Title": "UI_DIALOG_DLC_DOWNLOAD",
"$set Description": "UI_DIALOG_CONTENT_REQUIRES_UPDATE_DESCRIPTION",
"$in": {
"title": "$loc $.Title",
"_comment": "HACK: use typeoverride to make the buttons work",
"typeoverride": "online",
"frameheightmax": 850,
"information": [
{
"$if $not $($isnull $.Contract)": {
"$then": {
"contract": {
"type": "$.Contract.Metadata.Type",
"name": {
"$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"
}
]
},
"creator": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": "$loc UI_CATEGORY_MESSAGE_CENTER_COMMUNITY"
},
{
"default": "$($user $.Contract.Metadata.CreatorUserId).name"
}
]
},
"id": "$formatpublicid $.Contract.Metadata.PublicId",
"creationdate": "$.Contract.Metadata.CreationTimestamp",
"description": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": {
"$if $stringvalid $loc $.Contract.Metadata.Description": {
"$then": "$loc $.Contract.Metadata.Description",
"$else": "$.Contract.Metadata.Description"
}
}
},
{
"case": "creation",
"return": "$loc UI_MENU_PAGE_CREATE_CONTRACT_NO_ACCESS_DESCRIPTION"
},
{
"default": "$loc $.Contract.Metadata.Description"
}
]
},
"image": {
"$if $.Contract.Metadata.TileImage": {
"$then": {
"$if $gt ($arraysize $.Contract.Metadata.TileImage,0)": {
"$then": {
"$setup": {
"$set GameMode": {
"$if $isnull $.GameMode": {
"$then": {
"$if $isnull $arg GameMode": {
"$then": "singleplayer",
"$else": "$arg GameMode"
}
},
"$else": "$.GameMode"
}
},
"$set TileImageOrdered": {
"$orderby": {
"from": "$expand $.Contract.Metadata.TileImage",
"by": "Mode",
"order": [
"$.GameMode"
]
}
},
"$in": "$res $.TileImageOrdered[0].Image"
}
},
"$else": "$res $expand $.Contract.Metadata.TileImage"
}
},
"$else": "$res images/ui/tiles/defaultmenutilesmall.jpg"
}
},
"icon": {
"$switch $.Contract.Metadata.Type": [
{
"case": "orbis",
"return": "ica"
},
{
"case": "campaign",
"return": "mission"
},
{
"case": "sniper",
"return": "sniperrifle"
},
{
"default": "$.Contract.Metadata.Type"
}
]
},
"locked": true
}
}
}
},
{
"dlcmissing": {
"$setup": {
"$set DlcName": {
"$if $isnull $.DlcName": {
"$then": {
"$if $isnull $.SubLocation": {
"$then": {
"$if $isnull $.Location": {
"$then": "$loc $.Data.DlcName",
"$else": "$loc $.Location.Properties.DlcName"
}
},
"$else": "$loc $.SubLocation.Properties.DlcName"
}
},
"$else": "$.DlcName"
}
},
"$set DlcImage": {
"$if $isnull $.DlcImage": {
"$then": {
"$if $isnull $.SubLocation": {
"$then": {
"$if $isnull $.Location": {
"$then": "$res $.Data.DlcImage",
"$else": "$res $.Location.Properties.DlcImage"
}
},
"$else": "$res $.SubLocation.Properties.DlcImage"
}
},
"$else": "$.DlcImage"
}
},
"$set CreatedInMission": "$loc $formatstring UI_{$.Contract.Metadata.Location}_TITLE",
"$set CreatedInLocation": "$loc $formatstring UI_{$.Contract.Metadata.Location}_CITY",
"$in": {
"showcreatedin": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": true
},
{
"case": "usercreated",
"return": true
},
{
"default": false
}
]
},
"episode": "$.DlcName",
"location": {
"$loc": {
"key": "UI_DIALOG_CONTRACT_SEARCH_CREATED_IN",
"data": [
"$formatstring {$.CreatedInMission}, {$.CreatedInLocation}"
]
}
},
"description": {
"$if $isnull $.DescriptionExpanded": {
"$then": {
"$loc": {
"key": "$.Description",
"data": [
"$.DlcName"
]
}
},
"$else": "$.DescriptionExpanded"
}
},
"image": "$.DlcImage"
}
}
}
}
],
"userresolution": {
"$if": {
"$condition": {
"$and": [
"$not $($isnull $.Contract)",
{
"$equal": [
"usercreated",
"$.Contract.Metadata.Type"
]
}
]
},
"$then": {
"informationtarget": "contract.creator",
"profileid": "$.Contract.Metadata.CreatorUserId"
}
}
}
}
}
}
}
}
}
}
}
}
},
"on-content-installing": {
"_comment": "DLC owned and currently installing",
"alter-actions": {
"path": "accept",
"value": {
"$if": {
"$condition": {
"$if": {
"$condition": {
"$and": [
{
"$if": {
"$condition": {
"$areresourcesinstalled": [
"[assembly:/_pro/scenes/missions/thefacility/_scene_polarbear_005.entity].entitytemplate"
]
},
"$then": false,
"$else": true
}
},
{
"$if": {
"$condition": {
"$areaudiopacksinstalled": [
"jp"
]
},
"$then": true,
"$else": false
}
}
]
},
"$then": true,
"$else": false
}
},
"$then": {
"trigger-action": {
"name": "on-chunk1-missing"
}
},
"$else": {
"show-modal": {
"config": {
"type": "online",
"view": "menu3.modal.ModalDialogGeneric",
"buttons": [
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"$setup": {
"$set Title": "UI_DIALOG_CONTRACT_INSTALLING_TITLE",
"$set Description": "UI_DIALOG_CONTRACT_INSTALLING_DESCRIPTION",
"$in": {
"title": "$loc $.Title",
"_comment": "HACK: use typeoverride to make the buttons work",
"typeoverride": "online",
"frameheightmax": 850,
"information": [
{
"$if $not $($isnull $.Contract)": {
"$then": {
"contract": {
"type": "$.Contract.Metadata.Type",
"name": {
"$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"
}
]
},
"creator": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": "$loc UI_CATEGORY_MESSAGE_CENTER_COMMUNITY"
},
{
"default": "$($user $.Contract.Metadata.CreatorUserId).name"
}
]
},
"id": "$formatpublicid $.Contract.Metadata.PublicId",
"creationdate": "$.Contract.Metadata.CreationTimestamp",
"description": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": {
"$if $stringvalid $loc $.Contract.Metadata.Description": {
"$then": "$loc $.Contract.Metadata.Description",
"$else": "$.Contract.Metadata.Description"
}
}
},
{
"case": "creation",
"return": "$loc UI_MENU_PAGE_CREATE_CONTRACT_NO_ACCESS_DESCRIPTION"
},
{
"default": "$loc $.Contract.Metadata.Description"
}
]
},
"image": {
"$if $.Contract.Metadata.TileImage": {
"$then": {
"$if $gt ($arraysize $.Contract.Metadata.TileImage,0)": {
"$then": {
"$setup": {
"$set GameMode": {
"$if $isnull $.GameMode": {
"$then": {
"$if $isnull $arg GameMode": {
"$then": "singleplayer",
"$else": "$arg GameMode"
}
},
"$else": "$.GameMode"
}
},
"$set TileImageOrdered": {
"$orderby": {
"from": "$expand $.Contract.Metadata.TileImage",
"by": "Mode",
"order": [
"$.GameMode"
]
}
},
"$in": "$res $.TileImageOrdered[0].Image"
}
},
"$else": "$res $expand $.Contract.Metadata.TileImage"
}
},
"$else": "$res images/ui/tiles/defaultmenutilesmall.jpg"
}
},
"icon": {
"$switch $.Contract.Metadata.Type": [
{
"case": "orbis",
"return": "ica"
},
{
"case": "campaign",
"return": "mission"
},
{
"case": "sniper",
"return": "sniperrifle"
},
{
"default": "$.Contract.Metadata.Type"
}
]
},
"locked": true
}
}
}
},
{
"dlcmissing": {
"$setup": {
"$set DlcName": {
"$if $isnull $.DlcName": {
"$then": {
"$if $isnull $.SubLocation": {
"$then": {
"$if $isnull $.Location": {
"$then": "$loc $.Data.DlcName",
"$else": "$loc $.Location.Properties.DlcName"
}
},
"$else": "$loc $.SubLocation.Properties.DlcName"
}
},
"$else": "$.DlcName"
}
},
"$set DlcImage": {
"$if $isnull $.DlcImage": {
"$then": {
"$if $isnull $.SubLocation": {
"$then": {
"$if $isnull $.Location": {
"$then": "$res $.Data.DlcImage",
"$else": "$res $.Location.Properties.DlcImage"
}
},
"$else": "$res $.SubLocation.Properties.DlcImage"
}
},
"$else": "$.DlcImage"
}
},
"$set CreatedInMission": "$loc $formatstring UI_{$.Contract.Metadata.Location}_TITLE",
"$set CreatedInLocation": "$loc $formatstring UI_{$.Contract.Metadata.Location}_CITY",
"$in": {
"showcreatedin": {
"$switch $.Contract.Metadata.Type": [
{
"case": "featured",
"return": true
},
{
"case": "usercreated",
"return": true
},
{
"default": false
}
]
},
"episode": "$.DlcName",
"location": {
"$loc": {
"key": "UI_DIALOG_CONTRACT_SEARCH_CREATED_IN",
"data": [
"$formatstring {$.CreatedInMission}, {$.CreatedInLocation}"
]
}
},
"description": {
"$if $isnull $.DescriptionExpanded": {
"$then": {
"$loc": {
"key": "$.Description",
"data": [
"$.DlcName"
]
}
},
"$else": "$.DescriptionExpanded"
}
},
"image": "$.DlcImage"
}
}
}
}
],
"userresolution": {
"$if": {
"$condition": {
"$and": [
"$not $($isnull $.Contract)",
{
"$equal": [
"usercreated",
"$.Contract.Metadata.Type"
]
}
]
},
"$then": {
"informationtarget": "contract.creator",
"profileid": "$.Contract.Metadata.CreatorUserId"
}
}
}
}
}
}
}
}
}
}
}
}
},
"on-chunk1-missing": {
"show-modal": {
"config": {
"type": "online",
"view": "menu3.modal.ModalDialogGeneric",
"buttons": [
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_CONTRACT_SEARCH_DLC_DOWNLOADING_TITLE",
"description": "$loc UI_MENU_PAGE_DATA_NOT_AVAILABLE",
"_comment": "HACK: use typeoverride to make the buttons work",
"typeoverride": "online"
}
}
}
},
"on-content-available": {
"alter-actions": {
"path": "accept",
"value": {
"node-action": {
"target": "UI_OPTION_GAME_LANG_AUDIO",
"actions": {
"set": "$.value"
}
},
"set-data-property": {
"target": "UI_OPTION_LANGUAGE_AUDIO_LOCALE_ELEMENT",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc $.label}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
}
}
}
}
}
]
}
}
}
}
}
]
}
},
"$else": null
}
},
{
"controller": "preference-item",
"id": "UI_OPTION_GRAPHICS_SUBTITLES",
"view": "menu3.basic.OptionsListElement",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCE_SUBTITLES",
"displayValue": "$formatstring [{$loc $($arg lang_subtitles).lockey}]"
},
"children": [
{
"id": "UI_OPTION_GRAPHICS_SUBTITLES_LIST",
"controller": "list",
"view": "menu3.containers.ListContainer",
"row": 1,
"col": 6.5,
"nrows": 3.75,
"ncols": 2,
"actions": {
"parentcontextpushed": {
"node-action": {
"target": "UI_OPTION_GRAPHICS_SUBTITLES_LIST",
"actions": {
"select-child-equal-to-prefitem-value": {
"data-property-name": "value",
"preference-item-id": "UI_OPTION_GRAPHICS_SUBTITLES"
}
}
}
}
},
"children": [
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_OFF",
"value": false
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GRAPHICS_SUBTITLES",
"actions": {
"set": false
}
},
"set-data-property": {
"target": "UI_OPTION_GRAPHICS_SUBTITLES",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_OFF}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
},
{
"view": "menu3.basic.OptionsListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_AID_VALUE_ON",
"value": true
},
"actions": {
"accept": {
"node-action": {
"target": "UI_OPTION_GRAPHICS_SUBTITLES",
"actions": {
"set": true
}
},
"set-data-property": {
"target": "UI_OPTION_GRAPHICS_SUBTITLES",
"property": {
"name": "displayValue",
"value": "$formatstring [{$loc UI_AID_VALUE_ON}]"
}
},
"trigger-input": {
"action": "cancel"
}
}
}
}
]
}
],
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCE_SUBTITLES",
"paragraph": "$loc UI_PREFERENCE_SUBTITLES_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"view": "menu3.basic.OptionsListElement",
"controller": "preference-item",
"id": "UI_OPTION_GRAPHICS_SUBTITLES_SIZE",
"sliderdata": "$($arg lang_subtitles_size).sliderdata",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"slider": true,
"title": "$loc UI_PREFERENCE_SUBTITLE_SIZE",
"displayValue": "$($arg lang_subtitles_size).current",
"displayValueDecimals": "0"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfoSubtitleSize",
"data": {
"title": "$loc UI_PREFERENCE_SUBTITLE_SIZE",
"paragraph": "$loc UI_PREFERENCE_SUBTITLE_SIZE_DESCRIPTION",
"customtext": "$loc UI_PREFERENCE_SUBTITLE_SIZE_EXAMPLE",
"uioptionname": "UI_OPTION_GRAPHICS_SUBTITLES_SIZE"
}
}
}
},
"on-value-changed": {
"reload-ui": {
"target": "options_info_container"
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
}
}
},
{
"view": "menu3.basic.OptionsListElement",
"id": "UI_OPTION_LANGUAGE_DEFAULT",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCES_RESTORE_DEFAULT"
},
"actions": {
"select": {
"replace-children": {
"target": "options_info_container",
"children": {
"view": "menu3.basic.OptionsInfo",
"data": {
"title": "$loc UI_PREFERENCES_RESTORE_DEFAULT",
"paragraph": "$loc UI_PREFERENCES_RESTORE_DEFAULT_DESCRIPTION"
}
}
}
},
"deselect": {
"replace-children": {
"target": "options_info_container",
"children": {}
}
},
"accept": {
"show-modal": {
"config": {
"type": "system",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_RESTORE_DEFAULTS_TITLE",
"description": {
"$loc": {
"key": "UI_DIALOG_CONFIRM_TEXT",
"data": "$loc UI_DIALOG_ACTION_RESTORE_DEFAULT"
}
}
}
},
"onbutton": [
{
"set-default": {
"setting-category": "language"
},
"push-menu-context": {
"onpageopened": [
{
"_comment": "This is to reselect the locale once applied, as we reload the page when locale changes"
},
{
"set-selected": [
{
"target": "UI_MENU_PAGE_HUB_SETTINGS"
},
{
"target": "UI_LANGUAGE_BUTTON"
}
],
"trigger-input": {
"action": "accept"
}
}
]
}
},
{
"set-selected": {}
}
]
}
}
}
}
]
}
]
}
},
{
"$if": {
"$condition": {
"$and": [
"$arg _isonline",
{
"$if $eq (0,0)": {
"$then": true
}
}
]
},
"$then": {
"view": "menu3.basic.ListElementSmall",
"id": "UI_MENU_IOIACCOUNT_HEADLINE",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_MENU_IOIACCOUNT_HEADLINE",
"icon": "ioiaccount"
},
"children": {
"$merge": [
{
"controller": "preference-item",
"id": "UI_OPTION_GAME_IOIACCOUNT_TEXT",
"selectable": false,
"pressable": false
},
{
"view": "menu3.ImageElement",
"row": 1,
"col": 4.5,
"selectable": false,
"data": {
"url": "$res images/logos/ioi_account_logo.png",
"width": 240,
"height": 225
},
"actions": {
"on-remove-child": {
"remove-privacy-modifier": {
"id": "IOIACCOUNT_DISABLE_SHARE"
}
},
"on-page-closed": {
"remove-privacy-modifier": {
"id": "IOIACCOUNT_DISABLE_SHARE"
}
}
}
},
{
"view": "menu3.TextboxElement",
"row": 2.35,
"col": 4.5,
"selectable": false,
"data": {
"text": {
"$loc": {
"key": {
"$switch $arg _platform": [
{
"case": "pc",
"return": "UI_MENU_IOIACCOUNT_DESCRIPTION_PC"
},
{
"case": "orbis",
"return": "UI_MENU_IOIACCOUNT_DESCRIPTION_PS4"
},
{
"case": "durango",
"return": "UI_MENU_IOIACCOUNT_DESCRIPTION_XBOX"
}
]
},
"data": [
"$.IOIAccountStatus.IOIAccountBaseUrl",
"$formatstring {$.IOIAccountStatus.IOIAccountBaseUrl}/privacy"
]
}
},
"size": 24,
"color": "464646",
"width": 760,
"height": 500
}
},
{
"controller": "list",
"direction": "vertical",
"id": "ioiaccount_controls_container",
"view": "menu3.containers.ScrollingListContainer",
"groupselect": true,
"data": {
"direction": "vertical",
"overflowscrolling": "1.0"
},
"loopedselection": false,
"row": 1,
"col": 2.25,
"nrows": 3,
"ncols": 2,
"children": [
{
"view": "menu3.basic.ListElementSmall",
"id": "user_email",
"pressable": true,
"selectable": false,
"data": {
"titleplaceholder": "$loc UI_MENU_IOIACCOUNT_EMAIL_BUTTON_DEFAULT",
"title": "$.IOIAccountStatus.LinkedEmail",
"icon": "ioiaccount"
},
"children": [
{
"view": "menu3.TextboxElement",
"id": "link_status",
"col": 0.03,
"data": {
"size": 24,
"width": 341,
"text": " ",
"color": "464646"
}
}
],
"actions": {
"accept": {
"show-edit-text-dialog": {
"target": "user_email",
"dataproperty": "title",
"title": "$loc UI_MENU_IOIACCOUNT_ENTER_EMAIL_HEADLINE",
"maxlength": 254,
"char-restrict": "^ ",
"multiline": false,
"dialog-type": "line",
"validation": [
{
"regEx": {
"source": "[a-zA-Z0-9]+(?:(\\.|_)[A-Za-z0-9!#$%&'*+/=?^`{|}~-]+)*@(?!([a-zA-Z0-9]*\\.[a-zA-Z0-9]*\\.[a-zA-Z0-9]*\\.))(?:[A-Za-z0-9](?:[a-zA-Z0-9-]*[A-Za-z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?",
"flags": "g"
},
"level": 1,
"message": "$loc UI_MENU_IOIACCOUNT_INVALID_EMAIL_MESSAGE"
}
],
"data": {
"selectable": true,
"editable": true
}
}
}
}
},
{
"view": "menu3.basic.ListElementSmall",
"id": "submit_btn",
"pressable": true,
"selectable": false,
"data": {
"title": "$loc UI_MENU_IOIACCOUNT_SUBMIT_ACTION",
"icon": "save"
},
"actions": {
"accept": {
"show-modal": {
"config": {
"type": "system",
"buttons": [
"$loc UI_DIALOG_OK"
],
"data": {
"title": "$loc UI_DIALOG_CONFIRM_TITLE",
"description": "$loc UI_MENU_IOIACCOUNT_SUBMIT_MODAL"
}
}
},
"submit-ioiaccount-email": {
"$setup": {
"$set ForceUpdate": false,
"$in": {
"force-update": "$.ForceUpdate",
"root-container": "ioiaccount_controls_container",
"disable-on-linked": [
"user_email",
"submit_btn"
],
"e-mail-target": "user_email",
"e-mail-dataproperty": "title",
"link-status-target": "link_status",
"link-status-dataproperty": "text",
"link-status-no-email-msg": "$loc UI_MENU_IOIACCOUNT_NO_EMAIL",
"link-status-success-msg": "$loc UI_MENU_IOIACCOUNT_STATUS_SUCCESS",
"link-status-pending-msg": "$loc UI_MENU_IOIACCOUNT_STATUS_PENDING",
"link-status-failure-msg": {
"default": "$loc UI_MENU_IOIACCOUNT_STATUS_FAILURE",
"email-invalid": "$loc UI_MENU_IOIACCOUNT_STATUS_FAILURE_EMAIL_INVALID",
"email-registered": "$loc UI_MENU_IOIACCOUNT_STATUS_FAILURE_EMAIL_REGISTERED",
"sem-unavailable": "$loc UI_MENU_IOIACCOUNT_STATUS_FAILURE_IOIACCOUNT_UNAVAILABLE",
"unknown": "$loc UI_MENU_IOIACCOUNT_STATUS_FAILURE_UNKNOWN"
}
}
}
}
}
}
},
{
"view": "menu3.basic.ListElementSmall",
"data": {
"title": "$loc UI_MENU_IOIACCOUNT_REFRESH_ACTION",
"icon": "reset"
},
"actions": {
"accept": {
"refresh-ioiaccount-status": {
"$setup": {
"$set ForceUpdate": true,
"$in": {
"force-update": "$.ForceUpdate",
"root-container": "ioiaccount_controls_container",
"disable-on-linked": [
"user_email",
"submit_btn"
],
"e-mail-target": "user_email",
"e-mail-dataproperty": "title",
"link-status-target": "link_status",
"link-status-dataproperty": "text",
"link-status-no-email-msg": "$loc UI_MENU_IOIACCOUNT_NO_EMAIL",
"link-status-success-msg": "$loc UI_MENU_IOIACCOUNT_STATUS_SUCCESS",
"link-status-pending-msg": "$loc UI_MENU_IOIACCOUNT_STATUS_PENDING",
"link-status-failure-msg": {
"default": "$loc UI_MENU_IOIACCOUNT_STATUS_FAILURE",
"email-invalid": "$loc UI_MENU_IOIACCOUNT_STATUS_FAILURE_EMAIL_INVALID",
"email-registered": "$loc UI_MENU_IOIACCOUNT_STATUS_FAILURE_EMAIL_REGISTERED",
"sem-unavailable": "$loc UI_MENU_IOIACCOUNT_STATUS_FAILURE_IOIACCOUNT_UNAVAILABLE",
"unknown": "$loc UI_MENU_IOIACCOUNT_STATUS_FAILURE_UNKNOWN"
}
}
}
}
}
}
}
]
}
]
},
"actions": {
"contextpushed": {
"add-privacy-modifier": {
"id": "IOIACCOUNT_DISABLE_SHARE",
"share-prohibition-mode": "control-screen",
"video-recording-level": 1000,
"game-live-streaming-enabled": false
},
"refresh-ioiaccount-status": {
"$setup": {
"$set ForceUpdate": true,
"$in": {
"force-update": "$.ForceUpdate",
"root-container": "ioiaccount_controls_container",
"disable-on-linked": [
"user_email",
"submit_btn"
],
"e-mail-target": "user_email",
"e-mail-dataproperty": "title",
"link-status-target": "link_status",
"link-status-dataproperty": "text",
"link-status-no-email-msg": "$loc UI_MENU_IOIACCOUNT_NO_EMAIL",
"link-status-success-msg": "$loc UI_MENU_IOIACCOUNT_STATUS_SUCCESS",
"link-status-pending-msg": "$loc UI_MENU_IOIACCOUNT_STATUS_PENDING",
"link-status-failure-msg": {
"default": "$loc UI_MENU_IOIACCOUNT_STATUS_FAILURE",
"email-invalid": "$loc UI_MENU_IOIACCOUNT_STATUS_FAILURE_EMAIL_INVALID",
"email-registered": "$loc UI_MENU_IOIACCOUNT_STATUS_FAILURE_EMAIL_REGISTERED",
"sem-unavailable": "$loc UI_MENU_IOIACCOUNT_STATUS_FAILURE_IOIACCOUNT_UNAVAILABLE",
"unknown": "$loc UI_MENU_IOIACCOUNT_STATUS_FAILURE_UNKNOWN"
}
}
}
}
}
}
},
"$else": {
"selectable": false,
"pressable": false
}
}
},
{
"view": "menu3.basic.ListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_MENU_PAGE_SETTINGS_GDPR",
"icon": "locked"
},
"children": {
"$merge": [
{
"view": "menu3.TextboxElement",
"row": 0.97,
"col": 4.5,
"selectable": false,
"data": {
"text": {
"$loc": {
"key": {
"$if $getgamepersistentdata online-consent-agree-set": {
"$then": "UI_MENU_PAGE_SETTINGS_GDPR_ACCEPTED_DESCRIPTION",
"$else": "UI_MENU_PAGE_SETTINGS_GDPR_REJECTED_DESCRIPTION"
}
},
"data": [
"https://hitman.com/privacy"
]
}
},
"size": 24,
"color": "464646",
"width": 760,
"height": 500
}
},
{
"controller": "list",
"direction": "vertical",
"id": "ioiaccount_controls_container",
"view": "menu3.containers.ScrollingListContainer",
"groupselect": true,
"data": {
"direction": "vertical",
"overflowscrolling": "1.0"
},
"loopedselection": false,
"row": 1,
"col": 2.25,
"nrows": 3,
"ncols": 4,
"children": [
{
"$if $not $getgamepersistentdata online-consent-agree-set": {
"$then": {
"view": "menu3.basic.ListElementSmall",
"id": "privacy_status",
"pressable": "$not $getgamepersistentdata online-consent-agree-set",
"selectable": "$not $getgamepersistentdata online-consent-agree-set",
"data": {
"title": "$loc UI_MENU_PAGE_SETTINGS_GDPR_ACCEPT",
"icon": "check",
"greyelement": "$getgamepersistentdata online-consent-agree-set"
},
"actions": {
"accept": {
"try-trigger-online": {}
}
}
},
"$else": null
}
},
{
"$if $getgamepersistentdata online-consent-agree-set": {
"$then": {
"view": "menu3.basic.ListElementSmall",
"id": "privacy_status",
"pressable": "$getgamepersistentdata online-consent-agree-set",
"selectable": "$getgamepersistentdata online-consent-agree-set",
"data": {
"title": "$loc UI_MENU_PAGE_SETTINGS_GDPR_RESET",
"icon": "failed",
"greyelement": "$not $getgamepersistentdata online-consent-agree-set"
},
"actions": {
"accept": {
"show-modal": {
"config": {
"priority": "system",
"view": "menu3.modal.ModalDialogGeneric",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_MENU_PAGE_SETTINGS_GDPR_RESET_DIALOG_TITLE",
"description": "$loc UI_MENU_PAGE_SETTINGS_GDPR_RESET_DIALOG_TEXT"
}
},
"onbutton": [
{
"trigger-action": {
"name": "on-reset-decision"
}
}
]
}
},
"on-reset-decision": [
{
"set-game-persistent-data": {
"key": "online-consent-version-set",
"value": ""
}
},
{
"set-game-persistent-data": {
"key": "online-consent-agree-set",
"value": false
}
},
{
"exit-to-boot": ""
}
]
}
},
"$else": null
}
}
]
}
]
}
},
{
"view": "menu3.basic.ListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_CREDITS_HEADLINE",
"icon": "credits"
},
"actions": {
"accept": {
"link": {
"page": "credits",
"args": {}
}
}
}
},
{
"$switch $arg _platform": [
{
"case": "pc",
"return": {
"view": "menu3.basic.ListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_EXIT_GAME",
"icon": "exit"
},
"actions": {
"accept": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_EXIT_GAME",
"description": {
"$loc": {
"key": "UI_DIALOG_CONFIRM_TEXT",
"data": "$loc UI_DIALOG_CONFIRM_QUIT_TEXT"
}
}
}
},
"onbutton": [
{
"exit-game": {}
},
{
"request-back": {}
}
]
}
}
}
}
},
{
"default": {
"view": "menu3.basic.ListElementSmall",
"data": {
"showningame": {
"$if $arg _isingame": {
"$then": true,
"$else": false
}
},
"title": "$loc UI_PREFERENCES_EXIT_TO_TITLESCREEN",
"icon": "exit"
},
"actions": {
"accept": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_PREFERENCES_EXIT_TO_TITLESCREEN",
"description": {
"$loc": {
"key": "UI_DIALOG_CONFIRM_TEXT",
"data": "$loc UI_PREFERENCES_EXIT_TO_TITLESCREEN_DESCRIPTION"
}
}
}
},
"onbutton": [
{
"exit-to-boot": {}
},
{
"request-back": {}
}
]
}
}
}
}
}
]
}
]
}
]
}
}
]
}
]
}
}