require( "scripts/style.lua" );



MakeDialog
{
	FaderWindow
	{
		wait=0,
		duration=100,
		fit = true,
		startalpha = 0,
		finalalpha = 0.99,
		skip = false,
		Bitmap
		{
			name="shade",
			image="backgrounds/shade",
			Bitmap
			{
				name = "frame",
				image = "gui/vinoultimae/frame",
				x=287,
				y=108,

				VinoUltimaeWindow
				{
					w=kMax, h=kMax, x=55, y=38,
					pieces =
					{
						{
							path="gui/vinoultimae/piece_01.xml",
							layer=1,
						},
						
						{
							path="gui/vinoultimae/piece_02.xml",
							layer=12,
						},
						
						{
							path="gui/vinoultimae/piece_03.xml",
							layer=10,
						},
						
						{
							path="gui/vinoultimae/piece_04.xml",
							layer=14,
						},
						
						{
							path="gui/vinoultimae/piece_05.xml",
							layer=3,
						},
						
						{
							path="gui/vinoultimae/piece_06.xml",
							layer=5,
						},
						
						{
							path="gui/vinoultimae/piece_07.xml",
							layer=9,
						},
						
						{
							path="gui/vinoultimae/piece_08.xml",
							layer=13,
						},
						
						{
							path="gui/vinoultimae/piece_09.xml",
							layer=8,
						},
						
						{
							path="gui/vinoultimae/piece_10.xml",
							layer=4,
						},
						
						{
							path="gui/vinoultimae/piece_11.xml",
							layer=15,
						},
						
						{
							path="gui/vinoultimae/piece_12.xml",
							layer=2,
						},
						
						{
							path="gui/vinoultimae/piece_13.xml",
							layer=7,
						},
						
						{
							path="gui/vinoultimae/piece_14.xml",
							layer=6,
						},
						
						{
							path="gui/vinoultimae/piece_15.xml",
							layer=11,
						},
					},
				},
			}
		},
	},
	
	FaderWindow
	{
		wait=200,
		duration=300,
		fit = true,
		startalpha = 0,
		finalalpha = 0.999,
		skip = false,
		w=kMax, h=kMax,
		
		--ShadowedButton
		SetStyle(ButtonStdOkStyle),
		Button
		{
			--face = "buttons/stdok",
			--shadow = "buttons/stddone_shadow",
			clickSound = "audio/sfx/buttons/default_click.ogg",
			--displacement = 2,
			command = gDialogTable.action,
			font = StandardButtonFont,
			close = true,
			flags = 5,
			--mylabel = GetString("ok"),
			label = "ok",
			name = "ok",
			tw=kMax-8,
			th=kMax-2,
			x = kCenter,
			y = kMax-160,
		},
	},
} -- MakeDialog

--PlayEventSound();
