1
mirror of https://github.com/thepeacockproject/Peacock synced 2024-11-16 11:03:30 +01:00
Peacock/static/ArcadePageTemplate.json

117 lines
4.8 KiB
JSON
Raw Normal View History

{
"id": "gamemodearcade_root",
"controller": "list",
"actions": {
"activated": {
"call": {
"$if": {
"$condition": {
"$or": [
{
"$include": "menusystem/data/isheritage.json"
},
2023-11-27 01:59:05 +01:00
"$eq ($.data.Data.Type,ContractAttack)",
"$eq ($.data.Data.Type,Elusive_Target_Hits)"
]
},
"$then": {},
"$else": {
"onmenuframe": true,
"method": "setBackground",
"args": "$res images/backgrounds/gamemode_arcade.jpg"
}
}
}
}
},
"children": [
{
"controller": "category",
"id": "category_controller",
"view": "menu3.containers.ScrollingTabsContainer",
"direction": "horizontal",
"data": {
"direction": "horizontal",
"topnavigation": {
"title": "$loc UI_MENU_PAGE_HUB_GAMEMODES",
"icon": "mission"
}
},
"children": [
{
"view": "menu3.basic.CategoryElement",
"controller": "categoryitem",
"data": {
2023-11-27 01:59:05 +01:00
"$switch $.data.Data.Type": [
{
"case": "ContractAttack",
"return": {
"title": "$loc UI_PEACOCK_ESCALATIONS",
"icon": "54"
}
},
{
"case": "Elusive_Target_Hits",
"return": {
"title": "$loc UI_MENU_PAGE_HITS_ELEMENT_CATEGORY_Elusive_Target_Hits",
"icon": "elusive"
}
},
2023-11-27 01:59:05 +01:00
{
"default": {
"title": "$loc UI_ARCADE_TITLE",
"icon": "arcademode"
}
}
2023-11-27 01:59:05 +01:00
]
},
"children": [
{
"controller": "container",
"id": "headline_container",
"view": "menu3.containers.ListContainer",
"direction": "horizontal",
"data": {
"direction": "horizontal"
},
"row": 4.22,
"col": 0,
"selectable": false,
"pressable": false,
"children": []
},
{
"controller": "container",
"row": 1,
"children": [
{
"$include": {
"$path": {
2023-11-27 01:59:05 +01:00
"$switch $.data.Data.Type": [
{
"case": "ContractAttack",
"return": "menusystem/elements/contract/hitscategory_contractattack.json"
},
{
"case": "Elusive_Target_Hits",
"return": "menusystem/elements/contract/hitscategory_elusive.json"
},
{
"default": {
"title": "$loc UI_ARCADE_TITLE",
"icon": "menusystem/elements/contract/hitscategory.json"
}
}
]
}
}
}
]
}
]
}
]
}
]
}