mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 02:19:29 +00:00
250 lines
9.2 KiB
INI
250 lines
9.2 KiB
INI
|
|
[tag]
|
|
name="$generic"
|
|
min="0"
|
|
max="0"
|
|
[tag]
|
|
name="listbox_grid"
|
|
min="0"
|
|
max="infinite"
|
|
[tag]
|
|
name="row"
|
|
min="0"
|
|
max="infinite"
|
|
[tag]
|
|
name="column"
|
|
min="0"
|
|
max="infinite"
|
|
super="$cell"
|
|
{LINK_TAG "$cell/toggle_button"}
|
|
{LINK_TAG "$cell/toggle_panel"}
|
|
{DEFAULT_KEY "icon" t_string ""}
|
|
{DEFAULT_KEY "label" t_string ""}
|
|
{DEFAULT_KEY "tooltip" t_string ""}
|
|
{DEFAULT_KEY "help" t_string ""}
|
|
[tag]
|
|
name="widget"
|
|
min="0"
|
|
max="infinite"
|
|
{DEFAULT_KEY "id" string ""}
|
|
{DEFAULT_KEY "icon" t_string ""}
|
|
{DEFAULT_KEY "label" any ""}
|
|
{DEFAULT_KEY "tooltip" t_string ""}
|
|
{DEFAULT_KEY "help" t_string ""}
|
|
[/tag]
|
|
[/tag]
|
|
{DEFAULT_KEY "grow_factor" unsigned 0}
|
|
[/tag]
|
|
[/tag]
|
|
[tag]
|
|
name="shape"
|
|
min="0"
|
|
max="1"
|
|
{DEFAULT_KEY "immutable" bool false}
|
|
[/tag]
|
|
[tag]
|
|
name="state"
|
|
min="0"
|
|
max="1"
|
|
[tag]
|
|
name="draw"
|
|
min="0"
|
|
max="0"
|
|
[tag]
|
|
name="circle"
|
|
min="0"
|
|
max="infinite"
|
|
super="$generic/shape"
|
|
{DEFAULT_KEY "border_color" f_color ""}
|
|
{DEFAULT_KEY "border_thickness" unsigned "1"}
|
|
{DEFAULT_KEY "fill_color" f_color ""}
|
|
{DEFAULT_KEY "debug" string ""}
|
|
{DEFAULT_KEY "radius" f_unsigned 0}
|
|
{DEFAULT_KEY "x" f_unsigned 0}
|
|
{DEFAULT_KEY "y" f_unsigned 0}
|
|
[/tag]
|
|
[tag]
|
|
name="image"
|
|
min="0"
|
|
max="infinite"
|
|
super="$generic/shape"
|
|
{DEFAULT_KEY "debug" string ""}
|
|
{DEFAULT_KEY "h" f_unsigned 0}
|
|
{DEFAULT_KEY "name" f_string ""}
|
|
{DEFAULT_KEY "resize_mode" resize_mode scale}
|
|
{DEFAULT_KEY "mirror" f_bool false}
|
|
{DEFAULT_KEY "w" f_unsigned 0}
|
|
{DEFAULT_KEY "x" f_unsigned 0}
|
|
{DEFAULT_KEY "y" f_unsigned 0}
|
|
{DEFAULT_KEY "actions" string ""}
|
|
{DEFAULT_KEY "image" string ""}
|
|
[/tag]
|
|
[tag]
|
|
name="line"
|
|
min="0"
|
|
max="infinite"
|
|
super="$generic/shape"
|
|
{DEFAULT_KEY "color" f_color ""}
|
|
{DEFAULT_KEY "debug" string ""}
|
|
{DEFAULT_KEY "thickness" unsigned 0}
|
|
{DEFAULT_KEY "x1" f_unsigned 0}
|
|
{DEFAULT_KEY "x2" f_unsigned 0}
|
|
{DEFAULT_KEY "y1" f_unsigned 0}
|
|
{DEFAULT_KEY "y2" f_unsigned 0}
|
|
{DEFAULT_KEY "alpha" f_unsigned 255}
|
|
[/tag]
|
|
[tag]
|
|
name="pre_commit"
|
|
min="0"
|
|
max="1"
|
|
super="$generic/shape"
|
|
[tag]
|
|
name="blur"
|
|
min="0"
|
|
max="1"
|
|
{DEFAULT_KEY "depth" unsigned 0}
|
|
[/tag]
|
|
[/tag]
|
|
[tag]
|
|
name="rectangle"
|
|
min="0"
|
|
max="infinite"
|
|
super="$generic/shape"
|
|
{DEFAULT_KEY "border_color" f_color ""}
|
|
{DEFAULT_KEY "border_thickness" unsigned 0}
|
|
{DEFAULT_KEY "debug" string ""}
|
|
{DEFAULT_KEY "fill_color" f_color ""}
|
|
{DEFAULT_KEY "h" f_unsigned 0}
|
|
{DEFAULT_KEY "w" f_unsigned 0}
|
|
{DEFAULT_KEY "x" f_unsigned 0}
|
|
{DEFAULT_KEY "y" f_unsigned 0}
|
|
[/tag]
|
|
[tag]
|
|
name="round_rectangle"
|
|
min="0"
|
|
max="infinite"
|
|
super="$generic/state/draw/rectangle"
|
|
{DEFAULT_KEY "corner_radius" f_unsigned 0}
|
|
[/tag]
|
|
[tag]
|
|
name="text"
|
|
min="0"
|
|
max="infinite"
|
|
super="$generic/shape"
|
|
{DEFAULT_KEY "color" f_color ""}
|
|
{DEFAULT_KEY "debug" string ""}
|
|
{DEFAULT_KEY "font_family" font_family "sans"}
|
|
{REQUIRED_KEY "font_size" f_unsigned}
|
|
{DEFAULT_KEY "font_style" font_style ""}
|
|
{DEFAULT_KEY "highlight_color" f_color "33, 83, 128"}
|
|
{DEFAULT_KEY "highlight_start" string ""}
|
|
{DEFAULT_KEY "highlight_end" string ""}
|
|
{DEFAULT_KEY "actions" string ""}
|
|
{DEFAULT_KEY "maximum_height" f_int -1}
|
|
{DEFAULT_KEY "maximum_width" f_int -1}
|
|
{DEFAULT_KEY "text" f_t_string ""}
|
|
{DEFAULT_KEY "text_alignment" f_h_align "left"}
|
|
{DEFAULT_KEY "text_markup" f_bool false}
|
|
{DEFAULT_KEY "text_link_aware" f_bool false}
|
|
{DEFAULT_KEY "text_link_color" f_color "255, 255, 0"}
|
|
{DEFAULT_KEY "text_wrap_mode" f_unsigned 0}
|
|
{DEFAULT_KEY "outline" f_bool false}
|
|
{DEFAULT_KEY "parse_text_as_formula" bool true}
|
|
{DEFAULT_KEY "h" f_unsigned 0}
|
|
{DEFAULT_KEY "w" f_unsigned 0}
|
|
{DEFAULT_KEY "x" f_unsigned 0}
|
|
{DEFAULT_KEY "y" f_unsigned 0}
|
|
[tag]
|
|
name="attribute"
|
|
min="0"
|
|
max="infinite"
|
|
{REQUIRED_KEY "name" string}
|
|
{DEFAULT_KEY "start" unsigned 0}
|
|
{SIMPLE_KEY "end" unsigned}
|
|
[switch]
|
|
key="name"
|
|
[case]
|
|
value="color,fgcolor,bgcolor,foreground,background"
|
|
{REQUIRED_KEY "value" string}
|
|
[/case]
|
|
[case]
|
|
value="font_size,size"
|
|
{REQUIRED_KEY "value" unsigned}
|
|
[/case]
|
|
[case]
|
|
value="font_family,face"
|
|
{REQUIRED_KEY "value" font_family}
|
|
[/case]
|
|
[case]
|
|
value="weight"
|
|
{REQUIRED_KEY "value" font_weight}
|
|
[/case]
|
|
[case]
|
|
value="style"
|
|
{REQUIRED_KEY "value" font_style}
|
|
[/case]
|
|
[case]
|
|
value="bold,b,italic,i,underline,u,normal"
|
|
# Nothing here
|
|
[/case]
|
|
# TODO: Forbid any other value
|
|
[/switch]
|
|
[/tag]
|
|
[/tag]
|
|
[/tag]
|
|
[/tag]
|
|
[tag]
|
|
name="widget_definition"
|
|
min="0"
|
|
max="1"
|
|
[tag]
|
|
name="resolution"
|
|
min="0"
|
|
max="infinite"
|
|
{DEFAULT_KEY "default_height" unsigned 0}
|
|
{DEFAULT_KEY "default_width" unsigned 0}
|
|
{DEFAULT_KEY "max_height" unsigned 0}
|
|
{DEFAULT_KEY "max_width" unsigned 0}
|
|
{DEFAULT_KEY "min_height" unsigned 0}
|
|
{DEFAULT_KEY "min_width" unsigned 0}
|
|
[tag]
|
|
name="linked_group"
|
|
min="0"
|
|
max="infinite"
|
|
{DEFAULT_KEY "fixed_height" bool false}
|
|
{DEFAULT_KEY "fixed_width" bool false}
|
|
{REQUIRED_KEY "id" string}
|
|
[/tag]
|
|
{DEFAULT_KEY "text_extra_height" unsigned 0}
|
|
{DEFAULT_KEY "text_extra_width" unsigned 0}
|
|
{DEFAULT_KEY "text_font_family" font_family "sans"}
|
|
{DEFAULT_KEY "text_font_size" f_unsigned 0}
|
|
{DEFAULT_KEY "text_font_style" font_style ""}
|
|
{DEFAULT_KEY "text_font_color_enabled" color ""}
|
|
{DEFAULT_KEY "text_font_color_disabled" color ""}
|
|
{DEFAULT_KEY "debug_border_color" color ""}
|
|
{DEFAULT_KEY "window_height" unsigned 0}
|
|
{DEFAULT_KEY "window_width" unsigned 0}
|
|
[/tag]
|
|
{REQUIRED_KEY "description" string}
|
|
{REQUIRED_KEY "id" string}
|
|
[/tag]
|
|
[tag]
|
|
name="widget_instance"
|
|
min="0"
|
|
max="infinite"
|
|
{DEFAULT_KEY "debug_border_color" color ""}
|
|
{DEFAULT_KEY "debug_border_mode" unsigned 0}
|
|
{DEFAULT_KEY "definition" string "default"}
|
|
{DEFAULT_KEY "help" t_string ""}
|
|
{DEFAULT_KEY "id" string ""}
|
|
{DEFAULT_KEY "label" t_string ""}
|
|
{DEFAULT_KEY "linked_group" string ""}
|
|
{DEFAULT_KEY "size_text" t_string ""}
|
|
{DEFAULT_KEY "tooltip" t_string ""}
|
|
{DEFAULT_KEY "use_tooltip_on_label_overflow" bool true}
|
|
{DEFAULT_KEY "use_markup" bool false}
|
|
{DEFAULT_KEY "can_shrink" bool false}
|
|
[/tag]
|
|
[/tag]
|