mirror of
https://github.com/thepeacockproject/Peacock
synced 2024-11-29 09:15:11 +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>
319 lines
15 KiB
JSON
319 lines
15 KiB
JSON
{
|
|
"$datacontext": {
|
|
"in": "$.data",
|
|
"datavalues": {
|
|
"IsFullMenuAvailable": {
|
|
"$include": "menusystem/pages/hub/data/isfullmenuavailable.json"
|
|
}
|
|
},
|
|
"do": {
|
|
"id": "hub_root",
|
|
"view": "common.UtcClockInitializer",
|
|
"controller": "container",
|
|
"actions": {
|
|
"activated": [
|
|
{
|
|
"set-value": {
|
|
"target": "$.@global.CurrentBackgroundImage",
|
|
"value": "images/backgrounds/menu_bg.jpg"
|
|
},
|
|
"set-player-profile-xp-data": {
|
|
"$if $not $isnull $.PlayerProfileXpData": {
|
|
"$then": {
|
|
"playerprofilelevel": "$.PlayerProfileXpData.Level"
|
|
},
|
|
"$else": null
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"$if $not $isnullorempty $getapplicationoption AutoStartContractId": {
|
|
"$then": {
|
|
"set-menu-context": {
|
|
"value": {
|
|
"onpageopened": {
|
|
"set-selected": {
|
|
"target": "PLANNING_BUTTON_PLAY"
|
|
},
|
|
"trigger-input": {
|
|
"action": "accept"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"link": {
|
|
"page": "planning",
|
|
"args": {
|
|
"url": "planning",
|
|
"args": {
|
|
"contractid": "$getapplicationoption AutoStartContractId"
|
|
},
|
|
"contractid": "$getapplicationoption AutoStartContractId"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"$if $gamepersistentdata attraction_to_hub_flow": {
|
|
"$then": {
|
|
"$include": {
|
|
"$path": "menusystem/pages/hub/modals/ioiaccount/showmodal_action.json"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"deactivated": {
|
|
"set-game-persistent-data": {
|
|
"key": "attraction_to_hub_flow",
|
|
"value": false
|
|
}
|
|
},
|
|
"actionx": {
|
|
"$if": {
|
|
"$condition": {
|
|
"$and": [
|
|
"$not $isonline",
|
|
{
|
|
"$or": [
|
|
"$not $eq($platform,izumo)",
|
|
"$not $isuser freeprologue"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"$then": {
|
|
"prompt_label": "$loc UI_BUTTON_PROMPTS_GO_ONLINE",
|
|
"try-trigger-online": {}
|
|
},
|
|
"$else": null
|
|
}
|
|
}
|
|
},
|
|
"data": {
|
|
"direction": "vertical"
|
|
},
|
|
"children": [
|
|
{
|
|
"$include": {
|
|
"$path": "menusystem/elements/general/general_headline.json"
|
|
}
|
|
},
|
|
{
|
|
"$if $gamepersistentdata attraction_to_hub_flow": {
|
|
"$then": {
|
|
"$include": {
|
|
"$path": "menusystem/pages/hub/modals/newunlockable/showmodal_element.json"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"$if $gamepersistentdata attraction_to_hub_flow": {
|
|
"$then": {
|
|
"$include": {
|
|
"$path": "menusystem/pages/hub/modals/roadmap/showmodal_element.json"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"$include": {
|
|
"$path": "menusystem/pages/hub/modals/vrtutorial/showmodal_element.json"
|
|
}
|
|
},
|
|
{
|
|
"$if $not $isnull $.@global.CurrentBackgroundImage": {
|
|
"$then": {
|
|
"selectable": false,
|
|
"pressable": false,
|
|
"actions": {
|
|
"activated": {
|
|
"$if $not $isnullorempty $.@global.CurrentBackgroundImage.frames": {
|
|
"$then": {
|
|
"$datacontext": {
|
|
"in": "$.",
|
|
"datavalues": {
|
|
"Frames": {
|
|
"$each $.@global.CurrentBackgroundImage.frames": "$res $."
|
|
}
|
|
},
|
|
"do": {
|
|
"call": {
|
|
"onmenuframe": true,
|
|
"method": "setBackgroundData",
|
|
"args": {
|
|
"blendin": "$.@global.CurrentBackgroundImage.blendin",
|
|
"framemode": "$.@global.CurrentBackgroundImage.framemode",
|
|
"frames": "$.Frames"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"$else": {
|
|
"call": {
|
|
"onmenuframe": true,
|
|
"method": "setBackground",
|
|
"args": "$res $.@global.CurrentBackgroundImage"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"controller": "category",
|
|
"view": "menu3.containers.ScrollingTabsContainer",
|
|
"direction": "horizontal",
|
|
"ncols": 10,
|
|
"data": {
|
|
"direction": "horizontal",
|
|
"overflowscrolling": "0.45",
|
|
"buttonprompts": [
|
|
{
|
|
"actiontype": ["lb", "rb"],
|
|
"actionlabel": "$loc UI_BUTTON_PROMPTS_BROWSE_CATEGORIES"
|
|
}
|
|
]
|
|
},
|
|
"children": [
|
|
{
|
|
"id": "category_featured",
|
|
"controller": "categoryitem",
|
|
"view": "menu3.basic.CategoryElement",
|
|
"data": {
|
|
"title": "$loc UI_MENU_PAGE_HUB_FEATURED",
|
|
"icon": "featured"
|
|
},
|
|
"actions": {
|
|
"activated": {
|
|
"set-value": {
|
|
"target": "$.@global.CurrentBackgroundImage",
|
|
"value": "images/backgrounds/menu_bg.jpg"
|
|
}
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"$if $not $isonline": {
|
|
"$then": {
|
|
"$include": {
|
|
"$path": "menusystem/pages/hub/dashboard/dashboard_offline.json"
|
|
}
|
|
},
|
|
"$else": {
|
|
"$include": {
|
|
"$path": "menusystem/pages/hub/dashboard/dashboard.json"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$if $.IsFullMenuAvailable": {
|
|
"$then": {
|
|
"controller": "categoryitem",
|
|
"view": "menu3.basic.CategoryElement",
|
|
"_comment": "do not change this id - is used by challenge goto location!",
|
|
"id": "location_tab",
|
|
"data": {
|
|
"title": "$loc UI_MENU_PAGE_HUB_DESTINATIONS",
|
|
"icon": "location"
|
|
},
|
|
"children": [
|
|
{
|
|
"$include": {
|
|
"$path": "menusystem/pages/hub/destinationssubmenu.json"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"$if $.IsFullMenuAvailable": {
|
|
"$then": {
|
|
"controller": "categoryitem",
|
|
"view": "menu3.basic.CategoryElement",
|
|
"id": "category_story",
|
|
"data": {
|
|
"title": "$loc UI_MENU_PAGE_HUB_CAMPAIGNS",
|
|
"icon": "story"
|
|
},
|
|
"children": [
|
|
{
|
|
"$include": {
|
|
"$path": "menusystem/pages/hub/story/storyoverview.json"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"$if $.IsFullMenuAvailable": {
|
|
"$then": {
|
|
"$if $not $isonline": {
|
|
"$then": {
|
|
"$include": {
|
|
"$path": "menusystem/pages/hub/gamemodes/gamemodesoverview_locked.json"
|
|
}
|
|
},
|
|
"$else": {
|
|
"$include": {
|
|
"$path": "menusystem/pages/hub/gamemodes/gamemodesoverview.json"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"$if $.IsFullMenuAvailable": {
|
|
"$then": {
|
|
"$if $not $isonline": {
|
|
"$then": {
|
|
"$include": {
|
|
"$path": "menusystem/pages/hub/career_locked.json"
|
|
}
|
|
},
|
|
"$else": {
|
|
"$include": {
|
|
"$path": "menusystem/pages/hub/career.json"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"$if $.IsFullMenuAvailable": {
|
|
"$then": {
|
|
"$if $isonline": {
|
|
"$then": {
|
|
"$include": {
|
|
"$path": "menusystem/pages/hub/store/store.json"
|
|
}
|
|
},
|
|
"$else": null
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"$include": {
|
|
"$path": "menusystem/pages/hub/settings.json"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|