-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathModuleConfig.xsd
692 lines (663 loc) · 32.9 KB
/
ModuleConfig.xsd
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="2.0">
<xs:simpleType name="pluginTypeEnum">
<xs:annotation>
<xs:documentation>The possible plugin types.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Required">
<xs:annotation>
<xs:documentation>Indicates the plugin must be installed.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Optional">
<xs:annotation>
<xs:documentation>Indicates the plugin is optional.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Recommended">
<xs:annotation>
<xs:documentation>Indicates the plugin is recommended for stability.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="NotUsable">
<xs:annotation>
<xs:documentation>Indicates that using the plugin could result in instability (i.e., a prerequisite plugin is missing).</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="CouldBeUsable">
<xs:annotation>
<xs:documentation>
Indicates that using the plugin could result in instability if loaded
with the currently active plugins (i.e., a prerequisite plugin is missing),
but that the prerequisite plugin is installed, just not activated.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="pluginType">
<xs:annotation>
<xs:documentation>The type of a given plugin.</xs:documentation>
</xs:annotation>
<xs:attribute name="name" use="required" type="pluginTypeEnum">
<xs:annotation>
<xs:documentation>The name of the plugin type.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="fileDependency">
<xs:annotation>
<xs:documentation>A mod upon which the type of a plugin depends.</xs:documentation>
</xs:annotation>
<xs:attribute name="file" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The file of the mod upon which a the plugin depends.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="state" use="required">
<xs:annotation>
<xs:documentation>The state of the mod file.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Missing">
<xs:annotation>
<xs:documentation>Indicates the mod file is not installed.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Inactive">
<xs:annotation>
<xs:documentation>Indicates the mod file is installed, but not active.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Active">
<xs:annotation>
<xs:documentation>Indicates the mod file is installed and active.</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:complexType name="flagDependency">
<xs:annotation>
<xs:documentation>A condition flag upon which the type of a plugin depends.</xs:documentation>
</xs:annotation>
<xs:attribute name="flag" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The name of the condition flag upon which a the plugin depends.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="value" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The value of the condition flag upon which a the plugin depends.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:group name="dependencyTypesGroup">
<xs:annotation>
<xs:documentation>The group of possible dependencies.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice maxOccurs="unbounded">
<xs:element name="fileDependency" type="fileDependency" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Specifies that a mod must be in a specified state.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="flagDependency" type="flagDependency" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Specifies that a condition flag must have a specific value.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="gameDependency" type="versionDependency" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies a minimum required version of the installed game.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="fommDependency" type="versionDependency" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Specifies a minimum required version of FOMM.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="dependencies" type="compositeDependency">
<xs:annotation>
<xs:documentation>A list of mods and their states against which to match the user's installation.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:complexType name="compositeDependency">
<xs:annotation>
<xs:documentation>A dependency that is made up of one or more dependencies.</xs:documentation>
</xs:annotation>
<xs:group ref="dependencyTypesGroup"/>
<xs:attribute name="operator" default="And">
<xs:annotation>
<xs:documentation>The relation of the contained dependencies.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="And">
<xs:annotation>
<xs:documentation>Indicates all contained dependencies must be satisfied in order for this dependency to be satisfied.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Or">
<xs:annotation>
<xs:documentation>Indicates at least one listed dependency must be satisfied in order for this dependency to be satisfied.</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:complexType name="dependencyPattern">
<xs:annotation>
<xs:documentation>A pattern of mod files and condition flags that determine the type of a plugin.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="dependencies" type="compositeDependency">
<xs:annotation>
<xs:documentation>The list of mods and their states against which to match the user's installation.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="type" type="pluginType">
<xs:annotation>
<xs:documentation>The type of the plugin.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="dependencyPatternList">
<xs:annotation>
<xs:documentation>A list of dependency patterns.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="pattern" type="dependencyPattern" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A specific pattern of mod files and condition flags against which to match the user's installation.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="dependencyPluginType">
<xs:annotation>
<xs:documentation>A plugin type that is dependent upon the state of other mods.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="defaultType" type="pluginType">
<xs:annotation>
<xs:documentation>The default type of the plugin used if none of the specified dependency states are satisfied.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="patterns" type="dependencyPatternList">
<xs:annotation>
<xs:documentation>The list of dependency patterns against which to match the user's installation. The first pattern that matches the user's installation determines the type of the plugin.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="pluginTypeDescriptor">
<xs:annotation>
<xs:documentation>Describes the type of a plugin.</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:element name="dependencyType" type="dependencyPluginType">
<xs:annotation>
<xs:documentation>Used when the plugin type is dependent upon the state of other mods.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="type" type="pluginType">
<xs:annotation>
<xs:documentation>The type of the plugin.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:complexType name="image">
<xs:annotation>
<xs:documentation>An image.</xs:documentation>
</xs:annotation>
<xs:attribute name="path" use="required">
<xs:annotation>
<xs:documentation>The path to the image in the FOMod.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="headerImage">
<xs:annotation>
<xs:documentation>An image.</xs:documentation>
</xs:annotation>
<xs:attribute name="path" use="optional" type="xs:string">
<xs:annotation>
<xs:documentation>The path to the image in the FOMod. If omitted the FOMod's screenshot is used.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="showImage" type="xs:boolean" default="true" use="optional">
<xs:annotation>
<xs:documentation>Whether or not the image should be displayed.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="showFade" type="xs:boolean" default="true" use="optional">
<xs:annotation>
<xs:documentation>Whether or not the fade effect should be displayed. This value is ignored if showImage is false.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="height" type="xs:int" default="-1" use="optional">
<xs:annotation>
<xs:documentation>The height to use for the image. Note that there is a minimum height that is enforced based on the user's settings.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="plugin">
<xs:annotation>
<xs:documentation>A plugin.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="description" type="xs:string">
<xs:annotation>
<xs:documentation>A description of the plugin.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="image" type="image" minOccurs="0">
<xs:annotation>
<xs:documentation>The optional image associated with a plugin.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice>
<xs:sequence>
<xs:element name="files" type="fileList">
<xs:annotation>
<xs:documentation>The list of files and folders that need to be installed for the plugin.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="conditionFlags" type="conditionFlagList" minOccurs="0">
<xs:annotation>
<xs:documentation>The list of condition flags to set if the plugin is in the appropriate state.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:sequence>
<xs:element name="conditionFlags" type="conditionFlagList">
<xs:annotation>
<xs:documentation>The list of condition flags to set if the plugin is in the appropriate state.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="files" type="fileList" minOccurs="0">
<xs:annotation>
<xs:documentation>The list of files and folders that need to be installed for the plugin.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:choice>
<xs:element name="typeDescriptor" type="pluginTypeDescriptor">
<xs:annotation>
<xs:documentation>Describes the type of the plugin.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The name of the plugin.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:simpleType name="orderEnum">
<xs:annotation>
<xs:documentation>The possible orders of items.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Ascending">
<xs:annotation>
<xs:documentation>Indicates the items are to be ordered ascending alphabetically.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Descending">
<xs:annotation>
<xs:documentation>Indicates the items are to be ordered descending alphabetically.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Explicit">
<xs:annotation>
<xs:documentation>Indicates the items are to be ordered as listed in the configuration file.</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="pluginList">
<xs:annotation>
<xs:documentation>A list of plugins.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="plugin" type="plugin" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A mod plugin belonging to a group.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="order" type="orderEnum" use="optional" default="Ascending">
<xs:annotation>
<xs:documentation>The order by which to list the plugins.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="group">
<xs:annotation>
<xs:documentation>A group of plugins.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="plugins" type="pluginList">
<xs:annotation>
<xs:documentation>The list of plugins in the group.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The name of the group.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="type" use="required">
<xs:annotation>
<xs:documentation>The type of the group.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="SelectAtLeastOne">
<xs:annotation>
<xs:documentation>At least one plugin in the group must be selected.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="SelectAtMostOne">
<xs:annotation>
<xs:documentation>At most one plugin in the group must be selected.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="SelectExactlyOne">
<xs:annotation>
<xs:documentation>Exactly one plugin in the group must be selected.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="SelectAll">
<xs:annotation>
<xs:documentation>All plugins in the group must be selected.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="SelectAny">
<xs:annotation>
<xs:documentation>Any number of plugins in the group may be selected.</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:complexType name="groupList">
<xs:annotation>
<xs:documentation>A list of plugin groups.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="group" type="group" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A group of plugins for the mod.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="order" type="orderEnum" use="optional" default="Ascending">
<xs:annotation>
<xs:documentation>The order by which to list the groups.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="stepList">
<xs:annotation>
<xs:documentation>A list of install steps.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="installStep" type="installStep" minOccurs="1" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A list of install steps for the mod.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="order" type="orderEnum" use="optional" default="Ascending">
<xs:annotation>
<xs:documentation>The order by which to list the steps.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="installStep">
<xs:annotation>
<xs:documentation>A step in the install process containing groups of optional plugins.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="visible" type="compositeDependency" minOccurs="0">
<xs:annotation>
<xs:documentation>The pattern against which to match the conditional flags and installed files. If the pattern is matched, then the install step will be visible.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="optionalFileGroups" type="groupList" minOccurs="1">
<xs:annotation>
<xs:documentation>The list of optional files (or plugins) that may optionally be installed for this module.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The name of the install step.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="fileSystemItem">
<xs:annotation>
<xs:documentation>A file or folder that may be installed as part of a module or plugin.</xs:documentation>
</xs:annotation>
<xs:attribute name="source" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The path to the file or folder in the FOMod.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="destination" type="xs:string">
<xs:annotation>
<xs:documentation>The path to which the file or folder should be installed. If omitted, the destination is the same as the source.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="alwaysInstall" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>Indicates that the file or folder should always be installed, regardless of whether or not the plugin has been selected.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="installIfUsable" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>Indicates that the file or folder should always be installed if the plugin is not NotUsable, regardless of whether or not the plugin has been selected.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="priority" type="xs:integer" default="0">
<xs:annotation>
<xs:documentation>A number describing the relative priority of the file or folder. A higher number indicates the file or folder should be installed after the items with lower numbers. This value does not have to be unique.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="fileList">
<xs:annotation>
<xs:documentation>A list of files and folders.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element name="file" type="fileSystemItem" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A file belonging to the plugin or module.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="folder" type="fileSystemItem" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A folder belonging to the plugin or module.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name="setConditionFlag">
<xs:annotation>
<xs:documentation>A condition flag to set if a plugin is selected.</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>The identifying name of the condition flag.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="conditionFlagList">
<xs:annotation>
<xs:documentation>A list of condition flags to set if a plugin is in the appropriate state.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="flag" type="setConditionFlag" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A condition flag to set if the plugin is selected.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="versionDependency">
<xs:annotation>
<xs:documentation>A required minimum version of an item.</xs:documentation>
</xs:annotation>
<xs:attribute name="version" type=" xs:string" use="required">
<xs:annotation>
<xs:documentation>The required minimum version of the item.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="conditionalInstallPattern">
<xs:annotation>
<xs:documentation>A pattern of mod files and conditional flags that determine whether to instal specific files.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="dependencies" type="compositeDependency">
<xs:annotation>
<xs:documentation>The list of mods and their states against which to match the user's installation.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="files" type="fileList">
<xs:annotation>
<xs:documentation>The files and filders to install if the pattern is matched.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="conditionalInstallPatternList">
<xs:annotation>
<xs:documentation>A list of conditional install patterns.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="pattern" type="conditionalInstallPattern" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A specific pattern of mod files and condition flags against which to match the user's installation.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="conditionalFileInstallList">
<xs:annotation>
<xs:documentation>A list of optional files that may optionally be installed for this module, base on condition flags.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="patterns" type="conditionalInstallPatternList">
<xs:annotation>
<xs:documentation>The list of patterns against which to match the conditional flags and installed files. All matching patterns will have their files installed.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="moduleTitle">
<xs:annotation>
<xs:documentation>Describes the display properties of the module title.</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="position" use="optional" default="Left">
<xs:annotation>
<xs:documentation>The identifying name of the condition flag.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:annotation>
<xs:documentation>The possible title positions.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="Left">
<xs:annotation>
<xs:documentation>Positions the title on the left side of the form header.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="Right">
<xs:annotation>
<xs:documentation>Positions the title on the right side of the form header.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="RightOfImage">
<xs:annotation>
<xs:documentation>Positions the title on the right side of the image in the form header.</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="colour" use="optional" default="000000" type="xs:hexBinary">
<xs:annotation>
<xs:documentation>The colour to use for the title.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="moduleConfiguration">
<xs:annotation>
<xs:documentation>Describes the configuration of a module.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="moduleName" type="moduleTitle">
<xs:annotation>
<xs:documentation>The name of the module.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="moduleImage" type="headerImage" minOccurs="0">
<xs:annotation>
<xs:documentation>The module logo.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="moduleDependencies" type="compositeDependency" minOccurs="0">
<xs:annotation>
<xs:documentation>Items upon which the module depends.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="requiredInstallFiles" type="fileList" minOccurs="0">
<xs:annotation>
<xs:documentation>The list of files and folders that must be installed for this module.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="installSteps" type="stepList" minOccurs="0">
<xs:annotation>
<xs:documentation>The list of install steps that determine which files (or plugins) that may optionally be installed for this module.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="conditionalFileInstalls" type="conditionalFileInstallList" minOccurs="0">
<xs:annotation>
<xs:documentation>The list of optional files that may optionally be installed for this module, base on condition flags.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:element name="config" type="moduleConfiguration">
<xs:annotation>
<xs:documentation>The main element containing the module configuration info.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>