1
mirror of https://github.com/thepeacockproject/Peacock synced 2024-11-22 22:12:45 +01:00
Peacock/static/Roadmap.json
Reece Dunham 55b3a8928b
Update ingame roadmap
Signed-off-by: Reece Dunham <me@rdil.rocks>
2023-03-27 09:06:31 -04:00

81 lines
3.3 KiB
JSON

{
"$datacontext": {
"in": "$.",
"datavalues": {
"_comment": "changing the Tag will show the modal again for all players one time only on startup - only do that if we have new content to show",
"Tag": "PeacockV6Release2023",
"Url": "https://thepeacockproject.org/wiki/roadmaps#v6-release",
"ForceOpenModal": "$.ForceOpenModal"
},
"do": {
"$if": {
"$condition": {
"$or": [
"$not $eq ($gamepersistentdata marketingmodal_roadmap,$.Tag)",
"$.ForceOpenModal"
]
},
"$then": {
"show-modal": {
"config": {
"view": "menu3.modal.ModalDialogGeneric",
"buttons": [
"$loc UI_DIALOG_SHOW_DETAILS",
{
"label": "$loc UI_DIALOG_CANCEL",
"type": "cancel"
}
],
"data": {
"dialogWidth": 1320,
"frameheightmax": 900,
"information": [
{
"image": "$res images/generic/v6-release-graphic.png",
"imageheight": 720
}
]
}
},
"onbutton": [
[
{
"open-url": {
"url": "$.Url"
}
},
{
"set-game-persistent-data": {
"key": "marketingmodal_roadmap",
"value": "$.Tag"
}
},
{
"set-value": {
"target": "$.@global.OtherModalWasShown",
"value": true
}
}
],
[
{
"set-game-persistent-data": {
"key": "marketingmodal_roadmap",
"value": "$.Tag"
}
},
{
"set-value": {
"target": "$.@global.OtherModalWasShown",
"value": true
}
}
]
]
}
}
}
}
}
}