#textdomain wesnoth-lib
###
### Definition of the toggle panel for the wml_message.
###

#define _GUI__LISTBOX_SELECTED_CELL
	
	# corners are 10x10
	[image]
		x = 0
		y = 0 
		name = "misc/selection2_transparent-border-topleft.png"
	[/image]

	[image]
		x = "(width - 10)"
		y = 0 
		name = "misc/selection2_transparent-border-topright.png"
	[/image]

	[image]
		x = 0
		y = "(height - 10)" 
		name = "misc/selection2_transparent-border-botleft.png"
	[/image]

	[image]
		x = "(width - 10)"
		y = "(height - 10)"
		name = "misc/selection2_transparent-border-botright.png"
	[/image]

	# since the lines are already quite long scale them instead of stretching
	# the height of the lines is 3 pixels.
	[image]
		x = 10
		y = 0 
		w = "(width - 20)"
		name = "misc/selection2_transparent-border-top.png"
	[/image]

	[image]
		x = 10
		y = "(height - 3)"
		w = "(width - 20)"
		name = "misc/selection2_transparent-border-bottom.png"
	[/image]

	[image]
		x = 0
		y = 10 
		h= "(height - 20)"
		name = "misc/selection2_transparent-border-left.png"
	[/image]

	[image]
		x = "(width - 3)"
		y = 10 
		h = "(height - 20)"
		name = "misc/selection2_transparent-border-right.png"
	[/image]

	#main background 320 x 67
	[image]
		x = 3
		y = 3
		w = "(width - 6)"
		h = "(height - 6)"
		name = "misc/selection2_transparent-background.png"
	[/image]

#enddef
[toggle_panel_definition]

	id = "wml_message"
	description = "Toggle panel for the wml_message."

	[resolution]

		min_width = 0
		min_height = 0

		default_width = 0
		default_height = 0

		max_width = 0
		max_height = 0

		[state_enabled]

			[draw]
			[/draw]

		[/state_enabled]

		[state_disabled]

			[draw]
			[/draw]

		[/state_disabled]

		[state_focussed]

			[draw]
			[/draw]

		[/state_focussed]

###
### Selected
###

		[state_enabled_selected]

			[draw]
				{_GUI__LISTBOX_SELECTED_CELL}
			[/draw]

		[/state_enabled_selected]

		[state_disabled_selected]

			[draw]
				{_GUI__LISTBOX_SELECTED_CELL}
			[/draw]

		[/state_disabled_selected]

		[state_focussed_selected]

			[draw]
				{_GUI__LISTBOX_SELECTED_CELL}
			[/draw]

		[/state_focussed_selected]

	[/resolution]

[/toggle_panel_definition]

#undef _GUI__LISTBOX_SELECTED_CELL
