wesnoth/data/gui/default/widget/button_25x25.cfg
Mark de Wever a5eb28f569 Add a new set of transparent navigation buttons.
These will be used in the transparent wml message dialog.
2009-02-28 17:34:35 +00:00

143 lines
2.2 KiB
INI

#textdomain wesnoth-lib
###
### Definition of buttons which have a 25 x 25 pixels image.
### - down arrow button for the listbox.
### - up arrow button for the listbox.
#define _GUI_RESOLUTION RESOLUTION SIZE IMAGE
[resolution]
{RESOLUTION}
min_width = {SIZE}
min_height = {SIZE}
default_width = {SIZE}
default_height = {SIZE}
max_width = {SIZE}
max_height = {SIZE}
[state_enabled]
[draw]
[image]
w = {SIZE}
h = {SIZE}
name = {IMAGE} + ".png"
[/image]
[/draw]
[/state_enabled]
[state_disabled]
[draw]
[image]
w = {SIZE}
h = {SIZE}
name = {IMAGE} + "-disabled.png"
[/image]
[/draw]
[/state_disabled]
[state_pressed]
[draw]
[image]
w = {SIZE}
h = {SIZE}
name = {IMAGE} + "-pressed.png"
[/image]
[/draw]
[/state_pressed]
[state_focussed]
[draw]
[image]
w = {SIZE}
h = {SIZE}
name = {IMAGE} + "-active.png"
[/image]
[/draw]
[/state_focussed]
[/resolution]
#enddef
#define _GUI_DEFINITION ID DESCRIPTION IMAGE
[button_definition]
id = {ID}
description = {DESCRIPTION}
{_GUI_RESOLUTION ({GUI_TINY__RESOLUTION}) 12 ({IMAGE}) }
{_GUI_RESOLUTION () 25 ({IMAGE}) }
[/button_definition]
#enddef
{_GUI_DEFINITION
"down_arrow"
"Down arrow button for a scrollbar."
"buttons/downarrow-button"
}
{_GUI_DEFINITION
"up_arrow"
"Up arrow button for a scrollbar."
"buttons/uparrow-button"
}
{_GUI_DEFINITION
"left_arrow"
"Left arrow button for a scrollbar."
"buttons/left_arrow-button"
}
{_GUI_DEFINITION
"right_arrow"
"Right arrow button for a scrollbar."
"buttons/right_arrow-button"
}
# The transparent version
{_GUI_DEFINITION
"down_arrow_transparent"
"Down arrow button for a transparent scrollbar."
"buttons/downarrow-button_transparent"
}
{_GUI_DEFINITION
"up_arrow_transparent"
"Up arrow button for a transparent scrollbar."
"buttons/uparrow-button_transparent"
}
{_GUI_DEFINITION
"left_arrow_transparent"
"Left arrow button for a transparent scrollbar."
"buttons/left_arrow-button_transparent"
}
{_GUI_DEFINITION
"right_arrow_transparent"
"Right arrow button for a transparent scrollbar."
"buttons/right_arrow-button_transparent"
}
#undef _GUI_DEFINITION
#undef _GUI_RESOLUTION