1
mirror of https://github.com/thepeacockproject/Peacock synced 2025-02-23 03:35:25 +01:00
Peacock/static/LegacyLoadMenuTemplate.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

9647 lines
1.5 MiB

{
"reopen-page": {
"link": {
"page": "loadpage",
"addtohistory": false,
"args": {
"url": "load",
"args": {
"saveorload": "load"
},
"saveorload": "load"
}
}
},
"buttons": [
{
"actiontype": "accept",
"actionlabel": "$loc UI_BUTTON_PROMPTS_ACTION_SELECT"
},
{
"actiontype": "cancel",
"actionlabel": "$loc UI_BUTTON_PROMPTS_ACTION_BACK"
}
],
"onpageopened": {
"show-background-layers": {
"show-background": {
"$if $arg _isingame": {
"$then": false,
"$else": true
}
},
"showMenuTabsUnderlay": true,
"show-world-map": false,
"show-overlay": false
},
"set-selected": {
"target": "$formatstring id_0"
}
},
"body": {
"controller": "list",
"actions": {
"select": {
"select-category": {}
}
},
"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"
}
},
{
"id": "data_list",
"controller": "list"
},
{
"view": "menu3.containers.ScrollingTabsContainer",
"direction": "horizontal",
"data": {
"direction": "horizontal"
},
"_comment": "note the below two fields, the container tells the category controller which container is to be used",
"controller": "category",
"id": "category_container",
"container": "data_list",
"children": {
"view": "menu3.basic.CategoryElement",
"data": {
"title": "$loc UI_DIALOG_LOAD_GAME",
"icon": "load"
},
"children": [
{
"controller": "group",
"row": 1,
"pages": true,
"nrows": 3,
"ncols": 10,
"children": [
{
"view": "menu3.basic.MenuTileSmall",
"nrows": 1.5,
"ncols": 2,
"pressable": false,
"selectable": false,
"data": {
"setassaveslotheader": true,
"header": "$loc UI_MENU_PAGE_SAVELOAD_MANUAL",
"title": "$loc UI_MENU_PAGE_SAVELOAD_SAVESLOTS",
"icon": "savemanual"
}
},
{
"view": "menu3.basic.MenuTileSmall",
"nrows": 1.5,
"ncols": 2,
"pressable": false,
"selectable": false,
"data": {
"setassaveslotheader": true,
"header": "$loc UI_MENU_PAGE_SAVELOAD_AUTO",
"title": "$loc UI_MENU_PAGE_SAVELOAD_SAVESLOTS",
"icon": "saveauto"
}
},
{
"controller": "group",
"view": "menu3.containers.ScrollingListContainer",
"direction": "horizontal",
"data": {
"direction": "horizontal",
"forceMask": true,
"maskwidthoffset": 400,
"maskstartleftoffset": 40,
"masktopoffset": 40,
"maskheightoffset": 40,
"overflowscrolling": "0.3",
"outsidemaskscrolling": true
},
"ncols": 8,
"nrows": 3,
"pages": true,
"id": "scroll-list",
"children": {
"$each $.Savegames": {
"$if $.Metadata.Occupied": {
"$then": {
"view": "menu3.basic.LoadSaveTileSmall",
"nrows": 1.5,
"ncols": 2,
"id": "$formatstring id_{$._index,0.f}",
"stateproviders": [
{
"type": {
"$if": {
"$condition": {
"$and": [
"$.Metadata.Valid",
"$not $.Metadata.Invalidated"
]
},
"$then": "contractavailability",
"$else": ""
}
},
"contract": "$.UserCentricContract.Contract"
}
],
"data": {
"$if": {
"$condition": {
"$and": [
"$.Metadata.Valid",
"$not $.Metadata.Invalidated"
]
},
"$then": {
"timestamp": "$.Metadata.TimestampString",
"header": {
"$switch $.UserCentricContract.Contract.Metadata.Location": [
{
"case": null,
"return": ""
},
{
"default": "$loc $formatstring UI_{$.UserCentricContract.Contract.Metadata.Location}_CITY"
}
]
},
"title": {
"$switch $.UserCentricContract.Contract.Metadata.Location": [
{
"case": null,
"return": "$loc UI_MENU_PAGE_SAVELOAD_OCCUPIED_SAVE_SLOT"
},
{
"default": "$loc $.UserCentricContract.Contract.Metadata.Title"
}
]
},
"online": "$.Metadata.Online",
"useronline": "$arg IsOnline",
"occupied": true,
"image": {
"$savegameimage": {
"slot": "$.Metadata.Slot",
"type": "$.Metadata.Type"
}
},
"icon": "mission",
"difficulty": "$.UserCentricContract.Contract.Metadata.Difficulty",
"valid": true
},
"$else": {
"timestamp": "$.Metadata.TimestampString",
"header": "",
"title": {
"$if $not $.Metadata.Valid": {
"$then": "$loc UI_DIALOG_CORRUPT_SAVE_FILE_TITLE",
"$else": "$loc UI_DIALOG_INVALID_SAVE_FILE_TITLE"
}
},
"online": true,
"useronline": true,
"occupied": true,
"image": "$res images/ui/tiles/corrupted.jpg",
"icon": "mission",
"valid": false
}
}
},
"actions": {
"$mergeobjects": [
{
"select": {
"replace-children": {
"target": "headline_container",
"children": {
"id": "headline-element",
"view": "menu3.basic.ItemHeadlineElement"
}
},
"update-content": {
"target": "headline-element"
}
},
"deselect": {
"replace-children": {
"target": "headline_container",
"children": []
}
},
"accept": {
"$if": {
"$condition": {
"$or": [
"$not $.Metadata.Valid",
"$.Metadata.Invalidated"
]
},
"$then": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": {
"$if $not $.Metadata.Valid": {
"$then": "$loc UI_DIALOG_CORRUPT_SAVE_FILE_TITLE",
"$else": "$loc UI_DIALOG_INVALID_SAVE_FILE_TITLE"
}
},
"description": {
"$if $not $.Metadata.Valid": {
"$then": "$loc UI_LOAD_FAILED_CORRUPT",
"$else": "$loc UI_LOAD_FAILED_INVALID"
}
}
}
},
"onbutton": [
{
"delete-save": {
"name": "$.Metadata.SaveName"
}
}
]
}
}
}
}
},
{
"$mergeobjects": [
{
"$use $.UserCentricContract": {
"on-free-prologue-user": {
"_comment": "We have a free prologue user and the content is not owned",
"alter-actions": {
"path": "accept",
"value": {
"show-modal": {
"config": {
"type": "online",
"view": "menu3.modal.ModalDialogGeneric",
"buttons": [
{
"label": {
"$setup": {
"$set Store": {
"$switch $arg _platform": [
{
"case": "pc",
"return": {
"$switch $arg _store": [
{
"case": "epic",
"return": "UI_MENU_GO_TO_STORE_EPIC"
},
{
"default": "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": {
"title": "$loc UI_MENU_PAGE_FREE_PROLOGUE_THANKYOU_TITLE",
"_comment": "HACK: use typeoverride to make the buttons work",
"typeoverride": "online",
"information": [
{
"$if": {
"$condition": {
"$or": [
{
"$if": {
"$condition": {
"$and": [
"$eqs ($arg _platform,durango)",
"$eqs ($arg _region,jp)",
{
"$isfreeprologueuser": ""
}
]
}
}
},
{
"$if": {
"$condition": {
"$and": [
"$eqs ($arg _platform,orbis)",
"$eqs ($arg _storeregion,CUSA08340)",
{
"$isfreeprologueuser": ""
}
]
}
}
}
]
},
"$then": {
"imagetext": {
"description": "$loc GAME_STORE_METADATA_GAME_SHORT",
"image": "$res images/livetile/dlc/tile_fullxp.jpg"
}
},
"$else": {
"imagetext": {
"description": "$loc UI_MENU_PAGE_FREE_PROLOGUE_THANKYOU_DESCRIPTION",
"image": {
"$if": {
"$condition": {
"$setup": {
"$set Platform": {
"$if $isnull $.Platform": {
"$then": "$arg _platform",
"$else": "$.Platform"
}
},
"$set Storeregion": {
"$if $isnull $.Storeregion": {
"$then": "$arg _storeregion",
"$else": "$.Storeregion"
}
},
"$set Region": {
"$if $isnull $.Region": {
"$then": "$arg _region",
"$else": "$.Region"
}
},
"$in": {
"$if ": {
"$condition": {
"$and": [
"$eqs ($.Platform,orbis)",
"$eqs ($.Region,en)"
]
},
"$then": false,
"$else": false
}
}
}
},
"$then": {
"$if": {
"$condition": {
"$and": [
{
"$isintropackuser": ""
},
{
"$if": {
"$condition": {
"$setup": {
"$set Platform": {
"$if $isnull $.Platform": {
"$then": "$arg _platform",
"$else": "$.Platform"
}
},
"$set Storeregion": {
"$if $isnull $.Storeregion": {
"$then": "$arg _storeregion",
"$else": "$.Storeregion"
}
},
"$set Region": {
"$if $isnull $.Region": {
"$then": "$arg _region",
"$else": "$.Region"
}
},
"$in": {
"$if $eq (0,0)": {
"$then": true,
"$else": false
}
}
}
}
}
}
]
},
"$then": "$res images/livetile/dlc/tile_goty_intro_sale.jpg",
"$else": {
"$if": {
"$condition": {
"$isfullexperienceuser": ""
},
"$then": "$res images/livetile/dlc/tile_goty_cfs_sale.jpg",
"$else": "$res images/livetile/dlc/tile_goty_sale.jpg"
}
}
}
},
"$else": {
"$if": {
"$condition": {
"$and": [
{
"$isintropackuser": ""
},
{
"$if": {
"$condition": {
"$setup": {
"$set Platform": {
"$if $isnull $.Platform": {
"$then": "$arg _platform",
"$else": "$.Platform"
}
},
"$set Storeregion": {
"$if $isnull $.Storeregion": {
"$then": "$arg _storeregion",
"$else": "$.Storeregion"
}
},
"$set Region": {
"$if $isnull $.Region": {
"$then": "$arg _region",
"$else": "$.Region"
}
},
"$in": {
"$if $eq (0,0)": {
"$then": true,
"$else": false
}
}
}
}
}
}
]
},
"$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"
}
}
}
}
}
}
}
}
}
}
]
}
},
"onbutton": [
{
"$switch $arg _store": [
{
"case": "steam",
"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": {
"show-store-item-detail": {
"serviceLabel": {
"$switch $arg _platform": [
{
"case": "orbis",
"return": {
"$if": {
"$condition": {
"$or": [
"$eqs ($arg _storeregion,CUSA10514)",
"$eqs ($arg _storeregion,CUSA11532)"
]
},
"$then": 1,
"$else": null
}
}
},
{
"default": {
"return": null
}
}
]
},
"itemId": {
"$if": {
"$condition": {
"$or": [
{
"$if": {
"$condition": {
"$and": [
"$eqs ($arg _platform,durango)",
"$eqs ($arg _region,jp)",
{
"$isfreeprologueuser": ""
}
]
}
}
},
{
"$if": {
"$condition": {
"$and": [
"$eqs ($arg _platform,orbis)",
"$eqs ($arg _storeregion,CUSA08340)",
{
"$isfreeprologueuser": ""
}
]
}
}
}
]
},
"$then": {
"$setup": {
"$set Platform": {
"$if $isnull $.Platform": {
"$then": "$arg _platform",
"$else": "$.Platform"
}
},
"$set Storeregion": {
"$if $isnull $.Storeregion": {
"$then": "$arg _storeregion",
"$else": "$.Storeregion"
}
},
"$set Region": {
"$if $isnull $.Region": {
"$then": "$arg _region",
"$else": "$.Region"
}
},
"$in": {
"$if": {
"$condition": {
"$isintropackuser": ""
},
"$then": {
"$switch $.Platform": [
{
"case": "pc",
"return": "236870"
},
{
"case": "orbis",
"return": {
"$switch $.Storeregion": [
{
"case": "CUSA08340",
"return": "FULLEXPERIENCE00"
},
{
"default": "HITMANUPGRADEPAC"
}
]
}
},
{
"case": "durango",
"$switch $.Region": [
{
"case": "jp",
"return": "1266e616-cef5-4a39-9e35-98694a51f7c8"
},
{
"default": "73307168-13f3-472c-9ab2-2a51308bae25"
}
]
}
]
},
"$else": {
"$switch $.Platform": [
{
"case": "pc",
"return": "236870"
},
{
"case": "orbis",
"return": {
"$switch $.Storeregion": [
{
"default": "FULLEXPERIENCE00"
}
]
}
},
{
"case": "durango",
"return": {
"$switch $.Region": [
{
"case": "jp",
"return": "1266e616-cef5-4a39-9e35-98694a51f7c8"
},
{
"default": "5c49c5fd-2c07-4840-8d24-1188318dc50a"
}
]
}
}
]
}
}
}
}
},
"$else": {
"$setup": {
"$set Platform": {
"$if $isnull $.Platform": {
"$then": "$arg _platform",
"$else": "$.Platform"
}
},
"$set Storeregion": {
"$if $isnull $.Storeregion": {
"$then": "$arg _storeregion",
"$else": "$.Storeregion"
}
},
"$set Store": {
"$if $isnull $.Store": {
"$then": "$arg _store",
"$else": "$.Store"
}
},
"$in": {
"$if": {
"$condition": {
"$and": [
{
"$isintropackuser": ""
},
{
"$if": {
"$condition": {
"$setup": {
"$set Platform": {
"$if $isnull $.Platform": {
"$then": "$arg _platform",
"$else": "$.Platform"
}
},
"$set Storeregion": {
"$if $isnull $.Storeregion": {
"$then": "$arg _storeregion",
"$else": "$.Storeregion"
}
},
"$set Region": {
"$if $isnull $.Region": {
"$then": "$arg _region",
"$else": "$.Region"
}
},
"$in": {
"$if $eq (0,0)": {
"$then": true,
"$else": false
}
}
}
}
}
}
]
},
"$then": {
"$switch $.Platform": [
{
"case": "pc",
"return": {
"$switch $.Store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $.Store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $.Store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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"
}
]
}
}
}
}
}
}
}
}
}
}
}
}
]
}
]
}
}
}
},
"on-content-unknown": {
"_comment": "No DLC could be found containing contract",
"alter-actions": {
"path": "accept",
"value": {
"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-content-not-owned": {
"_comment": "DLC is not owned",
"alter-actions": {
"path": "accept",
"value": {
"$if": {
"$condition": {
"$and": [
"$timeexpired $.Contract.Metadata.PlayableUntil",
{
"$equal": [
"elusive",
"$.Contract.Metadata.Type"
]
}
]
},
"$then": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_OK"
],
"data": {
"title": "$loc UI_CONTRACT_HEADER_ELUSIVE",
"description": "$loc UI_DIALOG_SHOP_ELUSIVE_TARGET"
}
},
"onbutton": [
{
"show-modal": {
"config": {
"type": "online",
"view": "menu3.modal.ModalDialogGeneric",
"buttons": [
{
"label": {
"$setup": {
"$set Store": {
"$switch $arg _platform": [
{
"case": "pc",
"return": {
"$switch $arg _store": [
{
"case": "epic",
"return": "UI_MENU_GO_TO_STORE_EPIC"
},
{
"default": "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": "$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"
},
{
"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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"show-modal": {
"config": {
"type": "online",
"view": "menu3.modal.ModalDialogGeneric",
"buttons": [
{
"label": {
"$setup": {
"$set Store": {
"$switch $arg _platform": [
{
"case": "pc",
"return": {
"$switch $arg _store": [
{
"case": "epic",
"return": "UI_MENU_GO_TO_STORE_EPIC"
},
{
"default": "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": "$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"
},
{
"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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$and": [
"$timeexpired $.Contract.Metadata.PlayableUntil",
{
"$equal": [
"elusive",
"$.Contract.Metadata.Type"
]
}
]
},
"$then": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_OK"
],
"data": {
"title": "$loc UI_CONTRACT_HEADER_ELUSIVE",
"description": "$loc UI_DIALOG_SHOP_ELUSIVE_TARGET_DOWNLOAD"
}
},
"onbutton": [
{
"show-modal": {
"config": {
"type": "online",
"view": "menu3.modal.ModalDialogGeneric",
"buttons": [
{
"label": {
"$setup": {
"$set Store": {
"$switch $arg _platform": [
{
"case": "pc",
"return": {
"$switch $arg _store": [
{
"case": "epic",
"return": "UI_MENU_GO_TO_STORE_EPIC"
},
{
"default": "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": "$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"
},
{
"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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"show-modal": {
"config": {
"type": "online",
"view": "menu3.modal.ModalDialogGeneric",
"buttons": [
{
"label": {
"$setup": {
"$set Store": {
"$switch $arg _platform": [
{
"case": "pc",
"return": {
"$switch $arg _store": [
{
"case": "epic",
"return": "UI_MENU_GO_TO_STORE_EPIC"
},
{
"default": "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": "$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"
},
{
"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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $arg _store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"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": "$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"
},
{
"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": {
"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": "$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"
},
{
"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": {
"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": "$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"
},
{
"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-entitlement-missing": {
"_comment": "Entitlement missing",
"alter-actions": {
"path": "accept",
"value": {
"show-modal": {
"config": {
"type": "online",
"view": "menu3.modal.ModalDialogGeneric",
"buttons": [
{
"label": {
"$setup": {
"$set Store": {
"$switch $arg _platform": [
{
"case": "pc",
"return": {
"$switch $arg _store": [
{
"case": "epic",
"return": "UI_MENU_GO_TO_STORE_EPIC"
},
{
"default": "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": {
"$setup": {
"$set Platform": {
"$if $isnull $.Platform": {
"$then": "$arg _platform",
"$else": "$.Platform"
}
},
"$set Storeregion": {
"$if $isnull $.Storeregion": {
"$then": "$arg _storeregion",
"$else": "$.Storeregion"
}
},
"$set Region": {
"$if $isnull $.Region": {
"$then": "$arg _region",
"$else": "$.Region"
}
},
"$in": {
"$if $eq (0,0)": {
"$then": true,
"$else": false
}
}
}
}
}
}
]
},
"$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": {
"$setup": {
"$set Platform": {
"$if $isnull $.Platform": {
"$then": "$arg _platform",
"$else": "$.Platform"
}
},
"$set Storeregion": {
"$if $isnull $.Storeregion": {
"$then": "$arg _storeregion",
"$else": "$.Storeregion"
}
},
"$set Region": {
"$if $isnull $.Region": {
"$then": "$arg _region",
"$else": "$.Region"
}
},
"$in": {
"$if ": {
"$condition": {
"$and": [
"$eqs ($.Platform,orbis)",
"$eqs ($.Region,en)"
]
},
"$then": false,
"$else": false
}
}
}
},
"$then": {
"$if": {
"$condition": {
"$and": [
{
"$isintropackuser": ""
},
{
"$if": {
"$condition": {
"$setup": {
"$set Platform": {
"$if $isnull $.Platform": {
"$then": "$arg _platform",
"$else": "$.Platform"
}
},
"$set Storeregion": {
"$if $isnull $.Storeregion": {
"$then": "$arg _storeregion",
"$else": "$.Storeregion"
}
},
"$set Region": {
"$if $isnull $.Region": {
"$then": "$arg _region",
"$else": "$.Region"
}
},
"$in": {
"$if $eq (0,0)": {
"$then": true,
"$else": false
}
}
}
}
}
}
]
},
"$then": "$res images/livetile/dlc/tile_goty_intro_sale.jpg",
"$else": {
"$if": {
"$condition": {
"$isfullexperienceuser": ""
},
"$then": "$res images/livetile/dlc/tile_goty_cfs_sale.jpg",
"$else": "$res images/livetile/dlc/tile_goty_sale.jpg"
}
}
}
},
"$else": {
"$if": {
"$condition": {
"$and": [
{
"$isintropackuser": ""
},
{
"$if": {
"$condition": {
"$setup": {
"$set Platform": {
"$if $isnull $.Platform": {
"$then": "$arg _platform",
"$else": "$.Platform"
}
},
"$set Storeregion": {
"$if $isnull $.Storeregion": {
"$then": "$arg _storeregion",
"$else": "$.Storeregion"
}
},
"$set Region": {
"$if $isnull $.Region": {
"$then": "$arg _region",
"$else": "$.Region"
}
},
"$in": {
"$if $eq (0,0)": {
"$then": true,
"$else": false
}
}
}
}
}
}
]
},
"$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": {
"$setup": {
"$set Platform": {
"$if $isnull $.Platform": {
"$then": "$arg _platform",
"$else": "$.Platform"
}
},
"$set Storeregion": {
"$if $isnull $.Storeregion": {
"$then": "$arg _storeregion",
"$else": "$.Storeregion"
}
},
"$set Region": {
"$if $isnull $.Region": {
"$then": "$arg _region",
"$else": "$.Region"
}
},
"$in": {
"$if $eq (0,0)": {
"$then": true,
"$else": false
}
}
}
}
}
}
]
},
"$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": "$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"
},
{
"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 _store": [
{
"case": "steam",
"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"
}
},
"$set Store": {
"$if $isnull $.Store": {
"$then": "$arg _store",
"$else": "$.Store"
}
},
"$in": {
"$if": {
"$condition": {
"$and": [
{
"$isintropackuser": ""
},
{
"$if": {
"$condition": {
"$setup": {
"$set Platform": {
"$if $isnull $.Platform": {
"$then": "$arg _platform",
"$else": "$.Platform"
}
},
"$set Storeregion": {
"$if $isnull $.Storeregion": {
"$then": "$arg _storeregion",
"$else": "$.Storeregion"
}
},
"$set Region": {
"$if $isnull $.Region": {
"$then": "$arg _region",
"$else": "$.Region"
}
},
"$in": {
"$if $eq (0,0)": {
"$then": true,
"$else": false
}
}
}
}
}
}
]
},
"$then": {
"$switch $.Platform": [
{
"case": "pc",
"return": {
"$switch $.Store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $.Store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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": {
"$switch $.Store": [
{
"case": "epic",
"return": "https://www.epicgames.com/store/en-US/product/hitman/home"
},
{
"default": "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-available": {
"alter-actions": {
"path": "accept",
"value": {
"$if $arg MainMenu": {
"$then": {
"$if $arg _isonline": {
"$then": {
"$if $.Metadata.Online": {
"$then": {
"$setup": {
"$set DialogType": "DirectLoad",
"$set Type": "$.Metadata.Type",
"$set Slot": "$.Metadata.Slot",
"$in": {
"$switch $.DialogType": [
{
"case": "DirectLoad",
"return": {
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
},
{
"case": "LoadDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_LOAD_GAME_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_LOADDIALOG"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOfflineDialogMainMenu",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_GO_OFFLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_MAINMENU_GOOFFLINE"
}
},
"onbutton": [
{
"force-offline": {},
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOfflineDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_GO_OFFLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_GOOFFLINE"
}
},
"onbutton": [
{
"force-offline": {},
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOnlineDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_CONNECTION_SWITCH_TO_ONLINE_MODE",
{
"$switch $.Metadata.ContractType": [
{
"case": "mission",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "flashback",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "tutorial",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
}
]
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONNECTION_SWITCH_TO_ONLINE_MODE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_GOONLINE"
}
},
"onbutton": [
{
"try-trigger-online": {}
},
{
"$if": {
"$condition": {
"$or": [
"$eqs ($.Metadata.ContractType,mission)",
"$eqs ($.Metadata.ContractType,flashback)",
"$eqs ($.Metadata.ContractType,tutorial)"
]
},
"$then": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM_TITLE",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_TITLE",
"description": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_DESCRIPTION"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
}
}
]
}
}
},
{
"case": "GoToMainMenuDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_CONNECTION_STATUS_DISCONNECTED_GO_TO_HUB",
{
"$switch $.Metadata.ContractType": [
{
"case": "mission",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "flashback",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "tutorial",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
}
]
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_LOAD_NEED_ONLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_MENU_OR_CONTINUE_OFFLINE"
}
},
"onbutton": [
{
"exit-to-main-menu": {}
},
{
"$if": {
"$condition": {
"$or": [
"$eqs ($.Metadata.ContractType,mission)",
"$eqs ($.Metadata.ContractType,flashback)",
"$eqs ($.Metadata.ContractType,tutorial)"
]
},
"$then": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM_TITLE",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_TITLE",
"description": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_DESCRIPTION"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
}
}
]
}
}
},
{
"default": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_CONFIRM_TITLE",
"description": "This message is not supposed to occur"
}
},
"onbutton": []
}
}
}
]
}
}
},
"$else": {
"$setup": {
"$set DialogType": "GoOfflineDialogMainMenu",
"$set Type": "$.Metadata.Type",
"$set Slot": "$.Metadata.Slot",
"$in": {
"$switch $.DialogType": [
{
"case": "DirectLoad",
"return": {
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
},
{
"case": "LoadDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_LOAD_GAME_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_LOADDIALOG"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOfflineDialogMainMenu",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_GO_OFFLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_MAINMENU_GOOFFLINE"
}
},
"onbutton": [
{
"force-offline": {},
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOfflineDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_GO_OFFLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_GOOFFLINE"
}
},
"onbutton": [
{
"force-offline": {},
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOnlineDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_CONNECTION_SWITCH_TO_ONLINE_MODE",
{
"$switch $.Metadata.ContractType": [
{
"case": "mission",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "flashback",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "tutorial",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
}
]
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONNECTION_SWITCH_TO_ONLINE_MODE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_GOONLINE"
}
},
"onbutton": [
{
"try-trigger-online": {}
},
{
"$if": {
"$condition": {
"$or": [
"$eqs ($.Metadata.ContractType,mission)",
"$eqs ($.Metadata.ContractType,flashback)",
"$eqs ($.Metadata.ContractType,tutorial)"
]
},
"$then": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM_TITLE",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_TITLE",
"description": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_DESCRIPTION"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
}
}
]
}
}
},
{
"case": "GoToMainMenuDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_CONNECTION_STATUS_DISCONNECTED_GO_TO_HUB",
{
"$switch $.Metadata.ContractType": [
{
"case": "mission",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "flashback",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "tutorial",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
}
]
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_LOAD_NEED_ONLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_MENU_OR_CONTINUE_OFFLINE"
}
},
"onbutton": [
{
"exit-to-main-menu": {}
},
{
"$if": {
"$condition": {
"$or": [
"$eqs ($.Metadata.ContractType,mission)",
"$eqs ($.Metadata.ContractType,flashback)",
"$eqs ($.Metadata.ContractType,tutorial)"
]
},
"$then": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM_TITLE",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_TITLE",
"description": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_DESCRIPTION"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
}
}
]
}
}
},
{
"default": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_CONFIRM_TITLE",
"description": "This message is not supposed to occur"
}
},
"onbutton": []
}
}
}
]
}
}
}
}
},
"$else": {
"$if $.Metadata.Online": {
"$then": {
"$setup": {
"$set DialogType": "GoOnlineDialog",
"$set Type": "$.Metadata.Type",
"$set Slot": "$.Metadata.Slot",
"$in": {
"$switch $.DialogType": [
{
"case": "DirectLoad",
"return": {
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
},
{
"case": "LoadDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_LOAD_GAME_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_LOADDIALOG"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOfflineDialogMainMenu",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_GO_OFFLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_MAINMENU_GOOFFLINE"
}
},
"onbutton": [
{
"force-offline": {},
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOfflineDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_GO_OFFLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_GOOFFLINE"
}
},
"onbutton": [
{
"force-offline": {},
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOnlineDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_CONNECTION_SWITCH_TO_ONLINE_MODE",
{
"$switch $.Metadata.ContractType": [
{
"case": "mission",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "flashback",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "tutorial",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
}
]
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONNECTION_SWITCH_TO_ONLINE_MODE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_GOONLINE"
}
},
"onbutton": [
{
"try-trigger-online": {}
},
{
"$if": {
"$condition": {
"$or": [
"$eqs ($.Metadata.ContractType,mission)",
"$eqs ($.Metadata.ContractType,flashback)",
"$eqs ($.Metadata.ContractType,tutorial)"
]
},
"$then": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM_TITLE",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_TITLE",
"description": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_DESCRIPTION"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
}
}
]
}
}
},
{
"case": "GoToMainMenuDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_CONNECTION_STATUS_DISCONNECTED_GO_TO_HUB",
{
"$switch $.Metadata.ContractType": [
{
"case": "mission",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "flashback",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "tutorial",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
}
]
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_LOAD_NEED_ONLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_MENU_OR_CONTINUE_OFFLINE"
}
},
"onbutton": [
{
"exit-to-main-menu": {}
},
{
"$if": {
"$condition": {
"$or": [
"$eqs ($.Metadata.ContractType,mission)",
"$eqs ($.Metadata.ContractType,flashback)",
"$eqs ($.Metadata.ContractType,tutorial)"
]
},
"$then": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM_TITLE",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_TITLE",
"description": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_DESCRIPTION"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
}
}
]
}
}
},
{
"default": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_CONFIRM_TITLE",
"description": "This message is not supposed to occur"
}
},
"onbutton": []
}
}
}
]
}
}
},
"$else": {
"$setup": {
"$set DialogType": "DirectLoad",
"$set Type": "$.Metadata.Type",
"$set Slot": "$.Metadata.Slot",
"$in": {
"$switch $.DialogType": [
{
"case": "DirectLoad",
"return": {
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
},
{
"case": "LoadDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_LOAD_GAME_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_LOADDIALOG"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOfflineDialogMainMenu",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_GO_OFFLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_MAINMENU_GOOFFLINE"
}
},
"onbutton": [
{
"force-offline": {},
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOfflineDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_GO_OFFLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_GOOFFLINE"
}
},
"onbutton": [
{
"force-offline": {},
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOnlineDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_CONNECTION_SWITCH_TO_ONLINE_MODE",
{
"$switch $.Metadata.ContractType": [
{
"case": "mission",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "flashback",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "tutorial",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
}
]
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONNECTION_SWITCH_TO_ONLINE_MODE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_GOONLINE"
}
},
"onbutton": [
{
"try-trigger-online": {}
},
{
"$if": {
"$condition": {
"$or": [
"$eqs ($.Metadata.ContractType,mission)",
"$eqs ($.Metadata.ContractType,flashback)",
"$eqs ($.Metadata.ContractType,tutorial)"
]
},
"$then": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM_TITLE",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_TITLE",
"description": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_DESCRIPTION"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
}
}
]
}
}
},
{
"case": "GoToMainMenuDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_CONNECTION_STATUS_DISCONNECTED_GO_TO_HUB",
{
"$switch $.Metadata.ContractType": [
{
"case": "mission",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "flashback",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "tutorial",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
}
]
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_LOAD_NEED_ONLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_MENU_OR_CONTINUE_OFFLINE"
}
},
"onbutton": [
{
"exit-to-main-menu": {}
},
{
"$if": {
"$condition": {
"$or": [
"$eqs ($.Metadata.ContractType,mission)",
"$eqs ($.Metadata.ContractType,flashback)",
"$eqs ($.Metadata.ContractType,tutorial)"
]
},
"$then": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM_TITLE",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_TITLE",
"description": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_DESCRIPTION"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
}
}
]
}
}
},
{
"default": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_CONFIRM_TITLE",
"description": "This message is not supposed to occur"
}
},
"onbutton": []
}
}
}
]
}
}
}
}
}
}
},
"$else": {
"$if $arg _isonline": {
"$then": {
"$if $.Metadata.Online": {
"$then": {
"$setup": {
"$set DialogType": "LoadDialog",
"$set Type": "$.Metadata.Type",
"$set Slot": "$.Metadata.Slot",
"$in": {
"$switch $.DialogType": [
{
"case": "DirectLoad",
"return": {
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
},
{
"case": "LoadDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_LOAD_GAME_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_LOADDIALOG"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOfflineDialogMainMenu",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_GO_OFFLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_MAINMENU_GOOFFLINE"
}
},
"onbutton": [
{
"force-offline": {},
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOfflineDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_GO_OFFLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_GOOFFLINE"
}
},
"onbutton": [
{
"force-offline": {},
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOnlineDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_CONNECTION_SWITCH_TO_ONLINE_MODE",
{
"$switch $.Metadata.ContractType": [
{
"case": "mission",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "flashback",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "tutorial",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
}
]
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONNECTION_SWITCH_TO_ONLINE_MODE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_GOONLINE"
}
},
"onbutton": [
{
"try-trigger-online": {}
},
{
"$if": {
"$condition": {
"$or": [
"$eqs ($.Metadata.ContractType,mission)",
"$eqs ($.Metadata.ContractType,flashback)",
"$eqs ($.Metadata.ContractType,tutorial)"
]
},
"$then": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM_TITLE",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_TITLE",
"description": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_DESCRIPTION"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
}
}
]
}
}
},
{
"case": "GoToMainMenuDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_CONNECTION_STATUS_DISCONNECTED_GO_TO_HUB",
{
"$switch $.Metadata.ContractType": [
{
"case": "mission",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "flashback",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "tutorial",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
}
]
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_LOAD_NEED_ONLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_MENU_OR_CONTINUE_OFFLINE"
}
},
"onbutton": [
{
"exit-to-main-menu": {}
},
{
"$if": {
"$condition": {
"$or": [
"$eqs ($.Metadata.ContractType,mission)",
"$eqs ($.Metadata.ContractType,flashback)",
"$eqs ($.Metadata.ContractType,tutorial)"
]
},
"$then": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM_TITLE",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_TITLE",
"description": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_DESCRIPTION"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
}
}
]
}
}
},
{
"default": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_CONFIRM_TITLE",
"description": "This message is not supposed to occur"
}
},
"onbutton": []
}
}
}
]
}
}
},
"$else": {
"$setup": {
"$set DialogType": "GoOfflineDialog",
"$set Type": "$.Metadata.Type",
"$set Slot": "$.Metadata.Slot",
"$in": {
"$switch $.DialogType": [
{
"case": "DirectLoad",
"return": {
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
},
{
"case": "LoadDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_LOAD_GAME_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_LOADDIALOG"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOfflineDialogMainMenu",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_GO_OFFLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_MAINMENU_GOOFFLINE"
}
},
"onbutton": [
{
"force-offline": {},
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOfflineDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_GO_OFFLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_GOOFFLINE"
}
},
"onbutton": [
{
"force-offline": {},
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOnlineDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_CONNECTION_SWITCH_TO_ONLINE_MODE",
{
"$switch $.Metadata.ContractType": [
{
"case": "mission",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "flashback",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "tutorial",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
}
]
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONNECTION_SWITCH_TO_ONLINE_MODE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_GOONLINE"
}
},
"onbutton": [
{
"try-trigger-online": {}
},
{
"$if": {
"$condition": {
"$or": [
"$eqs ($.Metadata.ContractType,mission)",
"$eqs ($.Metadata.ContractType,flashback)",
"$eqs ($.Metadata.ContractType,tutorial)"
]
},
"$then": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM_TITLE",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_TITLE",
"description": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_DESCRIPTION"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
}
}
]
}
}
},
{
"case": "GoToMainMenuDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_CONNECTION_STATUS_DISCONNECTED_GO_TO_HUB",
{
"$switch $.Metadata.ContractType": [
{
"case": "mission",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "flashback",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "tutorial",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
}
]
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_LOAD_NEED_ONLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_MENU_OR_CONTINUE_OFFLINE"
}
},
"onbutton": [
{
"exit-to-main-menu": {}
},
{
"$if": {
"$condition": {
"$or": [
"$eqs ($.Metadata.ContractType,mission)",
"$eqs ($.Metadata.ContractType,flashback)",
"$eqs ($.Metadata.ContractType,tutorial)"
]
},
"$then": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM_TITLE",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_TITLE",
"description": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_DESCRIPTION"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
}
}
]
}
}
},
{
"default": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_CONFIRM_TITLE",
"description": "This message is not supposed to occur"
}
},
"onbutton": []
}
}
}
]
}
}
}
}
},
"$else": {
"$if $.Metadata.Online": {
"$then": {
"$setup": {
"$set DialogType": "GoToMainMenuDialog",
"$set Type": "$.Metadata.Type",
"$set Slot": "$.Metadata.Slot",
"$in": {
"$switch $.DialogType": [
{
"case": "DirectLoad",
"return": {
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
},
{
"case": "LoadDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_LOAD_GAME_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_LOADDIALOG"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOfflineDialogMainMenu",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_GO_OFFLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_MAINMENU_GOOFFLINE"
}
},
"onbutton": [
{
"force-offline": {},
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOfflineDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_GO_OFFLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_GOOFFLINE"
}
},
"onbutton": [
{
"force-offline": {},
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOnlineDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_CONNECTION_SWITCH_TO_ONLINE_MODE",
{
"$switch $.Metadata.ContractType": [
{
"case": "mission",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "flashback",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "tutorial",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
}
]
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONNECTION_SWITCH_TO_ONLINE_MODE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_GOONLINE"
}
},
"onbutton": [
{
"try-trigger-online": {}
},
{
"$if": {
"$condition": {
"$or": [
"$eqs ($.Metadata.ContractType,mission)",
"$eqs ($.Metadata.ContractType,flashback)",
"$eqs ($.Metadata.ContractType,tutorial)"
]
},
"$then": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM_TITLE",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_TITLE",
"description": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_DESCRIPTION"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
}
}
]
}
}
},
{
"case": "GoToMainMenuDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_CONNECTION_STATUS_DISCONNECTED_GO_TO_HUB",
{
"$switch $.Metadata.ContractType": [
{
"case": "mission",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "flashback",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "tutorial",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
}
]
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_LOAD_NEED_ONLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_MENU_OR_CONTINUE_OFFLINE"
}
},
"onbutton": [
{
"exit-to-main-menu": {}
},
{
"$if": {
"$condition": {
"$or": [
"$eqs ($.Metadata.ContractType,mission)",
"$eqs ($.Metadata.ContractType,flashback)",
"$eqs ($.Metadata.ContractType,tutorial)"
]
},
"$then": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM_TITLE",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_TITLE",
"description": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_DESCRIPTION"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
}
}
]
}
}
},
{
"default": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_CONFIRM_TITLE",
"description": "This message is not supposed to occur"
}
},
"onbutton": []
}
}
}
]
}
}
},
"$else": {
"$setup": {
"$set DialogType": "LoadDialog",
"$set Type": "$.Metadata.Type",
"$set Slot": "$.Metadata.Slot",
"$in": {
"$switch $.DialogType": [
{
"case": "DirectLoad",
"return": {
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
},
{
"case": "LoadDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_LOAD_GAME_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_LOADDIALOG"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOfflineDialogMainMenu",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_GO_OFFLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_MAINMENU_GOOFFLINE"
}
},
"onbutton": [
{
"force-offline": {},
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOfflineDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_GO_OFFLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_GOOFFLINE"
}
},
"onbutton": [
{
"force-offline": {},
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
},
{
"case": "GoOnlineDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_CONNECTION_SWITCH_TO_ONLINE_MODE",
{
"$switch $.Metadata.ContractType": [
{
"case": "mission",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "flashback",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "tutorial",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
}
]
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONNECTION_SWITCH_TO_ONLINE_MODE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_GOONLINE"
}
},
"onbutton": [
{
"try-trigger-online": {}
},
{
"$if": {
"$condition": {
"$or": [
"$eqs ($.Metadata.ContractType,mission)",
"$eqs ($.Metadata.ContractType,flashback)",
"$eqs ($.Metadata.ContractType,tutorial)"
]
},
"$then": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM_TITLE",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_TITLE",
"description": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_DESCRIPTION"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
}
}
]
}
}
},
{
"case": "GoToMainMenuDialog",
"return": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_CONNECTION_STATUS_DISCONNECTED_GO_TO_HUB",
{
"$switch $.Metadata.ContractType": [
{
"case": "mission",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "flashback",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
},
{
"case": "tutorial",
"return": "$loc UI_CONNECTION_CONTINUE_IN_OFFLINE_MODE"
}
]
},
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_LOAD_NEED_ONLINE_TITLE",
"description": "$loc UI_MENU_PAGE_SAVELOAD_MENU_OR_CONTINUE_OFFLINE"
}
},
"onbutton": [
{
"exit-to-main-menu": {}
},
{
"$if": {
"$condition": {
"$or": [
"$eqs ($.Metadata.ContractType,mission)",
"$eqs ($.Metadata.ContractType,flashback)",
"$eqs ($.Metadata.ContractType,tutorial)"
]
},
"$then": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM_TITLE",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_TITLE",
"description": "$loc UI_CONFIRM_CONTINUE_GAMESESSION_OFFLINE_DESCRIPTION"
}
},
"onbutton": [
{
"load-game": {
"slot": "$.Slot",
"type": "$.Type"
}
}
]
}
}
}
}
]
}
}
},
{
"default": {
"show-modal": {
"config": {
"type": "online",
"buttons": [
"$loc UI_DIALOG_CONFIRM",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"title": "$loc UI_DIALOG_CONFIRM_TITLE",
"description": "This message is not supposed to occur"
}
},
"onbutton": []
}
}
}
]
}
}
}
}
}
}
}
}
}
}
}
}
]
}
]
}
},
"$else": {
"view": "menu3.basic.LoadSaveTileSmall",
"nrows": 1.5,
"ncols": 2,
"pressable": false,
"data": {
"title": "$loc UI_MENU_PAGE_SAVELOAD_EMPTY_SAVE_SLOT",
"occupied": "$.Metadata.Occupied",
"online": true,
"image": "$res images/ui/tiles/empty_saveslot.jpg",
"icon": "mission"
},
"actions": {
"select": {
"replace-children": {
"target": "headline_container",
"children": {
"id": "headline-element",
"view": "menu3.basic.ItemHeadlineElement"
}
},
"update-content": {
"target": "headline-element"
}
},
"deselect": {
"replace-children": {
"target": "headline_container",
"children": []
}
}
}
}
}
}
}
}
]
}
]
}
}
]
}
}