require("menu/results.lua");
require("scripts/game_style.lua");

dofile( "scripts/achievement.lua" );

kLineOffset = results_ico_secondplace_params["y"] - results_ico_firstplace_params["y"];
knPanelOffsetY_p1 = -1;
knPanelOffsetY_p2 = 73;
knPanelOffsetY_p3 = 148;
knPanelOffsetY_p4 = 223;

results_group =
{
	ResultsMenu
	{
		name = "resultsmenu",
		x = 0,
		y = 0,
		w = 800,
		h = 600,
		
		-- Panel
		Bitmap
		{
			name = results_win_largeframe_params["name"],
			image = results_win_largeframe_params["image"],
			x = results_win_largeframe_params["x"],
			y = results_win_largeframe_params["y"],
		},
		-- Layout
		Bitmap
		{
			name = results_ico_layoutre_params["name"],
			image = results_ico_layoutre_params["image"],
			x = results_ico_layoutre_params["x"],
			y = results_ico_layoutre_params["y"],
		},
		-- Title
		Bitmap
		{
			name = results_ico_results_params["name"],
			image = results_ico_results_params["image"],
			x = results_ico_results_params["x"],
			y = results_ico_results_params["y"],
		},
		
		-- Play Time
		Text
		{
			name = "txt.playtime",
			font = Green17Font,
			--label = "playtime",
			x = results_txt_playtime_params["x"],
			y = results_txt_playtime_params["y"],
			w = results_txt_playtime_params["w"] + 50,
			h = results_txt_playtime_params["h"] + 10,
			flags = kHAlignLeft + kVAlignTop,
		},
		
		-- Players' Color bars
		Bitmap
		{
			name = "player_color_1",
			image = "menu/ico_playername_01",
			x = results_ico_playername_01_params["x"],
			y = results_ico_playername_01_params["y"],
		},
		Bitmap
		{
			name = "player_color_2",
			image = "menu/ico_playername_02",
			x = results_ico_playername_02_params["x"],
			y = results_ico_playername_02_params["y"],
		},
		Bitmap
		{
			name = "player_color_3",
			image = "menu/ico_playername_03",
			x = results_ico_playername_03_params["x"],
			y = results_ico_playername_03_params["y"],
		},
		Bitmap
		{
			name = "player_color_4",
			image = "menu/ico_playername_04",
			x = results_ico_playername_04_params["x"],
			y = results_ico_playername_04_params["y"],
		},

		-- Card Shadows
		Bitmap
		{
			name = "card_shadow_1",
			image = results_ico_cardslots_01_params["image"],
			x = results_ico_cardslots_01_params["x"],
			y = results_ico_cardslots_01_params["y"],
		},
		Bitmap
		{
			name = "card_shadow_2",
			image = results_ico_cardslots_02_params["image"],
			x = results_ico_cardslots_02_params["x"],
			y = results_ico_cardslots_02_params["y"],
		},
		Bitmap
		{
			name = "card_shadow_3",
			image = results_ico_cardslots_03_params["image"],
			x = results_ico_cardslots_03_params["x"],
			y = results_ico_cardslots_03_params["y"],
		},
		Bitmap
		{
			name = "card_shadow_4",
			image = results_ico_cardslots_04_params["image"],
			x = results_ico_cardslots_04_params["x"],
			y = results_ico_cardslots_04_params["y"],
		},
		
		-- Avatar Tokens
		Bitmap
		{
			name = "avatar_1",
			image = "",
			x = results_ico_avatar_d_params["x"],
			y = results_ico_avatar_d_params["y"],
		},
		Bitmap
		{
			name = "avatar_2",
			image = "",
			x = results_ico_avatar_v_params["x"],
			y = results_ico_avatar_v_params["y"],
		},
		Bitmap
		{
			name = "avatar_3",
			image = "",
			x = results_ico_avatar_t_params["x"],
			y = results_ico_avatar_t_params["y"],
		},
		Bitmap
		{
			name = "avatar_4",
			image = "",
			x = results_ico_avatar_k_params["x"],
			y = results_ico_avatar_k_params["y"],
		},
		
		-- Medal 1
		Bitmap
		{
			name = results_ico_firstplace_params["name"],
			image = results_ico_firstplace_params["image"],
			x = results_ico_firstplace_params["x"],
			y = results_ico_firstplace_params["y"],
		},
		Text
		{
			name = "player1_name",
			font = Green17Font,
			label = "",
			x = results_txt_playername_01_params["x"],
			y = results_txt_playername_01_params["y"] - 5 + knPanelOffsetY_p1,
			w = results_txt_playername_01_params["w"] + 100,
			h = results_txt_playername_01_params["h"] + 10,
			flags = kHAlignLeft + kVAlignCenter,
		},
		Text
		{
			name = "player1_networth",
			font = Green15Font,
			label = "",
			x = results_txt_networth_01_params["x"],
			y = results_txt_networth_01_params["y"] - 7 + knPanelOffsetY_p1,
			w = results_txt_networth_01_params["w"] + 50,
			h = results_txt_networth_01_params["h"] + 10,
			flags = kHAlignLeft + kVAlignCenter,
		},
		Bitmap
		{
			image=results_fx_new01_params['image'],
			name='fx_new01';
			x=results_fx_new01_params['x'],
			y=results_fx_new01_params['y']+knPanelOffsetY_p1,
			w=results_fx_new01_params['w'],
			h=results_fx_new01_params['h'],
		},
		Text
		{
			label="achievement",
			font = Green15Font,
			name='txt_achievement01';
			x=results_txt_achievement01_params['x']-20,
			y=results_txt_achievement01_params['y']+knPanelOffsetY_p1,
			w=results_txt_achievement01_params['w']+40,
			h=results_txt_achievement01_params['h']+10,
			flags = kHAlignCenter + kVAlignTop,
		};
		
		-- Medal 2
		Bitmap
		{
			name = results_ico_secondplace_params["name"],
			image = results_ico_secondplace_params["image"],
			x = results_ico_secondplace_params["x"],
			y = results_ico_secondplace_params["y"],
		},
		Text
		{
			name = "player2_name",
			font = Green17Font,
			label = "",
			x = results_txt_playername_01_params["x"],
			y = results_txt_playername_01_params["y"] - 5 + knPanelOffsetY_p2,
			w = results_txt_playername_01_params["w"] + 100,
			h = results_txt_playername_01_params["h"] + 10,
			flags = kHAlignLeft + kVAlignCenter,
		},
		Text
		{
			name = "player2_networth",
			font = Green15Font,
			label = "",
			x = results_txt_networth_01_params["x"],
			y = results_txt_networth_01_params["y"] - 7 + knPanelOffsetY_p2,
			w = results_txt_networth_01_params["w"] + 50,
			h = results_txt_networth_01_params["h"] + 10,
			flags = kHAlignLeft + kVAlignCenter,
		},
		Bitmap
		{
			image=results_fx_new01_params['image'],
			name='fx_new02';
			x=results_fx_new01_params['x'],
			y=results_fx_new01_params['y']+knPanelOffsetY_p2,
			w=results_fx_new01_params['w'],
			h=results_fx_new01_params['h'],
		},
		Text
		{
			label="achievement",
			font = Green15Font,
			name='txt_achievement02';
			x=results_txt_achievement01_params['x']-20,
			y=results_txt_achievement01_params['y']+knPanelOffsetY_p2,
			w=results_txt_achievement01_params['w']+40,
			h=results_txt_achievement01_params['h']+10,
			flags = kHAlignCenter + kVAlignTop,
		};
		
		-- Medal 3
		Bitmap
		{
			name = results_ico_thirdplace_params["name"],
			image = results_ico_thirdplace_params["image"],
			x = results_ico_thirdplace_params["x"],
			y = results_ico_thirdplace_params["y"],
		},
		Text
		{
			name = "player3_name",
			font = Green17Font,
			label = "",
			x = results_txt_playername_01_params["x"],
			y = results_txt_playername_01_params["y"] - 5 + knPanelOffsetY_p3,
			w = results_txt_playername_01_params["w"] + 100,
			h = results_txt_playername_01_params["h"] + 10,
			flags = kHAlignLeft + kVAlignCenter,
		},
		Text
		{
			name = "player3_networth",
			font = Green15Font,
			label = "",
			x = results_txt_networth_01_params["x"],
			y = results_txt_networth_01_params["y"] - 7 + knPanelOffsetY_p3,
			w = results_txt_networth_01_params["w"] + 50,
			h = results_txt_networth_01_params["h"] + 10,
			flags = kHAlignLeft + kVAlignCenter,
		},
		Bitmap
		{
			image=results_fx_new01_params['image'],
			name='fx_new03';
			x=results_fx_new01_params['x'],
			y=results_fx_new01_params['y']+knPanelOffsetY_p3,
			w=results_fx_new01_params['w'],
			h=results_fx_new01_params['h'],
		},
		Text
		{
			text="achievement",
			name='txt_achievement03';
			x=results_txt_achievement01_params['x']-20,
			y=results_txt_achievement01_params['y']+knPanelOffsetY_p3,
			w=results_txt_achievement01_params['w']+40,
			h=results_txt_achievement01_params['h']+10,
			flags = kHAlignCenter + kVAlignTop,
		};

		-- Medal 4
		Bitmap
		{
			name = results_ico_fourthplace_params["name"],
			image = results_ico_fourthplace_params["image"],
			x = results_ico_fourthplace_params["x"],
			y = results_ico_fourthplace_params["y"],
		},
		Text
		{
			name = "player4_name",
			font = Green17Font,
			label = "",
			x = results_txt_playername_01_params["x"],
			y = results_txt_playername_01_params["y"] - 5 + knPanelOffsetY_p4,
			w = results_txt_playername_01_params["w"] + 100,
			h = results_txt_playername_01_params["h"] + 10,
			flags = kHAlignLeft + kVAlignCenter,
		},
		Text
		{
			name = "player4_networth",
			font = Green15Font,
			label = "",
			x = results_txt_networth_01_params["x"],
			y = results_txt_networth_01_params["y"] - 7 + knPanelOffsetY_p4,
			w = results_txt_networth_01_params["w"] + 50,
			h = results_txt_networth_01_params["h"] + 10,
			flags = kHAlignLeft + kVAlignCenter,
		},
		Bitmap
		{
			image=results_fx_new01_params['image'],
			name='fx_new04';
			x=results_fx_new01_params['x'],
			y=results_fx_new01_params['y']+knPanelOffsetY_p4,
			w=results_fx_new01_params['w'],
			h=results_fx_new01_params['h'],
		},
		Text
		{
			label="achievement",
			font = Green15Font,
			name='txt_achievement04';
			x=results_txt_achievement01_params['x']-20,
			y=results_txt_achievement01_params['y']+knPanelOffsetY_p4,
			w=results_txt_achievement01_params['w']+40,
			h=results_txt_achievement01_params['h']+10,
			flags = kHAlignCenter + kVAlignTop,
		},
		
		--------------------------------------------------------------
		-- Biggest rent paid
		Text
		{
			name = "biggest.rent",
			font = Green15Font,
			--label = "rentpaid",
			x = results_txt_best_params["x"],
			y = results_txt_best_params["y"],
			w = results_txt_best_params["w"] + 50,
			h = results_txt_best_params["h"] + 10,
			flags = kHAlignLeft + kVAlignTop,
		},
		
		-- Biggest investor
		Text
		{
			name = "biggest.investor",
			font = Green15Font,
			--label = "investor",
			x = results_txt_best_params["x"],
			y = results_txt_best_params["y"] + 15,
			w = results_txt_best_params["w"] + 50,
			h = results_txt_best_params["h"] + 10,
			flags = kHAlignLeft + kVAlignTop,
		},
		
		-- Most profitable district/color-group
		Text
		{
			name = "biggest.profitable",
			font = Green15Font,
			--label = "mostprofitable",
			x = results_txt_best_params["x"],
			y = results_txt_best_params["y"] + 30,
			w = results_txt_best_params["w"] + 50,
			h = results_txt_best_params["h"] + 10,
			flags = kHAlignLeft + kVAlignTop,
		},
		Bitmap
		{
			name = "biggest.profitable.img",
			x = results_ico_orange_04_params["x"] - 10,
			y = results_ico_orange_04_params["y"],
			image = "",
		},

		-- Rematch button
		MonopolyButton
		{
			name = results_btn_menu_rematch_params["name"],
			graphics = results_btn_menu_rematch_params["graphics"];
			x = results_btn_menu_rematch_params["x"],
			y = results_btn_menu_rematch_params["y"],
			label = "rematch.btn",
			font = White15Font,
			
			command =
				function()
					OnRematch();
					SwapToModal("scripts/monopoly_game.lua");
				end;
		},
		
		-- Done button
		MonopolyButton
		{
			name = results_btn_menu_done_params["name"],
			graphics = results_btn_menu_done_params["graphics"];
			x = results_btn_menu_done_params["x"],
			y = results_btn_menu_done_params["y"],
			label = "done",
			font = White15Font,
			
			command =
				function()
				OnDone();
				end;
		},
		
		-- All districts
		-- Blue
		Bitmap
		{
			image=results_ico_blue_01_params['image'],
			name='ico_blue_01_p1',
			x=results_ico_blue_01_params['x'],
			y=results_ico_blue_01_params['y']+knPanelOffsetY_p1,
			w=results_ico_blue_01_params['w'],
			h=results_ico_blue_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_blue_02_params['image'],
			name='ico_blue_02_p1',
			x=results_ico_blue_02_params['x'],
			y=results_ico_blue_02_params['y']+knPanelOffsetY_p1,
			w=results_ico_blue_02_params['w'],
			h=results_ico_blue_02_params['h'],
		},
		
		-- Green
		Bitmap
		{
			image=results_ico_green_01_params['image'],
			name='ico_green_01_p1',
			x=results_ico_green_01_params['x'],
			y=results_ico_green_01_params['y']+knPanelOffsetY_p1,
			w=results_ico_green_01_params['w'],
			h=results_ico_green_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_green_02_params['image'],
			name='ico_green_02_p1',
			x=results_ico_green_02_params['x'],
			y=results_ico_green_02_params['y']+knPanelOffsetY_p1,
			w=results_ico_green_02_params['w'],
			h=results_ico_green_02_params['h'],
		},	
		Bitmap
		{
			image=results_ico_green_03_params['image'],
			name='ico_green_03_p1',
			x=results_ico_green_03_params['x'],
			y=results_ico_green_03_params['y']+knPanelOffsetY_p1,
			w=results_ico_green_03_params['w'],
			h=results_ico_green_03_params['h'],
		},	
		
		-- Yellow
		Bitmap
		{
			image=results_ico_yellow_01_params['image'],
			name='ico_yellow_01_p1',
			x=results_ico_yellow_01_params['x'],
			y=results_ico_yellow_01_params['y']+knPanelOffsetY_p1,
			w=results_ico_yellow_01_params['w'],
			h=results_ico_yellow_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_yellow_02_params['image'],
			name='ico_yellow_02_p1',
			x=results_ico_yellow_02_params['x'],
			y=results_ico_yellow_02_params['y']+knPanelOffsetY_p1,
			w=results_ico_yellow_02_params['w'],
			h=results_ico_yellow_02_params['h'],
		},
		Bitmap
		{
			image=results_ico_yellow_03_params['image'],
			name='ico_yellow_03_p1',
			x=results_ico_yellow_03_params['x'],
			y=results_ico_yellow_03_params['y']+knPanelOffsetY_p1,
			w=results_ico_yellow_03_params['w'],
			h=results_ico_yellow_03_params['h'],
		},

		-- Red
		Bitmap
		{
			image=results_ico_red_01_params['image'],
			name='ico_red_01_p1',
			x=results_ico_red_01_params['x'],
			y=results_ico_red_01_params['y']+knPanelOffsetY_p1,
			w=results_ico_red_01_params['w'],
			h=results_ico_red_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_red_02_params['image'],
			name='ico_red_02_p1',
			x=results_ico_red_02_params['x'],
			y=results_ico_red_02_params['y']+knPanelOffsetY_p1,
			w=results_ico_red_02_params['w'],
			h=results_ico_red_02_params['h'],
		},
		Bitmap
		{
			image=results_ico_red_03_params['image'],
			name='ico_red_03_p1',
			x=results_ico_red_03_params['x'],
			y=results_ico_red_03_params['y']+knPanelOffsetY_p1,
			w=results_ico_red_03_params['w'],
			h=results_ico_red_03_params['h'],
		},
		
		-- Orange
		Bitmap
		{
			image=results_ico_orange_01_params['image'],
			name='ico_orange_01_p1',
			x=results_ico_orange_01_params['x'],
			y=results_ico_orange_01_params['y']+knPanelOffsetY_p1,
			w=results_ico_orange_01_params['w'],
			h=results_ico_orange_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_orange_02_params['image'],
			name='ico_orange_02_p1',
			x=results_ico_orange_02_params['x'],
			y=results_ico_orange_02_params['y']+knPanelOffsetY_p1,
			w=results_ico_orange_02_params['w'],
			h=results_ico_orange_02_params['h'],
		},	
		Bitmap
		{
			image=results_ico_orange_03_params['image'],
			name='ico_orange_03_p1',
			x=results_ico_orange_03_params['x'],
			y=results_ico_orange_03_params['y']+knPanelOffsetY_p1,
			w=results_ico_orange_03_params['w'],
			h=results_ico_orange_03_params['h'],
		},	
		
		-- Pink
		Bitmap
		{
			image=results_ico_pink_01_params['image'],
			name='ico_pink_01_p1',
			x=results_ico_pink_01_params['x'],
			y=results_ico_pink_01_params['y']+knPanelOffsetY_p1,
			w=results_ico_pink_01_params['w'],
			h=results_ico_pink_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_pink_02_params['image'],
			name='ico_pink_02_p1',
			x=results_ico_pink_02_params['x'],
			y=results_ico_pink_02_params['y']+knPanelOffsetY_p1,
			w=results_ico_pink_02_params['w'],
			h=results_ico_pink_02_params['h'],
		},		
		Bitmap
		{
			image=results_ico_pink_03_params['image'],
			name='ico_pink_03_p1',
			x=results_ico_pink_03_params['x'],
			y=results_ico_pink_03_params['y']+knPanelOffsetY_p1,
			w=results_ico_pink_03_params['w'],
			h=results_ico_pink_03_params['h'],
		},
		
		-- Azure
		Bitmap
		{
			image=results_ico_azure_01_params['image'],
			name='ico_azure_01_p1',
			x=results_ico_azure_01_params['x'],
			y=results_ico_azure_01_params['y']+knPanelOffsetY_p1,
			w=results_ico_azure_01_params['w'],
			h=results_ico_azure_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_azure_02_params['image'],
			name='ico_azure_02_p1',
			x=results_ico_azure_02_params['x'],
			y=results_ico_azure_02_params['y']+knPanelOffsetY_p1,
			w=results_ico_azure_02_params['w'],
			h=results_ico_azure_02_params['h'],
		},
		Bitmap
		{
			image=results_ico_azure_03_params['image'],
			name='ico_azure_03_p1',
			x=results_ico_azure_03_params['x'],
			y=results_ico_azure_03_params['y']+knPanelOffsetY_p1,
			w=results_ico_azure_03_params['w'],
			h=results_ico_azure_03_params['h'],
		},
		
		-- Brown
		Bitmap
		{
			image=results_ico_brown_01_params['image'],
			name='ico_brown_01_p1',
			x=results_ico_brown_01_params['x'],
			y=results_ico_brown_01_params['y']+knPanelOffsetY_p1,
			w=results_ico_brown_01_params['w'],
			h=results_ico_brown_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_brown_02_params['image'],
			name='ico_brown_02_p1',
			x=results_ico_brown_02_params['x'],
			y=results_ico_brown_02_params['y']+knPanelOffsetY_p1,
			w=results_ico_brown_02_params['w'],
			h=results_ico_brown_02_params['h'],
		},
		
		-----------------------------------------------------------------
		
		-- Blue
		Bitmap
		{
			image=results_ico_blue_01_params['image'],
			name='ico_blue_01_p2',
			x=results_ico_blue_01_params['x'],
			y=results_ico_blue_01_params['y']+knPanelOffsetY_p2,
			w=results_ico_blue_01_params['w'],
			h=results_ico_blue_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_blue_02_params['image'],
			name='ico_blue_02_p2',
			x=results_ico_blue_02_params['x'],
			y=results_ico_blue_02_params['y']+knPanelOffsetY_p2,
			w=results_ico_blue_02_params['w'],
			h=results_ico_blue_02_params['h'],
		},
		
		-- Green
		Bitmap
		{
			image=results_ico_green_01_params['image'],
			name='ico_green_01_p2',
			x=results_ico_green_01_params['x'],
			y=results_ico_green_01_params['y']+knPanelOffsetY_p2,
			w=results_ico_green_01_params['w'],
			h=results_ico_green_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_green_02_params['image'],
			name='ico_green_02_p2',
			x=results_ico_green_02_params['x'],
			y=results_ico_green_02_params['y']+knPanelOffsetY_p2,
			w=results_ico_green_02_params['w'],
			h=results_ico_green_02_params['h'],
		},	
		Bitmap
		{
			image=results_ico_green_03_params['image'],
			name='ico_green_03_p2',
			x=results_ico_green_03_params['x'],
			y=results_ico_green_03_params['y']+knPanelOffsetY_p2,
			w=results_ico_green_03_params['w'],
			h=results_ico_green_03_params['h'],
		},	
		
		-- Yellow
		Bitmap
		{
			image=results_ico_yellow_01_params['image'],
			name='ico_yellow_01_p2',
			x=results_ico_yellow_01_params['x'],
			y=results_ico_yellow_01_params['y']+knPanelOffsetY_p2,
			w=results_ico_yellow_01_params['w'],
			h=results_ico_yellow_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_yellow_02_params['image'],
			name='ico_yellow_02_p2',
			x=results_ico_yellow_02_params['x'],
			y=results_ico_yellow_02_params['y']+knPanelOffsetY_p2,
			w=results_ico_yellow_02_params['w'],
			h=results_ico_yellow_02_params['h'],
		},
		Bitmap
		{
			image=results_ico_yellow_03_params['image'],
			name='ico_yellow_03_p2',
			x=results_ico_yellow_03_params['x'],
			y=results_ico_yellow_03_params['y']+knPanelOffsetY_p2,
			w=results_ico_yellow_03_params['w'],
			h=results_ico_yellow_03_params['h'],
		},

		-- Red
		Bitmap
		{
			image=results_ico_red_01_params['image'],
			name='ico_red_01_p2',
			x=results_ico_red_01_params['x'],
			y=results_ico_red_01_params['y']+knPanelOffsetY_p2,
			w=results_ico_red_01_params['w'],
			h=results_ico_red_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_red_02_params['image'],
			name='ico_red_02_p2',
			x=results_ico_red_02_params['x'],
			y=results_ico_red_02_params['y']+knPanelOffsetY_p2,
			w=results_ico_red_02_params['w'],
			h=results_ico_red_02_params['h'],
		},
		Bitmap
		{
			image=results_ico_red_03_params['image'],
			name='ico_red_03_p2',
			x=results_ico_red_03_params['x'],
			y=results_ico_red_03_params['y']+knPanelOffsetY_p2,
			w=results_ico_red_03_params['w'],
			h=results_ico_red_03_params['h'],
		},
		
		-- Orange
		Bitmap
		{
			image=results_ico_orange_01_params['image'],
			name='ico_orange_01_p2',
			x=results_ico_orange_01_params['x'],
			y=results_ico_orange_01_params['y']+knPanelOffsetY_p2,
			w=results_ico_orange_01_params['w'],
			h=results_ico_orange_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_orange_02_params['image'],
			name='ico_orange_02_p2',
			x=results_ico_orange_02_params['x'],
			y=results_ico_orange_02_params['y']+knPanelOffsetY_p2,
			w=results_ico_orange_02_params['w'],
			h=results_ico_orange_02_params['h'],
		},	
		Bitmap
		{
			image=results_ico_orange_03_params['image'],
			name='ico_orange_03_p2',
			x=results_ico_orange_03_params['x'],
			y=results_ico_orange_03_params['y']+knPanelOffsetY_p2,
			w=results_ico_orange_03_params['w'],
			h=results_ico_orange_03_params['h'],
		},	
		
		-- Pink
		Bitmap
		{
			image=results_ico_pink_01_params['image'],
			name='ico_pink_01_p2',
			x=results_ico_pink_01_params['x'],
			y=results_ico_pink_01_params['y']+knPanelOffsetY_p2,
			w=results_ico_pink_01_params['w'],
			h=results_ico_pink_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_pink_02_params['image'],
			name='ico_pink_02_p2',
			x=results_ico_pink_02_params['x'],
			y=results_ico_pink_02_params['y']+knPanelOffsetY_p2,
			w=results_ico_pink_02_params['w'],
			h=results_ico_pink_02_params['h'],
		},		
		Bitmap
		{
			image=results_ico_pink_03_params['image'],
			name='ico_pink_03_p2',
			x=results_ico_pink_03_params['x'],
			y=results_ico_pink_03_params['y']+knPanelOffsetY_p2,
			w=results_ico_pink_03_params['w'],
			h=results_ico_pink_03_params['h'],
		},
		
		-- Azure
		Bitmap
		{
			image=results_ico_azure_01_params['image'],
			name='ico_azure_01_p2',
			x=results_ico_azure_01_params['x'],
			y=results_ico_azure_01_params['y']+knPanelOffsetY_p2,
			w=results_ico_azure_01_params['w'],
			h=results_ico_azure_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_azure_02_params['image'],
			name='ico_azure_02_p2',
			x=results_ico_azure_02_params['x'],
			y=results_ico_azure_02_params['y']+knPanelOffsetY_p2,
			w=results_ico_azure_02_params['w'],
			h=results_ico_azure_02_params['h'],
		},
		Bitmap
		{
			image=results_ico_azure_03_params['image'],
			name='ico_azure_03_p2',
			x=results_ico_azure_03_params['x'],
			y=results_ico_azure_03_params['y']+knPanelOffsetY_p2,
			w=results_ico_azure_03_params['w'],
			h=results_ico_azure_03_params['h'],
		},
		
		-- Brown
		Bitmap
		{
			image=results_ico_brown_01_params['image'],
			name='ico_brown_01_p2',
			x=results_ico_brown_01_params['x'],
			y=results_ico_brown_01_params['y']+knPanelOffsetY_p2,
			w=results_ico_brown_01_params['w'],
			h=results_ico_brown_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_brown_02_params['image'],
			name='ico_brown_02_p2',
			x=results_ico_brown_02_params['x'],
			y=results_ico_brown_02_params['y']+knPanelOffsetY_p2,
			w=results_ico_brown_02_params['w'],
			h=results_ico_brown_02_params['h'],
		},

		-----------------------------------------------------------------

		-- Blue
		Bitmap
		{
			image=results_ico_blue_01_params['image'],
			name='ico_blue_01_p3',
			x=results_ico_blue_01_params['x'],
			y=results_ico_blue_01_params['y']+knPanelOffsetY_p3,
			w=results_ico_blue_01_params['w'],
			h=results_ico_blue_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_blue_02_params['image'],
			name='ico_blue_02_p3',
			x=results_ico_blue_02_params['x'],
			y=results_ico_blue_02_params['y']+knPanelOffsetY_p3,
			w=results_ico_blue_02_params['w'],
			h=results_ico_blue_02_params['h'],
		},
		
		-- Green
		Bitmap
		{
			image=results_ico_green_01_params['image'],
			name='ico_green_01_p3',
			x=results_ico_green_01_params['x'],
			y=results_ico_green_01_params['y']+knPanelOffsetY_p3,
			w=results_ico_green_01_params['w'],
			h=results_ico_green_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_green_02_params['image'],
			name='ico_green_02_p3',
			x=results_ico_green_02_params['x'],
			y=results_ico_green_02_params['y']+knPanelOffsetY_p3,
			w=results_ico_green_02_params['w'],
			h=results_ico_green_02_params['h'],
		},	
		Bitmap
		{
			image=results_ico_green_03_params['image'],
			name='ico_green_03_p3',
			x=results_ico_green_03_params['x'],
			y=results_ico_green_03_params['y']+knPanelOffsetY_p3,
			w=results_ico_green_03_params['w'],
			h=results_ico_green_03_params['h'],
		},	
		
		-- Yellow
		Bitmap
		{
			image=results_ico_yellow_01_params['image'],
			name='ico_yellow_01_p3',
			x=results_ico_yellow_01_params['x'],
			y=results_ico_yellow_01_params['y']+knPanelOffsetY_p3,
			w=results_ico_yellow_01_params['w'],
			h=results_ico_yellow_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_yellow_02_params['image'],
			name='ico_yellow_02_p3',
			x=results_ico_yellow_02_params['x'],
			y=results_ico_yellow_02_params['y']+knPanelOffsetY_p3,
			w=results_ico_yellow_02_params['w'],
			h=results_ico_yellow_02_params['h'],
		},
		Bitmap
		{
			image=results_ico_yellow_03_params['image'],
			name='ico_yellow_03_p3',
			x=results_ico_yellow_03_params['x'],
			y=results_ico_yellow_03_params['y']+knPanelOffsetY_p3,
			w=results_ico_yellow_03_params['w'],
			h=results_ico_yellow_03_params['h'],
		},

		-- Red
		Bitmap
		{
			image=results_ico_red_01_params['image'],
			name='ico_red_01_p3',
			x=results_ico_red_01_params['x'],
			y=results_ico_red_01_params['y']+knPanelOffsetY_p3,
			w=results_ico_red_01_params['w'],
			h=results_ico_red_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_red_02_params['image'],
			name='ico_red_02_p3',
			x=results_ico_red_02_params['x'],
			y=results_ico_red_02_params['y']+knPanelOffsetY_p3,
			w=results_ico_red_02_params['w'],
			h=results_ico_red_02_params['h'],
		},
		Bitmap
		{
			image=results_ico_red_03_params['image'],
			name='ico_red_03_p3',
			x=results_ico_red_03_params['x'],
			y=results_ico_red_03_params['y']+knPanelOffsetY_p3,
			w=results_ico_red_03_params['w'],
			h=results_ico_red_03_params['h'],
		},
		
		-- Orange
		Bitmap
		{
			image=results_ico_orange_01_params['image'],
			name='ico_orange_01_p3',
			x=results_ico_orange_01_params['x'],
			y=results_ico_orange_01_params['y']+knPanelOffsetY_p3,
			w=results_ico_orange_01_params['w'],
			h=results_ico_orange_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_orange_02_params['image'],
			name='ico_orange_02_p3',
			x=results_ico_orange_02_params['x'],
			y=results_ico_orange_02_params['y']+knPanelOffsetY_p3,
			w=results_ico_orange_02_params['w'],
			h=results_ico_orange_02_params['h'],
		},	
		Bitmap
		{
			image=results_ico_orange_03_params['image'],
			name='ico_orange_03_p3',
			x=results_ico_orange_03_params['x'],
			y=results_ico_orange_03_params['y']+knPanelOffsetY_p3,
			w=results_ico_orange_03_params['w'],
			h=results_ico_orange_03_params['h'],
		},	
		
		-- Pink
		Bitmap
		{
			image=results_ico_pink_01_params['image'],
			name='ico_pink_01_p3',
			x=results_ico_pink_01_params['x'],
			y=results_ico_pink_01_params['y']+knPanelOffsetY_p3,
			w=results_ico_pink_01_params['w'],
			h=results_ico_pink_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_pink_02_params['image'],
			name='ico_pink_02_p3',
			x=results_ico_pink_02_params['x'],
			y=results_ico_pink_02_params['y']+knPanelOffsetY_p3,
			w=results_ico_pink_02_params['w'],
			h=results_ico_pink_02_params['h'],
		},		
		Bitmap
		{
			image=results_ico_pink_03_params['image'],
			name='ico_pink_03_p3',
			x=results_ico_pink_03_params['x'],
			y=results_ico_pink_03_params['y']+knPanelOffsetY_p3,
			w=results_ico_pink_03_params['w'],
			h=results_ico_pink_03_params['h'],
		},
		
		-- Azure
		Bitmap
		{
			image=results_ico_azure_01_params['image'],
			name='ico_azure_01_p3',
			x=results_ico_azure_01_params['x'],
			y=results_ico_azure_01_params['y']+knPanelOffsetY_p3,
			w=results_ico_azure_01_params['w'],
			h=results_ico_azure_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_azure_02_params['image'],
			name='ico_azure_02_p3',
			x=results_ico_azure_02_params['x'],
			y=results_ico_azure_02_params['y']+knPanelOffsetY_p3,
			w=results_ico_azure_02_params['w'],
			h=results_ico_azure_02_params['h'],
		},
		Bitmap
		{
			image=results_ico_azure_03_params['image'],
			name='ico_azure_03_p3',
			x=results_ico_azure_03_params['x'],
			y=results_ico_azure_03_params['y']+knPanelOffsetY_p3,
			w=results_ico_azure_03_params['w'],
			h=results_ico_azure_03_params['h'],
		},
		
		-- Brown
		Bitmap
		{
			image=results_ico_brown_01_params['image'],
			name='ico_brown_01_p3',
			x=results_ico_brown_01_params['x'],
			y=results_ico_brown_01_params['y']+knPanelOffsetY_p3,
			w=results_ico_brown_01_params['w'],
			h=results_ico_brown_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_brown_02_params['image'],
			name='ico_brown_02_p3',
			x=results_ico_brown_02_params['x'],
			y=results_ico_brown_02_params['y']+knPanelOffsetY_p3,
			w=results_ico_brown_02_params['w'],
			h=results_ico_brown_02_params['h'],
		},
		
		-----------------------------------------------------------------
		

		-- Blue
		Bitmap
		{
			image=results_ico_blue_01_params['image'],
			name='ico_blue_01_p4',
			x=results_ico_blue_01_params['x'],
			y=results_ico_blue_01_params['y']+knPanelOffsetY_p4,
			w=results_ico_blue_01_params['w'],
			h=results_ico_blue_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_blue_02_params['image'],
			name='ico_blue_02_p4',
			x=results_ico_blue_02_params['x'],
			y=results_ico_blue_02_params['y']+knPanelOffsetY_p4,
			w=results_ico_blue_02_params['w'],
			h=results_ico_blue_02_params['h'],
		},
		
		-- Green
		Bitmap
		{
			image=results_ico_green_01_params['image'],
			name='ico_green_01_p4',
			x=results_ico_green_01_params['x'],
			y=results_ico_green_01_params['y']+knPanelOffsetY_p4,
			w=results_ico_green_01_params['w'],
			h=results_ico_green_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_green_02_params['image'],
			name='ico_green_02_p4',
			x=results_ico_green_02_params['x'],
			y=results_ico_green_02_params['y']+knPanelOffsetY_p4,
			w=results_ico_green_02_params['w'],
			h=results_ico_green_02_params['h'],
		},	
		Bitmap
		{
			image=results_ico_green_03_params['image'],
			name='ico_green_03_p4',
			x=results_ico_green_03_params['x'],
			y=results_ico_green_03_params['y']+knPanelOffsetY_p4,
			w=results_ico_green_03_params['w'],
			h=results_ico_green_03_params['h'],
		},	
		
		-- Yellow
		Bitmap
		{
			image=results_ico_yellow_01_params['image'],
			name='ico_yellow_01_p4',
			x=results_ico_yellow_01_params['x'],
			y=results_ico_yellow_01_params['y']+knPanelOffsetY_p4,
			w=results_ico_yellow_01_params['w'],
			h=results_ico_yellow_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_yellow_02_params['image'],
			name='ico_yellow_02_p4',
			x=results_ico_yellow_02_params['x'],
			y=results_ico_yellow_02_params['y']+knPanelOffsetY_p4,
			w=results_ico_yellow_02_params['w'],
			h=results_ico_yellow_02_params['h'],
		},
		Bitmap
		{
			image=results_ico_yellow_03_params['image'],
			name='ico_yellow_03_p4',
			x=results_ico_yellow_03_params['x'],
			y=results_ico_yellow_03_params['y']+knPanelOffsetY_p4,
			w=results_ico_yellow_03_params['w'],
			h=results_ico_yellow_03_params['h'],
		},

		-- Red
		Bitmap
		{
			image=results_ico_red_01_params['image'],
			name='ico_red_01_p4',
			x=results_ico_red_01_params['x'],
			y=results_ico_red_01_params['y']+knPanelOffsetY_p4,
			w=results_ico_red_01_params['w'],
			h=results_ico_red_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_red_02_params['image'],
			name='ico_red_02_p4',
			x=results_ico_red_02_params['x'],
			y=results_ico_red_02_params['y']+knPanelOffsetY_p4,
			w=results_ico_red_02_params['w'],
			h=results_ico_red_02_params['h'],
		},
		Bitmap
		{
			image=results_ico_red_03_params['image'],
			name='ico_red_03_p4',
			x=results_ico_red_03_params['x'],
			y=results_ico_red_03_params['y']+knPanelOffsetY_p4,
			w=results_ico_red_03_params['w'],
			h=results_ico_red_03_params['h'],
		},
		
		-- Orange
		Bitmap
		{
			image=results_ico_orange_01_params['image'],
			name='ico_orange_01_p4',
			x=results_ico_orange_01_params['x'],
			y=results_ico_orange_01_params['y']+knPanelOffsetY_p4,
			w=results_ico_orange_01_params['w'],
			h=results_ico_orange_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_orange_02_params['image'],
			name='ico_orange_02_p4',
			x=results_ico_orange_02_params['x'],
			y=results_ico_orange_02_params['y']+knPanelOffsetY_p4,
			w=results_ico_orange_02_params['w'],
			h=results_ico_orange_02_params['h'],
		},	
		Bitmap
		{
			image=results_ico_orange_03_params['image'],
			name='ico_orange_03_p4',
			x=results_ico_orange_03_params['x'],
			y=results_ico_orange_03_params['y']+knPanelOffsetY_p4,
			w=results_ico_orange_03_params['w'],
			h=results_ico_orange_03_params['h'],
		},	
		
		-- Pink
		Bitmap
		{
			image=results_ico_pink_01_params['image'],
			name='ico_pink_01_p4',
			x=results_ico_pink_01_params['x'],
			y=results_ico_pink_01_params['y']+knPanelOffsetY_p4,
			w=results_ico_pink_01_params['w'],
			h=results_ico_pink_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_pink_02_params['image'],
			name='ico_pink_02_p4',
			x=results_ico_pink_02_params['x'],
			y=results_ico_pink_02_params['y']+knPanelOffsetY_p4,
			w=results_ico_pink_02_params['w'],
			h=results_ico_pink_02_params['h'],
		},		
		Bitmap
		{
			image=results_ico_pink_03_params['image'],
			name='ico_pink_03_p4',
			x=results_ico_pink_03_params['x'],
			y=results_ico_pink_03_params['y']+knPanelOffsetY_p4,
			w=results_ico_pink_03_params['w'],
			h=results_ico_pink_03_params['h'],
		},
		
		-- Azure
		Bitmap
		{
			image=results_ico_azure_01_params['image'],
			name='ico_azure_01_p4',
			x=results_ico_azure_01_params['x'],
			y=results_ico_azure_01_params['y']+knPanelOffsetY_p4,
			w=results_ico_azure_01_params['w'],
			h=results_ico_azure_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_azure_02_params['image'],
			name='ico_azure_02_p4',
			x=results_ico_azure_02_params['x'],
			y=results_ico_azure_02_params['y']+knPanelOffsetY_p4,
			w=results_ico_azure_02_params['w'],
			h=results_ico_azure_02_params['h'],
		},
		Bitmap
		{
			image=results_ico_azure_03_params['image'],
			name='ico_azure_03_p4',
			x=results_ico_azure_03_params['x'],
			y=results_ico_azure_03_params['y']+knPanelOffsetY_p4,
			w=results_ico_azure_03_params['w'],
			h=results_ico_azure_03_params['h'],
		},
		
		-- Brown
		Bitmap
		{
			image=results_ico_brown_01_params['image'],
			name='ico_brown_01_p4',
			x=results_ico_brown_01_params['x'],
			y=results_ico_brown_01_params['y']+knPanelOffsetY_p4,
			w=results_ico_brown_01_params['w'],
			h=results_ico_brown_01_params['h'],
		},
		Bitmap
		{
			image=results_ico_brown_02_params['image'],
			name='ico_brown_02_p4',
			x=results_ico_brown_02_params['x'],
			y=results_ico_brown_02_params['y']+knPanelOffsetY_p4,
			w=results_ico_brown_02_params['w'],
			h=results_ico_brown_02_params['h'],
		},
		
		-- achievement popup
		Group(achievement_group);
	},
}