#textdomain wesnoth-lib
###
### Defines all window styles used in the game.
### For now the definition for normal and tiny gui are the same, this might
### change later when tiny-gui will be tested.
###


#define _GUI_WINDOW ID DESCRIPTION BASE_NAME
[window_definition]

	id = {ID}
	description = {DESCRIPTION} 

	[resolution]

		left_border = 10
		right_border = 13
		top_border = 10
		bottom_border = 13

		[background]

			[draw]

				[image]
					name = "dialogs/{BASE_NAME}-border-topleft.png"
				[/image]

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

				[image]
					x = "(width - 9)"
					y = 0
					name = "dialogs/{BASE_NAME}-border-topright.png"
				[/image]

				[image]
					x = "(width - 9)"
					y = 5
					h = "(height - 14)"
					stretch = "true"
					name = "dialogs/{BASE_NAME}-border-right.png"
				[/image]

				[image]
					x = "(width - 9)"
					y = "(height - 9)"
					name = "dialogs/{BASE_NAME}-border-botright.png"
				[/image]

				[image]
					x = 5
					y = "(height - 9)"
					w = "(width - 14)"
					stretch = "true"
					name = "dialogs/{BASE_NAME}-border-bottom.png"
				[/image]

				[image]
					x = 0
					y = "(height - 9)"
					name = "dialogs/{BASE_NAME}-border-botleft.png"
				[/image]

				[image]
					x = 0
					y = 5
					h = "(height - 14)"
					stretch = "true"
					name = "dialogs/{BASE_NAME}-border-left.png"
				[/image]

				[image]
					x = 5
					y = 5
					w = "(width - 14)"
					h = "(height - 14)"
					name = "dialogs/{BASE_NAME}-background.png"
				[/image]

			[/draw]

		[/background]

		[foreground]

			[draw]
			[/draw]

		[/foreground]

	[/resolution]

[/window_definition]
#enddef

{_GUI_WINDOW "default" "The default window" "opaque"}
{_GUI_WINDOW "message" "The style used as transparent to the user." "translucent65"}
{_GUI_WINDOW "titlescreen" "The items in the titelscreen" "translucent54"}

# No idea what this style does, just leave it disabled for now.
#{_GUI_WINDOW "menu2" "menu2" "menu2"} 

#undef _GUI_WINDOW
