wesnoth/data/gui/widget/toggle_panel_default.cfg
2016-03-20 01:11:10 +11:00

96 lines
1.3 KiB
INI

#textdomain wesnoth-lib
###
### Definition of the default toggle panel.
###
#define _GUI_RECT FILL_COLOR
[rectangle]
x = 0
y = 0
w = "(width)"
h = "(height)"
fill_color = {FILL_COLOR}
[/rectangle]
#enddef
[toggle_panel_definition]
id = "default"
description = "Default panel"
[resolution]
# The minimum required height is due to the size required for
# {GUI__LISTBOX_SELECTED_CELL}
# The issue was found bug #22144
# Bug #22046 showed the minimum width should also be set.
min_width = 26
min_height = 26
default_width = 0
default_height = 0
max_width = 0
max_height = 0
[state]
[enabled]
[draw]
{_GUI_RECT ({GUI__BACKGROUND_COLOR_ENABLED}) }
[/draw]
[/enabled]
[disabled]
[draw]
{_GUI_RECT ({GUI__BACKGROUND_COLOR_DISABLED}) }
[/draw]
[/disabled]
[focused]
[draw]
{_GUI_RECT ({GUI__BACKGROUND_COLOR_ENABLED}) }
[/draw]
[/focused]
[/state]
###
### Selected
###
[state]
[enabled]
[draw]
{GUI__LISTBOX_SELECTED_CELL}
[/draw]
[/enabled]
[disabled]
[draw]
{GUI__LISTBOX_SELECTED_CELL}
[/draw]
[/disabled]
[focused]
[draw]
{GUI__LISTBOX_SELECTED_CELL}
[/draw]
[/focused]
[/state]
[/resolution]
[/toggle_panel_definition]
#undef _GUI_RECT