#textdomain wesnoth-lib
###
### The panel used in the wml messages using the new portraits.
###

#define _GUI_BASE_NAME
	"translucent65" #enddef

#define _GUI_RESOLUTION RESOLUTION BORDER_SIDE_1 BORDER_SIDE_2 OFFSET_SIDE_1 OFFSET_SIDE_2 OFFSET_TOTAL
	[resolution]

		{RESOLUTION}

		left_border = 0
		right_border = 0
		top_border = {BORDER_SIDE_1}
		bottom_border = {BORDER_SIDE_2}

		[background]

			[draw]

				[image]
					x = 0
					y = 0
					w = "(width)"
					stretch = "true"
					name = "dialogs/" +  {_GUI_BASE_NAME} + "-border-top.png"
				[/image]

				[image]
					x = 0
					y = "(height - {OFFSET_SIDE_2})"
					w = "(width)"
					stretch = "true"
					name = "dialogs/" +  {_GUI_BASE_NAME} + "-border-bottom.png"
				[/image]

				[image]
					x = 0
					y = {OFFSET_SIDE_1}
					w = "(width)"
					h = "(if(height < {OFFSET_TOTAL}, 0, height - {OFFSET_TOTAL}))"
					name = "dialogs/" +  {_GUI_BASE_NAME} + "-background.png"
				[/image]

			[/draw]

		[/background]

		[foreground]

			[draw]

			[/draw]

		[/foreground]

	[/resolution]
#enddef

[panel_definition]
	id = "wml_message"
	description = "The panel for the wml messages."

	{_GUI_RESOLUTION ({GUI_TINY__RESOLUTION})  5  6 2 4  6 }
	{_GUI_RESOLUTION ()                       10 13 5 9 14 }

[/panel_definition]

#undef _GUI_RESOLUTION
#undef _GUI_BASE_NAME

