Add a key for validation.

The key isn't used yet but is planned. Found by Sytyi's validation code.
This commit is contained in:
Mark de Wever 2011-08-23 19:41:18 +00:00
parent 15c616c89c
commit d6dbd88628
2 changed files with 94 additions and 0 deletions

View file

@ -480,6 +480,11 @@
type="string"
default=""
[/key]
[key]
name="size_text"
type="t_string"
default=""
[/key]
[key]
name="tooltip"
type="t_string"
@ -1899,5 +1904,91 @@
mandatory="true"
[/key]
[/tag]
[tag]
name="wml_schema"
min="0"
max="0"
[tag]
name="tag"
min="0"
max="1"
[tag]
name="key"
min="0"
max="-1"
[key]
name="default"
type="string"
mandatory="true"
[/key]
[key]
name="mandatory"
type="string"
mandatory="true"
[/key]
[key]
name="name"
type="string"
mandatory="true"
[/key]
[key]
name="type"
type="string"
mandatory="true"
[/key]
[/tag]
[tag]
name="link"
min="0"
max="-1"
[key]
name="name"
type="string"
mandatory="true"
[/key]
[/tag]
[tag]
name="tag"
min="0"
max="-1"
super="wml_schema/tag"
[/tag]
[key]
name="max"
type="int"
mandatory="true"
[/key]
[key]
name="min"
type="int"
mandatory="true"
[/key]
[key]
name="name"
type="string"
mandatory="true"
[/key]
[key]
name="super"
type="string"
default=""
[/key]
[/tag]
[tag]
name="type"
min="0"
max="-1"
[key]
name="name"
type="string"
mandatory="true"
[/key]
[key]
name="value"
type="string"
mandatory="true"
[/key]
[/tag]
[/tag]
[/tag]
[/wml_schema]

View file

@ -147,6 +147,9 @@ void tbuilder_control::init_control(tcontrol* control) const
* @* 2 floodfill the widget area. $
*
* debug_border_color & color & "" & The color of the debug border. $
* size_text & t_string & "" & Sets the minimum width of the widget
* depending on the text in it. (Note not
* implemented yet.) $
* @end{table}
* @end{tag}{name="widget_instance"}
* @end{parent}{name="generic/"}