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>
81 lines
3.3 KiB
JSON
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": "PeacockV5Release2022",
|
|
"Url": "https://thepeacockproject.org/wiki/roadmaps#v5-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/peacock-v5-roadmap.jpg",
|
|
"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
|
|
}
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|