1
mirror of https://github.com/thepeacockproject/Peacock synced 2024-11-29 09:15:11 +01:00
Peacock/static/H2DashboardTemplate.json
2023-04-28 17:33:07 +01:00

238 lines
10 KiB
JSON

{
"$datacontext": {
"in": "$.",
"datavalues": {
"PeacockDashValues": [
{
"Id": "25739126-6a40-4b0b-b9a6-5da1b737190b",
"Type": "ContractList",
"Title": "UI_HEADLINE_PLAY_CONTRACT_ATTACK",
"Text": "UI_HEADLINE_PLAY_CONTRACT_ATTACK",
"Date": "2022-01-01T00:00:00.0000000Z",
"SubscriptionId": "10000000-0000-0000-0000-000000000000",
"Priority": 40,
"Properties": {
"ContractId": "25739126-6a40-4b0b-b9a6-5da1b737190b",
"DashboardCategory": "Dashboard_Category_Escalation"
},
"LoadValue": "menusystem/pages/hub/dashboard/category_escalation/loadasync.json",
"row": 1.5,
"col": 4
}
]
},
"do": {
"controller": "group",
"row": 1,
"nrows": 3,
"ncols": 10,
"layoutchildren": true,
"children": {
"$mergearrays": [
{
"view": "menu3.basic.MenuTileLarge",
"row": 0,
"col": 0,
"nrows": 3,
"ncols": 4,
"data": {
"header": "$loc UI_MENU_PAGE_HUB_CAMPAIGN",
"title": "$loc UI_MENU_PAGE_HUB_STORY",
"icon": "story",
"image": "$res images/livetile/tile_story.jpg"
},
"actions": {
"accept": [
{
"set-selected": {
"target": "category_story"
}
}
],
"select": {
"replace-children": {
"target": "headline_container",
"children": [
{
"view": "menu3.basic.HeadlineElement",
"selectable": false,
"pressable": false,
"data": {
"header": "$loc UI_MENU_PAGE_HUB_CAMPAIGN",
"title": "$loc UI_MENU_PAGE_HUB_STORY",
"typeicon": "story"
}
}
]
}
},
"deselect": {
"replace-children": {
"target": "headline_container",
"children": []
}
}
}
},
{
"view": "menu3.basic.ItemTileSmall",
"row": 0,
"col": 6,
"nrows": 1.5,
"ncols": 2,
"data": {
"title": "$loc UI_PEACOCK_GO_OFFLINE",
"icon": "goonline",
"image": "$res images/ui/tiles/button_goonline.jpg"
},
"actions": {
"accept": {
"force-offline": {}
},
"select": {
"replace-children": {
"target": "headline_container",
"children": [
{
"view": "menu3.basic.HeadlineElement",
"selectable": false,
"pressable": false,
"data": {
"header": "",
"title": "$loc UI_PEACOCK_GO_OFFLINE",
"typeicon": "goonline"
}
}
]
}
},
"deselect": {
"replace-children": {
"target": "headline_container",
"children": []
}
}
}
},
{
"view": "menu3.basic.ItemTileSmall",
"row": 0,
"col": 4,
"nrows": 1.5,
"ncols": 2,
"data": {
"header": "$loc UI_PEACOCK_POWERED_BY",
"title": "$loc UI_PEACOCK_BRANDING",
"icon": "story",
"image": "$res images/contracts/novikov_and_magolis/tile.jpg"
},
"actions": {
"accept": {
"$if $isnullorempty $.ServerTile.url": {
"$then": {},
"$else": {
"open-url": {
"url": "$.ServerTile.url"
}
}
}
},
"select": {
"replace-children": {
"target": "headline_container",
"children": [
{
"view": "menu3.basic.HeadlineElement",
"selectable": false,
"pressable": false,
"data": {
"header": "$loc UI_PEACOCK_POWERED_BY",
"title": "$loc UI_PEACOCK_BRANDING",
"typeicon": "story"
}
}
]
}
},
"deselect": {
"replace-children": {
"target": "headline_container",
"children": []
}
}
}
},
{
"view": "menu3.basic.ItemTileSmall",
"row": 1.5,
"col": 6,
"nrows": 1.5,
"ncols": 2,
"data": {
"title": "$loc UI_DIALOG_LOAD_GAME",
"icon": "load",
"image": "$res images/ui/tiles/load_menu_tile.jpg"
},
"actions": {
"accept": {
"link": {
"page": "loadpage",
"args": {
"url": "load",
"args": {
"saveorload": "load"
},
"saveorload": "load",
"mainmenu": true,
"reloadonchange": true
}
}
},
"select": {
"replace-children": {
"target": "headline_container",
"children": [
{
"view": "menu3.basic.HeadlineElement",
"selectable": false,
"pressable": false,
"data": {
"header": "",
"title": "$loc UI_DIALOG_LOAD_GAME",
"typeicon": "load"
}
}
]
}
},
"deselect": {
"replace-children": {
"target": "headline_container",
"children": []
}
}
}
},
{
"$each $.PeacockDashValues": {
"controller": "container",
"row": "$.row",
"col": "$.col",
"nrows": 1.5,
"ncols": 2,
"usechilddimensions": true,
"children": [
{
"$include": {
"$path": "$.LoadValue"
}
}
]
}
}
]
}
}
}
}