require("scripts/styles/mainmenustyle.lua")

MakeDialog 
{
	SetStyle(BackgroundStyle),
	
	BlgBitmap
	{
		x = kCenter,
		y = kCenter,
		image = "common/screens/screen_overlay",
	},
	
	SetStyle(BoxStyle),
	
	BlgBitmap
	{
		x = 0,
		y = 0,
		w = 800,
		h = 600,
		positionMatrix = {x = 0, y = 36},
		image = "common/screens/stats/stats_box",
	},
				
	WndMixerStats
	{
		name = "WndEndOfGameStats",
		w = kMax,
		h = kMax,
			
			SetStyle(StatsTitleStyle),

			Bitmap
			{
				name = "bmpJade",
				x = kCenter + 226,
				y = kCenter + 112,
				-- must be intialized with an image, otherwise it will not be properly placed
				image = "common/screens/stats/jade_agree",
			},
			
			Bitmap
			{
				name = "bmpMentor",
				--x = kCenter - 278,
				--y = kCenter - 138,
				-- must be intialized with an image, otherwise it will not be properly placed
				--image = "common/screens/stats/LevelMexico/agree",
			},
			
			-----------------------------------		
			-- Completion state label
			-----------------------------------		
			
			-----------------------------------		
			-- Normal graphics
			
			SetStyle(StatsTitleStyle),
			BlgText 
			{
				name = "txtStageCompletion",
				label = "",
				x = 250,
				y = 100, 
				w = 350, h = 60,
				flags = kHAlignCenter + kVAlignBottom,
			},

			SetStyle(StatsTipStyle),

			-- Tips and mentor comments
			BlgText 
			{
				name = "txtTips",
				label = "stats_mixer_tip",
				x = 220,
				y = 170,
				w = 380, h = 100,
				flags = kHAlignLeft + kVAlignTop,
				typewriter = true,
				typewriteEvery = 1,
				typewriteDelay = 0,
				fps = 60,
			},				

			SetStyle(StatsContentStyle),
			
			-- Stats
			--------------------------------------------------

			BlgBitmap
			{
				name = "bmpWheel",
				x = 260,
				y = 250,
				image = "common/screens/stats/icon_wheel",
				delay = 0,
			},
			
			BlgText  
			{
				name = "Wheels",
				label = "stats_mixer_wheels",
				x = 340,
				y = 245, 
				w = 200, h = 50,
				flags = kHAlignLeft + kVAlignBottom,
				delay = 10,
			},
			
			BlgText  			
			{
				name = "Treatments",
				label = "stats_mixer_treatments",
				x = 300,
				y = 310, 
				w = 200, h = 50,
				flags = kHAlignLeft + kVAlignBottom,
				delay = 40,
			},

			SetStyle(StatsDataStyle),
			
			BlgText  
			{
				name = "txtWheels",
				label = "testValue",
				x = 390,
				y = 248, 
				w = 150, h = 50,
				flags = kHAlignRight + kVAlignBottom,
				delay = 20,
			},
			
			BlgBitmap
			{
				name = "bmpChocolate",
				x = 160,
				y = 380,
				image = "common/screens/stats/icon_chocolate",
				delay = 50,
			},
			
			BlgText  			
			{
				name = "txtTreatmentsChocolate",
				label = "testValue",
				x = 100,
				y = 370, 
				w = 150, h = 50,
				flags = kHAlignRight + kVAlignBottom,
				delay = 60,
			},
			
			BlgBitmap
			{
				name = "bmpAloe",
				x = 300,
				y = 380,
				image = "common/screens/stats/icon_aloe",
				delay = 70,
			},
			
			BlgText  			
			{
				name = "txtTreatmentsAloe",
				label = "testValue",
				x = 240,
				y = 370, 
				w = 150, h = 50,
				flags = kHAlignRight + kVAlignBottom,
				delay = 80,
			},
			
			BlgBitmap
			{
				name = "bmpButter",
				x = 450,
				y = 380,
				image = "common/screens/stats/icon_butter",
				delay = 90,
			},
			
			BlgText  			
			{
				name = "txtTreatmentsButter",
				label = "testValue",
				x = 390,
				y = 370, 
				w = 150, h = 50,
				flags = kHAlignRight + kVAlignBottom,
				delay = 100,
			},
		
			SetStyle(InternalButtonStyle),			
			
			BlgButton
			{
				name= "btnContinue",
				label = "continue",
				x = 330, y = 440,
				width = 400, height = 200,
				positionMatrix = { x = 0, y = 0},
				graphics = {
					"common/screens/dialog_box/cancel_green",
					"",
					"",
					"",
				},
				default = true,
			  	command =
			        function()
			        	CloseWindow()
			        end				
			},
			
			SetStyle(OrangeButtonStyle),
			
			BlgButton
			{
				name= "btnRetry",
				label = "retry",
				x = 120, y = 440,
				width = 400, height = 200,
				positionMatrix = { x = 0, y = 0},
				graphics = {
					"common/screens/dialog_box/confirm_red",
					"",
					"",
					"",
				},
				default = true,
			  	command =
			        function()						
					ResetMinigame();
			        	CloseWindow();			        	
			        end				
			},
		}
}
