wesnoth/data/gui/default/widget/toggle_panel_default.cfg
Mark de Wever 2cbe565950 Add new proof-of-concept toggle panel.
Drawing on the panel still has glitches.

Events are send to the panel not to the widget.

Sapient sorry for breaking the coding standard too lazy do convert the
0's ;-).
2008-06-22 17:49:58 +00:00

97 lines
1.4 KiB
INI

###
### Definition of the default toggle panel.
###
# FIXME we should use a background image instead of a filled rect.
#define RECT BORDER_COLOUR FILL_COLOUR
[rectangle]
x = 0
y = 0
w = "(width)"
h = "(height)"
border_thickness = 1
border_colour = {BORDER_COLOUR}
fill_colour = {FILL_COLOUR}
[/rectangle]
#enddef
[toggle_panel_definition]
id = "default"
description = "Default panel"
[resolution]
min_width = 0
min_height = 0
default_width = 0
default_height = 0
max_width = 0
max_height = 0
[state_enabled]
full_redraw = "true"
[draw]
{RECT "" "0, 0, 0, 255"}
[/draw]
[/state_enabled]
[state_disabled]
full_redraw = "true"
[draw]
{RECT "" "128, 128, 128, 255"}
[/draw]
[/state_disabled]
[state_focussed]
full_redraw = "true"
[draw]
{RECT "" "0, 0, 0, 255"}
[/draw]
[/state_focussed]
###
### Selected
###
[state_enabled_selected]
full_redraw = "true"
[draw]
{RECT "170, 136, 67, 255" "9, 33, 54, 255"}
[/draw]
[/state_enabled_selected]
[state_disabled_selected]
full_redraw = "true"
[draw]
{RECT "170, 136, 67, 255" "128, 128, 128, 255"}
[/draw]
[/state_disabled_selected]
[state_focussed_selected]
full_redraw = "true"
[draw]
{RECT "170, 136, 67, 255" "9, 33, 54, 255"}
[/draw]
[/state_focussed_selected]
[/resolution]
[/toggle_panel_definition]
#undef RECT