-
Notifications
You must be signed in to change notification settings - Fork 6
/
MoulConfig.xsd
1 lines (1 loc) · 7.86 KB
/
MoulConfig.xsd
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?><xs:schema xmlns="http://notenoughupdates.org/moulconfig" xmlns:moulconfig="http://notenoughupdates.org/moulconfig" elementFormDefault="qualified" targetNamespace="http://notenoughupdates.org/moulconfig" xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element abstract="true" name="AnyWidget"/><xs:complexType name="Widgetless"/><xs:complexType name="SingleWidget"><xs:sequence><xs:element ref="moulconfig:AnyWidget"/></xs:sequence></xs:complexType><xs:complexType name="MultiWidget"><xs:sequence maxOccurs="unbounded" minOccurs="0"><xs:element ref="moulconfig:AnyWidget"/></xs:sequence></xs:complexType><xs:complexType name="TwoWidget"><xs:sequence maxOccurs="2" minOccurs="2"><xs:element ref="moulconfig:AnyWidget"/></xs:sequence></xs:complexType><xs:complexType name="Text"><xs:complexContent><xs:extension base="moulconfig:Widgetless"><xs:attribute name="split"/><xs:attribute name="shadow"/><xs:attribute name="textAlign"/><xs:attribute name="width"/><xs:attribute name="text" use="required"/></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="Scale"><xs:complexContent><xs:extension base="moulconfig:SingleWidget"><xs:attribute name="scale" use="required"/></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="Indirect"><xs:complexContent><xs:extension base="moulconfig:Widgetless"><xs:attribute name="value" use="required"/></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="Fragment"><xs:complexContent><xs:extension base="moulconfig:Widgetless"><xs:attribute name="value" use="required"/><xs:attribute name="bind"/></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="Align"><xs:complexContent><xs:extension base="moulconfig:SingleWidget"><xs:attribute name="horizontal"/><xs:attribute name="vertical"/></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="Center"><xs:complexContent><xs:extension base="moulconfig:SingleWidget"/></xs:complexContent></xs:complexType><xs:complexType name="Meta"><xs:complexContent><xs:extension base="moulconfig:Widgetless"><xs:attribute name="beforeClose"/><xs:attribute name="afterClose"/><xs:attribute name="requestClose"/></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="Root"><xs:complexContent><xs:extension base="moulconfig:SingleWidget"/></xs:complexContent></xs:complexType><xs:complexType name="Slider"><xs:complexContent><xs:extension base="moulconfig:Widgetless"><xs:attribute name="minValue" use="required"/><xs:attribute name="maxValue" use="required"/><xs:attribute name="minStep"/><xs:attribute name="width"/><xs:attribute name="value" use="required"/></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="Row"><xs:complexContent><xs:extension base="moulconfig:MultiWidget"/></xs:complexContent></xs:complexType><xs:complexType name="Collapsible"><xs:complexContent><xs:extension base="moulconfig:SingleWidget"><xs:attribute name="title" use="required"/><xs:attribute name="value"/></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="Gui"><xs:complexContent><xs:extension base="moulconfig:SingleWidget"/></xs:complexContent></xs:complexType><xs:complexType name="TextField"><xs:complexContent><xs:extension base="moulconfig:Widgetless"><xs:attribute name="value" use="required"/><xs:attribute name="width"/><xs:attribute name="editable"/><xs:attribute name="suggestion"/></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="Tabs"><xs:complexContent><xs:extension base="Tabs.Content"><xs:attribute name="selectedTabIndex"/><xs:attribute name="initialSelectedTabIndex"/></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="Tabs.Content"><xs:sequence maxOccurs="unbounded"><xs:element name="Tab"><xs:complexType><xs:sequence><xs:element name="Tab.Header" type="SingleWidget"/><xs:element name="Tab.Body" type="SingleWidget"/></xs:sequence></xs:complexType></xs:element></xs:sequence></xs:complexType><xs:complexType name="ScrollPanel"><xs:complexContent><xs:extension base="moulconfig:SingleWidget"><xs:attribute name="width" use="required"/><xs:attribute name="height" use="required"/></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="ItemStack"><xs:complexContent><xs:extension base="moulconfig:Widgetless"><xs:attribute name="value" use="required"/></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="When"><xs:complexContent><xs:extension base="moulconfig:TwoWidget"><xs:attribute name="condition" use="required"/></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="Panel"><xs:complexContent><xs:extension base="moulconfig:SingleWidget"><xs:attribute name="insets"/><xs:attribute name="background"/></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="Array"><xs:complexContent><xs:extension base="moulconfig:SingleWidget"><xs:attribute name="evenBackground"/><xs:attribute name="data" use="required"/><xs:attribute name="oddBackground"/></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="Hover"><xs:complexContent><xs:extension base="moulconfig:SingleWidget"><xs:attribute name="lines" use="required"/></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="Spacer"><xs:complexContent><xs:extension base="moulconfig:Widgetless"><xs:attribute name="width"/><xs:attribute name="height"/></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="Column"><xs:complexContent><xs:extension base="moulconfig:MultiWidget"/></xs:complexContent></xs:complexType><xs:complexType name="Button"><xs:complexContent><xs:extension base="moulconfig:SingleWidget"><xs:attribute name="margin"/><xs:attribute name="onClick" use="required"/></xs:extension></xs:complexContent></xs:complexType><xs:complexType name="Switch"><xs:complexContent><xs:extension base="moulconfig:Widgetless"><xs:attribute name="animationSpeed"/><xs:attribute name="value" use="required"/></xs:extension></xs:complexContent></xs:complexType><xs:element name="Text" substitutionGroup="moulconfig:AnyWidget" type="Text"/><xs:element name="Scale" substitutionGroup="moulconfig:AnyWidget" type="Scale"/><xs:element name="Indirect" substitutionGroup="moulconfig:AnyWidget" type="Indirect"/><xs:element name="Fragment" substitutionGroup="moulconfig:AnyWidget" type="Fragment"/><xs:element name="Align" substitutionGroup="moulconfig:AnyWidget" type="Align"/><xs:element name="Center" substitutionGroup="moulconfig:AnyWidget" type="Center"/><xs:element name="Meta" substitutionGroup="moulconfig:AnyWidget" type="Meta"/><xs:element name="Root" substitutionGroup="moulconfig:AnyWidget" type="Root"/><xs:element name="Slider" substitutionGroup="moulconfig:AnyWidget" type="Slider"/><xs:element name="Row" substitutionGroup="moulconfig:AnyWidget" type="Row"/><xs:element name="Collapsible" substitutionGroup="moulconfig:AnyWidget" type="Collapsible"/><xs:element name="Gui" substitutionGroup="moulconfig:AnyWidget" type="Gui"/><xs:element name="TextField" substitutionGroup="moulconfig:AnyWidget" type="TextField"/><xs:element name="Tabs" substitutionGroup="moulconfig:AnyWidget" type="Tabs"/><xs:element name="ScrollPanel" substitutionGroup="moulconfig:AnyWidget" type="ScrollPanel"/><xs:element name="ItemStack" substitutionGroup="moulconfig:AnyWidget" type="ItemStack"/><xs:element name="When" substitutionGroup="moulconfig:AnyWidget" type="When"/><xs:element name="Panel" substitutionGroup="moulconfig:AnyWidget" type="Panel"/><xs:element name="Array" substitutionGroup="moulconfig:AnyWidget" type="Array"/><xs:element name="Hover" substitutionGroup="moulconfig:AnyWidget" type="Hover"/><xs:element name="Spacer" substitutionGroup="moulconfig:AnyWidget" type="Spacer"/><xs:element name="Column" substitutionGroup="moulconfig:AnyWidget" type="Column"/><xs:element name="Button" substitutionGroup="moulconfig:AnyWidget" type="Button"/><xs:element name="Switch" substitutionGroup="moulconfig:AnyWidget" type="Switch"/></xs:schema>