-
Notifications
You must be signed in to change notification settings - Fork 21
This page lists the available BML components and their attributes. Bold attributes are required.
BML is structured into hierarchical nodes. Each node has a type, any number of attributes and any number of child nodes.
A node without attributes and child nodes consists of only the type followed by a semicolon
type;
A node with attributes or child nodes consists of the type and the attributes and child nodes enclosed in curly braces. Attribute name and value are separated by the equals sign and are followed by a semicolon. The value must be enclosed in double quotation marks. The parser does not allow double quotation marks in attribute values.
type{attribute1="value";attribute2="value";child1;child2{attribute3="value"}}
All form data elements have an id attribute. The contents or selection of the form data element is returned in the answer with key id.
Text input
- id
- onenter
- enabled: "true", "false"
- text
- maxchars
- maxlines
- color
- bgcolor
- bgtexture
Data passed through the dialog. The entry is not displayed but returned in the answer.
- id
- text: value
Dropdown list
- id
- options: "value1,value2,value3"
- default: index of default option
- id
- text
- confirm
- question
- hover
- default
- id
- text
- hover
- group
- selected
- enabled
- hidden
- id
- text
- confirm
- question
- unconfirm
- unquestion
- hover
- selected
- enabled
- color
- color: "r,g,b"
- size: "width,height"
Styled text
- text
- type: "italic", "bold", "bolditalic"
- hover
Large text
- text
- cols
The table is filled with children until the last complete row is done. I.e a table with 3 cols and 13 children will have 4 rows. The lonely entry on the last row is ignored.
Border layout. Children are added in the following order:
- North
- West
- Center
- East
- South
- vertical: "true", "false"
- horizontal: "true", "false"
- rescale: "true", "false"
- rescale: "true", "false"
Align left
Align right
Align center
- src: resource name or URL starting with http://
- text: hover text
- id
- showheader
- height
- cols
"col" and "row" child nodes
- text
- width
- id
- name
- hover
- rarity: int
- children: int
"col" child nodes
- id
- text
- checkbox
- selected