mirror of
https://github.com/thepeacockproject/Peacock
synced 2024-11-22 22:12:45 +01:00
6245e91624
Co-authored-by: Tino Roivanen <tino.roivanen98@gmail.com> Co-authored-by: Govert de Gans <grappigegovert@hotmail.com> Co-authored-by: Gray Olson <gray@grayolson.com> Co-authored-by: Alexandre Sanchez <alex73630@gmail.com> Co-authored-by: Anthony Fuller <24512050+anthonyfuller@users.noreply.github.com> Co-authored-by: atampy25 <24306974+atampy25@users.noreply.github.com> Co-authored-by: David <davidstulemeijer@gmail.com> Co-authored-by: c0derMo <c0dermo@users.noreply.github.com> Co-authored-by: Jeevat Singh <jeevatt.singh@gmail.com> Signed-off-by: Reece Dunham <me@rdil.rocks>
769 lines
68 KiB
JSON
769 lines
68 KiB
JSON
{
|
|
"buttons": [
|
|
{
|
|
"actiontype": "cancel",
|
|
"actionlabel": "$loc UI_BUTTON_PROMPTS_ACTION_BACK"
|
|
}
|
|
],
|
|
"onpageopened": {
|
|
"emit-sound-signal": {
|
|
"signal-name": "SET_DIFFICULTY_normal"
|
|
}
|
|
},
|
|
"body": {
|
|
"controller": "list",
|
|
"data": {
|
|
"direction": "vertical"
|
|
},
|
|
"children": [
|
|
{
|
|
"controller": "group",
|
|
"id": "headline_container",
|
|
"row": 4.25,
|
|
"col": 0,
|
|
"selectable": false,
|
|
"pressable": false,
|
|
"_comment": "the container that will hold the HeadlineElement. It will show info on whatever item is selected",
|
|
"children": {
|
|
"id": "headline_element",
|
|
"view": "menu3.basic.HeadlineElement"
|
|
}
|
|
},
|
|
{
|
|
"controller": "list",
|
|
"id": "category_container"
|
|
},
|
|
{
|
|
"controller": "category",
|
|
"container": "category_container",
|
|
"id": "profile_category_controller",
|
|
"view": "menu3.containers.ScrollingTabsContainer",
|
|
"direction": "horizontal",
|
|
"data": {
|
|
"direction": "horizontal",
|
|
"overflowscrolling": "0.45",
|
|
"buttonprompts": [
|
|
{
|
|
"actiontype": ["lb", "rb"],
|
|
"actionlabel": "$loc UI_BUTTON_PROMPTS_BROWSE_CATEGORIES"
|
|
}
|
|
],
|
|
"topnavigation": {
|
|
"header": "$loc UI_MENU_PAGE_HUB_PROFILE",
|
|
"title": "$loc UI_MENU_PAGE_SAFEHOUSE_ELEMENT_CATEGORY_INVENTORY",
|
|
"icon": "inventory"
|
|
}
|
|
},
|
|
"ncols": 10,
|
|
"children": {
|
|
"$if $.SafehouseData.IsLeaf": {
|
|
"$then": {
|
|
"$use $.SafehouseData": {
|
|
"id": "$formatstring inventory_category_{$.Category}",
|
|
"view": "menu3.basic.CategoryElement",
|
|
"data": {
|
|
"title": "$loc $formatstring UI_MENU_PAGE_SAFEHOUSE_ELEMENT_CATEGORY_{$.Category}",
|
|
"icon": "$.Data.SubType"
|
|
},
|
|
"children": [
|
|
{
|
|
"$if $.IsLeaf": {
|
|
"$then": {
|
|
"controller": "group",
|
|
"view": "menu3.containers.ScrollingListContainer",
|
|
"row": 1,
|
|
"nrows": 3,
|
|
"ncols": 10,
|
|
"direction": "horizontal",
|
|
"data": {
|
|
"direction": "horizontal"
|
|
},
|
|
"pages": true,
|
|
"children": {
|
|
"$each": {
|
|
"in": {
|
|
"$if $eqs ($.Category,disguise)": {
|
|
"$then": {
|
|
"$orderby": {
|
|
"from": "$.Data.Items",
|
|
"by": {
|
|
"$if $not $isnull $.Item.Unlockable.Properties.OrderIndex": {
|
|
"$then": "$.Item.Unlockable.Properties.OrderIndex",
|
|
"$else": 10000
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"$else": {
|
|
"$orderby": {
|
|
"from": "$.Data.Items",
|
|
"by": "$($item $.Item).name"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"do": {
|
|
"$mergeobjects": [
|
|
{
|
|
"$if $arg usetalltile": {
|
|
"$then": {
|
|
"view": "menu3.basic.ItemTileTall",
|
|
"nrows": 3
|
|
},
|
|
"$else": {
|
|
"view": "menu3.basic.ItemTileSmall",
|
|
"nrows": 1.5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ncols": 2,
|
|
"data": {
|
|
"header": "$($item $.Item).type",
|
|
"title": "$($item $.Item).name",
|
|
"image": "$($item $.Item).image",
|
|
"rarity": "$($item $.Item).rarity",
|
|
"icon": "$.Item.Unlockable.Subtype",
|
|
"perks": "$($repository $.Item.Unlockable.Properties.RepositoryId).Perks",
|
|
"itemcount": "$arraysize $.Item.Unlockable.Properties.RepositoryAssets"
|
|
},
|
|
"buttons": [
|
|
{
|
|
"actiontype": "action-y",
|
|
"actionlabel": "$loc UI_DIALOG_SHOW_DETAILS"
|
|
}
|
|
],
|
|
"actions": {
|
|
"select": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": [
|
|
{
|
|
"view": "menu3.basic.ItemHeadlineElement",
|
|
"data": {
|
|
"id": "$formatstring loadout_overview_header_{$.SlotId}",
|
|
"header": "$($item $.Item).type",
|
|
"title": "$($item $.Item).name",
|
|
"typeicon": "$.Item.Unlockable.Subtype",
|
|
"rarity": "$($item $.Item).rarity",
|
|
"perks": "$($repository $.Item.Unlockable.Properties.RepositoryId).Perks"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"deselect": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": []
|
|
}
|
|
},
|
|
"action-y": {
|
|
"show-modal": {
|
|
"config": {
|
|
"type": "online",
|
|
"view": "menu3.modal.ModalDialogItemDetails",
|
|
"buttons": [
|
|
"$loc UI_DIALOG_OK",
|
|
{
|
|
"type": "cancel"
|
|
}
|
|
],
|
|
"data": {
|
|
"type": "$.Item.Unlockable.Type",
|
|
"subtype": "$.Item.Unlockable.Subtype",
|
|
"rarity": "$.Item.Unlockable.Properties.Rarity",
|
|
"item": "$($repository $.Item.Unlockable.Properties.RepositoryId)",
|
|
"displaybuttons": [
|
|
{
|
|
"actiontype": "cancel",
|
|
"actionlabel": "$loc UI_BUTTON_PROMPTS_ACTION_BACK",
|
|
"hideIndicator": true
|
|
}
|
|
],
|
|
"actionAndKillTypes": {
|
|
"$setup": {
|
|
"$set ItemRepositoryId": "$repository $.Item.Unlockable.Properties.RepositoryId",
|
|
"$in": {
|
|
"$convertarray": {
|
|
"discardElementsWithoutConversion": true,
|
|
"sourceArray": "$.ItemRepositoryId.OnlineTraits",
|
|
"conversionRules": {
|
|
"melee_nonlethal": "$loc UI_ITEM_ONLINETRAITS_MELEE_NONLETHAL",
|
|
"melee_lethal": "$loc UI_ITEM_ONLINETRAITS_MELEE_LETHAL",
|
|
"throw_nonlethal": "$loc UI_ITEM_ONLINETRAITS_THROW_NONLETHAL",
|
|
"throw_lethal": "$loc UI_ITEM_ONLINETRAITS_THROW_LETHAL",
|
|
"fiberwire": "$loc UI_ITEM_ONLINETRAITS_FIBERWIRE",
|
|
"syringe_poison": "$loc UI_ITEM_ONLINETRAITS_SYRINGE_POISON",
|
|
"consumable_poison": "$loc UI_ITEM_ONLINETRAITS_CONSUMABLE_POISON",
|
|
"accident_explosion": "$loc UI_KILL_METHOD_ACCIDENT_EXPLOSION",
|
|
"detonator_explosive_device": "$loc UI_KILL_METHOD_EXPLOSIVE",
|
|
"explosive_device": "$loc UI_KILL_METHOD_EXPLOSIVE"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"$else": {
|
|
"controller": "group",
|
|
"view": "menu3.containers.ScrollingListContainer",
|
|
"row": 1,
|
|
"nrows": 3,
|
|
"ncols": 10,
|
|
"direction": "horizontal",
|
|
"navigationmode": "leaf-selection",
|
|
"data": {
|
|
"direction": "horizontal"
|
|
},
|
|
"children": {
|
|
"$each": {
|
|
"in": {
|
|
"$orderby": {
|
|
"from": "$.SubCategories",
|
|
"by": "Category",
|
|
"order": [
|
|
"pistol",
|
|
"smg",
|
|
"shotgun",
|
|
"assaultrifle",
|
|
"sniperrifle",
|
|
"melee",
|
|
"tool",
|
|
"distraction",
|
|
"poison",
|
|
"explosive"
|
|
]
|
|
}
|
|
},
|
|
"do": {
|
|
"controller": "group",
|
|
"view": "menu3.containers.ListContainerWithHeader",
|
|
"id": "$formatstring {$.SubLocation.Id}_container",
|
|
"pages": true,
|
|
"navigationmode": "forward-to-parent",
|
|
"nrows": 3,
|
|
"ncols": 8,
|
|
"direction": "horizontal",
|
|
"data": {
|
|
"direction": "horizontal",
|
|
"headlinetitle": "$loc $formatstring UI_ITEM_SUBTYPE_IN_PLURAL_{$.Category}"
|
|
},
|
|
"children": {
|
|
"$each": {
|
|
"in": {
|
|
"$if $eqs ($.Category,disguise)": {
|
|
"$then": {
|
|
"$orderby": {
|
|
"from": "$.Data.Items",
|
|
"by": {
|
|
"$if $not $isnull $.Item.Unlockable.Properties.OrderIndex": {
|
|
"$then": "$.Item.Unlockable.Properties.OrderIndex",
|
|
"$else": 10000
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"$else": {
|
|
"$orderby": {
|
|
"from": "$.Data.Items",
|
|
"by": "$($item $.Item).name"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"do": {
|
|
"$mergeobjects": [
|
|
{
|
|
"$if $arg usetalltile": {
|
|
"$then": {
|
|
"view": "menu3.basic.ItemTileTall",
|
|
"nrows": 3
|
|
},
|
|
"$else": {
|
|
"view": "menu3.basic.ItemTileSmall",
|
|
"nrows": 1.5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ncols": 2,
|
|
"data": {
|
|
"header": "$($item $.Item).type",
|
|
"title": "$($item $.Item).name",
|
|
"image": "$($item $.Item).image",
|
|
"rarity": "$($item $.Item).rarity",
|
|
"icon": "$.Item.Unlockable.Subtype",
|
|
"perks": "$($repository $.Item.Unlockable.Properties.RepositoryId).Perks",
|
|
"itemcount": "$arraysize $.Item.Unlockable.Properties.RepositoryAssets"
|
|
},
|
|
"buttons": [
|
|
{
|
|
"actiontype": "action-y",
|
|
"actionlabel": "$loc UI_DIALOG_SHOW_DETAILS"
|
|
}
|
|
],
|
|
"actions": {
|
|
"select": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": [
|
|
{
|
|
"view": "menu3.basic.ItemHeadlineElement",
|
|
"data": {
|
|
"id": "$formatstring loadout_overview_header_{$.SlotId}",
|
|
"header": "$($item $.Item).type",
|
|
"title": "$($item $.Item).name",
|
|
"typeicon": "$.Item.Unlockable.Subtype",
|
|
"rarity": "$($item $.Item).rarity",
|
|
"perks": "$($repository $.Item.Unlockable.Properties.RepositoryId).Perks"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"deselect": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": []
|
|
}
|
|
},
|
|
"action-y": {
|
|
"show-modal": {
|
|
"config": {
|
|
"type": "online",
|
|
"view": "menu3.modal.ModalDialogItemDetails",
|
|
"buttons": [
|
|
"$loc UI_DIALOG_OK",
|
|
{
|
|
"type": "cancel"
|
|
}
|
|
],
|
|
"data": {
|
|
"type": "$.Item.Unlockable.Type",
|
|
"subtype": "$.Item.Unlockable.Subtype",
|
|
"rarity": "$.Item.Unlockable.Properties.Rarity",
|
|
"item": "$($repository $.Item.Unlockable.Properties.RepositoryId)",
|
|
"displaybuttons": [
|
|
{
|
|
"actiontype": "cancel",
|
|
"actionlabel": "$loc UI_BUTTON_PROMPTS_ACTION_BACK",
|
|
"hideIndicator": true
|
|
}
|
|
],
|
|
"actionAndKillTypes": {
|
|
"$setup": {
|
|
"$set ItemRepositoryId": "$repository $.Item.Unlockable.Properties.RepositoryId",
|
|
"$in": {
|
|
"$convertarray": {
|
|
"discardElementsWithoutConversion": true,
|
|
"sourceArray": "$.ItemRepositoryId.OnlineTraits",
|
|
"conversionRules": {
|
|
"melee_nonlethal": "$loc UI_ITEM_ONLINETRAITS_MELEE_NONLETHAL",
|
|
"melee_lethal": "$loc UI_ITEM_ONLINETRAITS_MELEE_LETHAL",
|
|
"throw_nonlethal": "$loc UI_ITEM_ONLINETRAITS_THROW_NONLETHAL",
|
|
"throw_lethal": "$loc UI_ITEM_ONLINETRAITS_THROW_LETHAL",
|
|
"fiberwire": "$loc UI_ITEM_ONLINETRAITS_FIBERWIRE",
|
|
"syringe_poison": "$loc UI_ITEM_ONLINETRAITS_SYRINGE_POISON",
|
|
"consumable_poison": "$loc UI_ITEM_ONLINETRAITS_CONSUMABLE_POISON",
|
|
"accident_explosion": "$loc UI_KILL_METHOD_ACCIDENT_EXPLOSION",
|
|
"detonator_explosive_device": "$loc UI_KILL_METHOD_EXPLOSIVE",
|
|
"explosive_device": "$loc UI_KILL_METHOD_EXPLOSIVE"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"$else": {
|
|
"$each $.SafehouseData.SubCategories": {
|
|
"$setpageargs": {
|
|
"usetalltile": {
|
|
"$switch $.Category": [
|
|
{
|
|
"case": "disguise",
|
|
"return": true
|
|
},
|
|
{
|
|
"default": false
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"id": "$formatstring inventory_category_{$.Category}",
|
|
"view": "menu3.basic.CategoryElement",
|
|
"data": {
|
|
"title": "$loc $formatstring UI_MENU_PAGE_SAFEHOUSE_ELEMENT_CATEGORY_{$.Category}",
|
|
"icon": "$.Category"
|
|
},
|
|
"children": {
|
|
"$if $.IsLeaf": {
|
|
"$then": {
|
|
"controller": "group",
|
|
"view": "menu3.containers.ScrollingListContainer",
|
|
"row": 1,
|
|
"nrows": 3,
|
|
"ncols": 10,
|
|
"direction": "horizontal",
|
|
"data": {
|
|
"direction": "horizontal"
|
|
},
|
|
"pages": true,
|
|
"children": {
|
|
"$each": {
|
|
"in": {
|
|
"$if $eqs ($.Category,disguise)": {
|
|
"$then": {
|
|
"$orderby": {
|
|
"from": "$.Data.Items",
|
|
"by": {
|
|
"$if $not $isnull $.Item.Unlockable.Properties.OrderIndex": {
|
|
"$then": "$.Item.Unlockable.Properties.OrderIndex",
|
|
"$else": 10000
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"$else": {
|
|
"$orderby": {
|
|
"from": "$.Data.Items",
|
|
"by": "$($item $.Item).name"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"do": {
|
|
"$mergeobjects": [
|
|
{
|
|
"$if $arg usetalltile": {
|
|
"$then": {
|
|
"view": "menu3.basic.ItemTileTall",
|
|
"nrows": 3
|
|
},
|
|
"$else": {
|
|
"view": "menu3.basic.ItemTileSmall",
|
|
"nrows": 1.5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ncols": 2,
|
|
"data": {
|
|
"header": "$($item $.Item).type",
|
|
"title": "$($item $.Item).name",
|
|
"image": "$($item $.Item).image",
|
|
"rarity": "$($item $.Item).rarity",
|
|
"icon": "$.Item.Unlockable.Subtype",
|
|
"perks": "$($repository $.Item.Unlockable.Properties.RepositoryId).Perks",
|
|
"itemcount": "$arraysize $.Item.Unlockable.Properties.RepositoryAssets"
|
|
},
|
|
"buttons": [
|
|
{
|
|
"actiontype": "action-y",
|
|
"actionlabel": "$loc UI_DIALOG_SHOW_DETAILS"
|
|
}
|
|
],
|
|
"actions": {
|
|
"select": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": [
|
|
{
|
|
"view": "menu3.basic.ItemHeadlineElement",
|
|
"data": {
|
|
"id": "$formatstring loadout_overview_header_{$.SlotId}",
|
|
"header": "$($item $.Item).type",
|
|
"title": "$($item $.Item).name",
|
|
"typeicon": "$.Item.Unlockable.Subtype",
|
|
"rarity": "$($item $.Item).rarity",
|
|
"perks": "$($repository $.Item.Unlockable.Properties.RepositoryId).Perks"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"deselect": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": []
|
|
}
|
|
},
|
|
"action-y": {
|
|
"show-modal": {
|
|
"config": {
|
|
"type": "online",
|
|
"view": "menu3.modal.ModalDialogItemDetails",
|
|
"buttons": [
|
|
"$loc UI_DIALOG_OK",
|
|
{
|
|
"type": "cancel"
|
|
}
|
|
],
|
|
"data": {
|
|
"type": "$.Item.Unlockable.Type",
|
|
"subtype": "$.Item.Unlockable.Subtype",
|
|
"rarity": "$.Item.Unlockable.Properties.Rarity",
|
|
"item": "$($repository $.Item.Unlockable.Properties.RepositoryId)",
|
|
"displaybuttons": [
|
|
{
|
|
"actiontype": "cancel",
|
|
"actionlabel": "$loc UI_BUTTON_PROMPTS_ACTION_BACK",
|
|
"hideIndicator": true
|
|
}
|
|
],
|
|
"actionAndKillTypes": {
|
|
"$setup": {
|
|
"$set ItemRepositoryId": "$repository $.Item.Unlockable.Properties.RepositoryId",
|
|
"$in": {
|
|
"$convertarray": {
|
|
"discardElementsWithoutConversion": true,
|
|
"sourceArray": "$.ItemRepositoryId.OnlineTraits",
|
|
"conversionRules": {
|
|
"melee_nonlethal": "$loc UI_ITEM_ONLINETRAITS_MELEE_NONLETHAL",
|
|
"melee_lethal": "$loc UI_ITEM_ONLINETRAITS_MELEE_LETHAL",
|
|
"throw_nonlethal": "$loc UI_ITEM_ONLINETRAITS_THROW_NONLETHAL",
|
|
"throw_lethal": "$loc UI_ITEM_ONLINETRAITS_THROW_LETHAL",
|
|
"fiberwire": "$loc UI_ITEM_ONLINETRAITS_FIBERWIRE",
|
|
"syringe_poison": "$loc UI_ITEM_ONLINETRAITS_SYRINGE_POISON",
|
|
"consumable_poison": "$loc UI_ITEM_ONLINETRAITS_CONSUMABLE_POISON",
|
|
"accident_explosion": "$loc UI_KILL_METHOD_ACCIDENT_EXPLOSION",
|
|
"detonator_explosive_device": "$loc UI_KILL_METHOD_EXPLOSIVE",
|
|
"explosive_device": "$loc UI_KILL_METHOD_EXPLOSIVE"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"$else": {
|
|
"controller": "group",
|
|
"view": "menu3.containers.ScrollingListContainer",
|
|
"row": 1,
|
|
"nrows": 3,
|
|
"ncols": 10,
|
|
"direction": "horizontal",
|
|
"navigationmode": "leaf-selection",
|
|
"data": {
|
|
"direction": "horizontal"
|
|
},
|
|
"children": {
|
|
"$each": {
|
|
"in": {
|
|
"$orderby": {
|
|
"from": "$.SubCategories",
|
|
"by": "Category",
|
|
"order": [
|
|
"pistol",
|
|
"smg",
|
|
"shotgun",
|
|
"assaultrifle",
|
|
"sniperrifle",
|
|
"melee",
|
|
"tool",
|
|
"distraction",
|
|
"poison",
|
|
"explosive"
|
|
]
|
|
}
|
|
},
|
|
"do": {
|
|
"controller": "group",
|
|
"view": "menu3.containers.ListContainerWithHeader",
|
|
"id": "$formatstring {$.SubLocation.Id}_container",
|
|
"pages": true,
|
|
"navigationmode": "forward-to-parent",
|
|
"nrows": 3,
|
|
"ncols": 8,
|
|
"direction": "horizontal",
|
|
"data": {
|
|
"direction": "horizontal",
|
|
"headlinetitle": "$loc $formatstring UI_ITEM_SUBTYPE_IN_PLURAL_{$.Category}"
|
|
},
|
|
"children": {
|
|
"$each": {
|
|
"in": {
|
|
"$if $eqs ($.Category,disguise)": {
|
|
"$then": {
|
|
"$orderby": {
|
|
"from": "$.Data.Items",
|
|
"by": {
|
|
"$if $not $isnull $.Item.Unlockable.Properties.OrderIndex": {
|
|
"$then": "$.Item.Unlockable.Properties.OrderIndex",
|
|
"$else": 10000
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"$else": {
|
|
"$orderby": {
|
|
"from": "$.Data.Items",
|
|
"by": "$($item $.Item).name"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"do": {
|
|
"$mergeobjects": [
|
|
{
|
|
"$if $arg usetalltile": {
|
|
"$then": {
|
|
"view": "menu3.basic.ItemTileTall",
|
|
"nrows": 3
|
|
},
|
|
"$else": {
|
|
"view": "menu3.basic.ItemTileSmall",
|
|
"nrows": 1.5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ncols": 2,
|
|
"data": {
|
|
"header": "$($item $.Item).type",
|
|
"title": "$($item $.Item).name",
|
|
"image": "$($item $.Item).image",
|
|
"rarity": "$($item $.Item).rarity",
|
|
"icon": "$.Item.Unlockable.Subtype",
|
|
"perks": "$($repository $.Item.Unlockable.Properties.RepositoryId).Perks",
|
|
"itemcount": "$arraysize $.Item.Unlockable.Properties.RepositoryAssets"
|
|
},
|
|
"buttons": [
|
|
{
|
|
"actiontype": "action-y",
|
|
"actionlabel": "$loc UI_DIALOG_SHOW_DETAILS"
|
|
}
|
|
],
|
|
"actions": {
|
|
"select": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": [
|
|
{
|
|
"view": "menu3.basic.ItemHeadlineElement",
|
|
"data": {
|
|
"id": "$formatstring loadout_overview_header_{$.SlotId}",
|
|
"header": "$($item $.Item).type",
|
|
"title": "$($item $.Item).name",
|
|
"typeicon": "$.Item.Unlockable.Subtype",
|
|
"rarity": "$($item $.Item).rarity",
|
|
"perks": "$($repository $.Item.Unlockable.Properties.RepositoryId).Perks"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"deselect": {
|
|
"replace-children": {
|
|
"target": "headline_container",
|
|
"children": []
|
|
}
|
|
},
|
|
"action-y": {
|
|
"show-modal": {
|
|
"config": {
|
|
"type": "online",
|
|
"view": "menu3.modal.ModalDialogItemDetails",
|
|
"buttons": [
|
|
"$loc UI_DIALOG_OK",
|
|
{
|
|
"type": "cancel"
|
|
}
|
|
],
|
|
"data": {
|
|
"type": "$.Item.Unlockable.Type",
|
|
"subtype": "$.Item.Unlockable.Subtype",
|
|
"rarity": "$.Item.Unlockable.Properties.Rarity",
|
|
"item": "$($repository $.Item.Unlockable.Properties.RepositoryId)",
|
|
"displaybuttons": [
|
|
{
|
|
"actiontype": "cancel",
|
|
"actionlabel": "$loc UI_BUTTON_PROMPTS_ACTION_BACK",
|
|
"hideIndicator": true
|
|
}
|
|
],
|
|
"actionAndKillTypes": {
|
|
"$setup": {
|
|
"$set ItemRepositoryId": "$repository $.Item.Unlockable.Properties.RepositoryId",
|
|
"$in": {
|
|
"$convertarray": {
|
|
"discardElementsWithoutConversion": true,
|
|
"sourceArray": "$.ItemRepositoryId.OnlineTraits",
|
|
"conversionRules": {
|
|
"melee_nonlethal": "$loc UI_ITEM_ONLINETRAITS_MELEE_NONLETHAL",
|
|
"melee_lethal": "$loc UI_ITEM_ONLINETRAITS_MELEE_LETHAL",
|
|
"throw_nonlethal": "$loc UI_ITEM_ONLINETRAITS_THROW_NONLETHAL",
|
|
"throw_lethal": "$loc UI_ITEM_ONLINETRAITS_THROW_LETHAL",
|
|
"fiberwire": "$loc UI_ITEM_ONLINETRAITS_FIBERWIRE",
|
|
"syringe_poison": "$loc UI_ITEM_ONLINETRAITS_SYRINGE_POISON",
|
|
"consumable_poison": "$loc UI_ITEM_ONLINETRAITS_CONSUMABLE_POISON",
|
|
"accident_explosion": "$loc UI_KILL_METHOD_ACCIDENT_EXPLOSION",
|
|
"detonator_explosive_device": "$loc UI_KILL_METHOD_EXPLOSIVE",
|
|
"explosive_device": "$loc UI_KILL_METHOD_EXPLOSIVE"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|