-
Notifications
You must be signed in to change notification settings - Fork 2
/
menu.json
113 lines (113 loc) · 3.43 KB
/
menu.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"$schema": "./schema.json",
"notificationList": [
{
"date": "{{release_date}}",
"title": "Updates for Open Rails",
"comment": "Checks ready_to_update",
"itemList": [
{
"$type":"ORTS.Record, Menu",
"label": "Latest version available",
"value": "{{latest_version}}"
},
{
"$type":"ORTS.Record, Menu",
"label": "Installed version",
"value": "{{installed_version}}"
},
{
"$type":"ORTS.Record, Menu",
"label": "Update mode",
"value": "{{update_mode}} (To change Update Mode, use Options > System.)"
},
{
"$type":"ORTS.Link, Menu",
"includeIf": ["ready_to_update"],
"label": "What's new",
"value": "Find out on-line what's new in this version.",
"stableUrl": "https://www.openrails.org/discover/latest_stable_version",
"testingUrl": "https://www.openrails.org/download/changes/",
"unstableUrl": "https://james-ross.co.uk/projects/or"
},
{
"$type":"ORTS.Update, Menu",
"includeIf": ["ready_to_update"],
"label": "Install",
"value": "Install the latest version"
},
{
"$type":"ORTS.Link, Menu",
"includeIfNot": ["ready_to_update"],
"value": "Find out on-line what was new in your installed version.",
"stableUrl": "https://www.openrails.org/discover/latest_stable_version",
"testingUrl": "https://www.openrails.org/download/changes/",
"unstableUrl": "https://james-ross.co.uk/projects/or",
"label": "What was new"
}
]
},
{
"date": "2023-08-31",
"title": "UK Train Sim closes",
"comment": "Announcement of general interest",
"itemList": [
{
"$type":"ORTS.Heading, Menu",
"label": "UK Train Sim"
},
{
"$type":"ORTS.Text, Menu",
"label": "After many years of providing UK-based content, UK Train Sim has closed."
},
{
"$type":"ORTS.Text, Menu",
"label": "The extensive file library has been stored on-line by the Internet Archive."
},
{
"$type":"ORTS.Link, Menu",
"label": "Archive",
"value": "Files are saved in batches of 1000 files, starting here:",
"url": "https://archive.org/details/ukts-archive-files-1-1000"
}
]
}
],
"checkList": [
{
"id": "ready_to_update",
"comment": "Include if latest_version != installed_version && update_mode != 'none'",
"anyOfList": [
{
"allOfList" : [
{
"$type":"ORTS.NotContains, Menu",
"property": "installed_version",
"value": "{{latest_version}}"
},
{
"$type":"ORTS.NotContains, Menu",
"property": "update_mode",
"value": "none"
}
]
}
]
},
{
"id": "demo_model_1_route_installed",
"comment": "Include if installed_routes.Coontains('SCE'), i.e. folder named for 'Scottish Capitals Express",
"anyOfList": [
{
"allOfList" : [
{
"$type":"ORTS.Contains, Menu",
"property": "{{installed_routes}}",
"value": "SCE"
}
]
}
]
}
]
}