wesnoth/data/gui/default/widget/toggle_button_icon.cfg
Mark de Wever 2a23ba1884 Cleanup part 5.
The full redraw flag is no longer needed since widgets are always fully
redrawn now.
2009-01-03 15:45:38 +00:00

116 lines
1.5 KiB
INI

#textdomain wesnoth-lib
###
### Definition of a toggle button with only a changing image.
### It's used for the editor in the resize grid. When needed it can also be
### extended for usage with other widgets.
###
#define _GUI_ICON SIZE
[image]
x = 0
y = 0
width = {SIZE}
height = {SIZE}
name = "(icon)"
[/image]
#enddef
#define _GUI_RESOLUTION RESOLUTION SIZE
[resolution]
{RESOLUTION}
min_width = {SIZE}
min_height = {SIZE}
default_width = {SIZE}
default_height = {SIZE}
max_width = {SIZE}
max_height = {SIZE}
text_extra_width = 0
text_font_size = 0
[state_enabled]
[draw]
{_GUI_ICON ({SIZE})}
[/draw]
[/state_enabled]
[state_disabled]
[draw]
{_GUI_ICON ({SIZE})}
[/draw]
[/state_disabled]
[state_focussed]
[draw]
{_GUI_ICON ({SIZE})}
[/draw]
[/state_focussed]
###
### Selected
###
[state_enabled_selected]
[draw]
{_GUI_ICON ({SIZE})}
[/draw]
[/state_enabled_selected]
[state_disabled_selected]
[draw]
{_GUI_ICON ({SIZE})}
[/draw]
[/state_disabled_selected]
[state_focussed_selected]
[draw]
{_GUI_ICON ({SIZE})}
[/draw]
[/state_focussed_selected]
[/resolution]
#enddef
[toggle_button_definition]
id = "icon"
description = "This toggle button is meant to be used in the resize grid of the editor and only has an icon."
{_GUI_RESOLUTION ({GUI_TINY__RESOLUTION}) 13 }
{_GUI_RESOLUTION ({GUI_NORMAL__RESOLUTION}) 27 }
[/toggle_button_definition]
#undef _GUI_RESOLUTION
#undef _GUI_ICON