#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
