require ( "menu/compprof.lua" );
require ( "menu/playerprof.lua" );

require ( "menu/pop_dropdown.lua" );
require ( "menu/pop_tokenpopup.lua" );

require ( "scripts/game_style.lua" );

dropdowngraphics = { "","menu/btn_profileselector_01","menu/btn_profileselector_01","menu/btn_profileselector_01" };

strategydropdown_group =
{
	StrategyDropDown
	{
		name = "StrategyDropDown",
		x = 0,
		y = 0,
		w = 255, --250,
		h = 100, --85,
--[[
		Button
		{
			name = "combo_container",
			font = Green15Font,
			graphics =
			{
				'menu/ico_dropdown',
				'menu/ico_dropdown',
				'menu/ico_dropdown',
				'menu/ico_dropdown'
			};
			x = pop_dropdown_ico_dropdown_01_params["x"],
			y = pop_dropdown_ico_dropdown_01_params["y"],
			type = kPush,
			label="",
			command=
				function()
					OnStrategyComboBtnEdit();
				end
		},
--]]

		Bitmap
		{
			name = "combo_arrow_disabled",
			image =	"menu/btn_largearrow_04",
			x = pop_dropdown_btn_largearrow_03_params["x"],
			y = pop_dropdown_btn_largearrow_03_params["y"],
		},
		Button
		{
			name = "combo_arrow",
			font = Green15Font,
			graphics = pop_dropdown_btn_largearrow_03_params["graphics"],
			x = pop_dropdown_btn_largearrow_03_params["x"],
			y = pop_dropdown_btn_largearrow_03_params["y"],
			type = kPush,
			label="",
			command=
				function()
--					OnStrategyComboBtnEdit();
				end
		},

		Text
		{
			name = "selected_text",
			font = Green12Font,
			x = pop_dropdown_txt_lowrisk_params["x"],
			y = pop_dropdown_txt_lowrisk_params["y"]-10,
			w = pop_dropdown_txt_lowrisk_params["w"]+100,
			h = pop_dropdown_txt_lowrisk_params["h"]+20,
			label="",
			flags = kHAlignLeft + kVAlignCenter,
		},
		
		Window
		{
			name = "panel",
			x = 0,
			y = 0,
			w = kMax,
			h = kMax,
			
			-- Panel
			Bitmap
			{
				name=pop_dropdown_pop_dropdown_params["name"],
				image=pop_dropdown_pop_dropdown_params["image"],
				x=pop_dropdown_pop_dropdown_params["x"],
				y=pop_dropdown_pop_dropdown_params["y"],
			},
			
			Button
			{
				name = "choice1_text",
				font = Green12Font,
				graphics = dropdowngraphics,
				x = pop_dropdown_txt_profilelist01_params["x"]-10,
				y = pop_dropdown_txt_profilelist01_params["y"]-8,
				w = pop_dropdown_txt_profilelist01_params["w"]+100,
				h = pop_dropdown_txt_profilelist01_params["h"]+5,
				label="",
				flags = kHAlignLeft + kVAlignTop,
				type = kPush,
				command=
					function()
						OnStrategyComboBtnChoice(0);
					end
			},
			Button
			{
				name = "choice2_text",
				font = Green12Font,
				graphics = dropdowngraphics,
				x = pop_dropdown_txt_profilelist02_params["x"]-10,
				y = pop_dropdown_txt_profilelist02_params["y"]-8,
				w = pop_dropdown_txt_profilelist02_params["w"]+100,
				h = pop_dropdown_txt_profilelist02_params["h"]+5,
				label="",
				flags = kHAlignLeft + kVAlignTop,
				type = kPush,
				command=
					function()
						OnStrategyComboBtnChoice(1);
					end
			},
			Button
			{
				name = "choice3_text",
				font = Green12Font,
				graphics = dropdowngraphics,
				x = pop_dropdown_txt_profilelist03_params["x"]-10,
				y = pop_dropdown_txt_profilelist03_params["y"]-8,
				w = pop_dropdown_txt_profilelist03_params["w"]+100,
				h = pop_dropdown_txt_profilelist03_params["h"]+5,
				label="",
				flags = kHAlignLeft + kVAlignTop,
				type = kPush,
				command=
					function()
						OnStrategyComboBtnChoice(2);
					end
			},
		}
	},
}

computerprofile_group =
{
	ComputerProfileMenu
	{
		name = "computerprofilemenu",
		x = 0,
		y = 0,
		w = 800,
		h = 600,
		
		-- Panel
		Bitmap
		{
			name=compprof_win_largeframe_params["name"],
			image=compprof_win_largeframe_params["image"],
			x=compprof_win_largeframe_params["x"],
			y=compprof_win_largeframe_params["y"],
		},
		-- Layout
		Bitmap
		{
			name=compprof_ico_layoutcp_params["name"],
			image=compprof_ico_layoutcp_params["image"],
			x=compprof_ico_layoutcp_params["x"],
			y=compprof_ico_layoutcp_params["y"],
		},
		-- Title
		Bitmap
		{
			name=compprof_ico_compprof_params["name"],
			image=compprof_ico_compprof_params["image"],
			x=compprof_ico_compprof_params["x"],
			y=compprof_ico_compprof_params["y"],
		},
		
		MonopolyButton
		{
			name = "profile_tooltipper",
			x = compprof_txt_playername02_params["x"]+1,
			y = compprof_txt_playername02_params["y"]+1,
			w = compprof_txt_playername02_params["h"]-2,
			h = compprof_txt_playername02_params["h"]-2,
			tooltip = "enternameprompt",
		},
		TextEdit
		{
			name = "profile_name",
			font = White18Font,
			x = compprof_txt_playername02_params["x"]-2,
			y = compprof_txt_playername02_params["y"]-10,
			w = 400,
			h = compprof_txt_playername02_params["h"]+20,
			label="",
			length=11,
			flags = kHAlignLeft + kVAlignCenter,
			utf8=true,
			ignore = kIllegalNameChars,
			clearinitial=false,
		},
		
		-- mover button selector
		MonopolyButton
		{
			type = kPush,
			name = "mover_btn",
			tooltip = "profiletoken",
			graphics =
			{
				"menu/btn_ltframe01_01",
				"menu/btn_ltframe01_02",
				"menu/btn_ltframe01_03",
			},
			x = compprof_ico_ltframe_01_params["x"],
			y = compprof_ico_ltframe_01_params["y"],
			command=
				function()
					OnComputerProfileBtnChooseToken();
				end
		},
		Bitmap
		{
			name = "mover_icon",
			image = compprof_ico_lplayericon02_params["image"],
			x = compprof_ico_lplayericon02_params["x"],
			y = compprof_ico_lplayericon02_params["y"],
		},
		
		-- stats
		Text
		{
			name = "profile_stats",
			font = Green14Font,
			x = compprof_txt_playerstats02_params["x"]-3,
			y = compprof_txt_playerstats02_params["y"]-5,
			w = compprof_txt_playerstats02_params["w"]+50,
			h = compprof_txt_playerstats02_params["h"]+20,
			label="",
			flags = kHAlignLeft + kVAlignTop,
		},
		
		Bitmap
		{
			name = "accept_static",
			image="menu/btn_menu_04",
			x = playerprof_btn_menu_ppaccept_params["x"],
			y = playerprof_btn_menu_ppaccept_params["y"],
			Text
			{
				name = "accept_static_text",
				font = White12Font,
				flags = kHAlignCenter + kVAlignCenter,
				x = 0,
				y = 0,
				label="common.accept.label",
				w = playerprof_btn_menu_ppaccept_params["w"],
				h = playerprof_btn_menu_ppaccept_params["h"],
			}
		},
		-- accept
		MonopolyButton
		{
			name = "accept_btn",
			font = White12Font,
			graphics = playerprof_btn_menu_ppaccept_params["graphics"],
			x = playerprof_btn_menu_ppaccept_params["x"],
			y = playerprof_btn_menu_ppaccept_params["y"],
			type = kPush,
			label="common.accept.label",
			command=
				function()
					if ComputerCheckNameDuplicated() then
						DisplayDialog
						{
							"scripts/generic_ok.lua",
							body = "nameinuse",
							title = "menu/ico_compprofile"
						};
					else
						OnComputerProfileBtnAccept();
					end
				end
		},
		--cancel
		MonopolyButton
		{
			name = "cancel_btn",
			font = White12Font,
			graphics = playerprof_btn_menu_ppcancel_params["graphics"],
			x = playerprof_btn_menu_ppcancel_params["x"],
			y = playerprof_btn_menu_ppcancel_params["y"],
			type = kPush,
			label="common.cancel.label",
			command=
				function()
					OnComputerProfileBtnReturn(true);
				end
		},

		--[[
		Bitmap
		{
			name = "delete_static",
			image="menu/btn_delete_04",
			x = compprof_btn_delete_01_params["x"],
			y = compprof_btn_delete_01_params["y"],
		},
		--]]

		--delete
		MonopolyButton
		{
			name = "delete_btn",
			font = White12Font,
			graphics = compprof_btn_delete_01_params["graphics"],
			x = compprof_btn_delete_01_params["x"],
			y = compprof_btn_delete_01_params["y"],
			type = kPush,
			command=
				function()
					result = DisplayDialog
					{
						"scripts/generic_yesno.lua",
						body = "ui.deleteprofile.confirmation",
						title = "menu/ico_comppprof"
					};
					if (result=='yes') then
						OnComputerProfileBtnDelete();
					end
				end
		},

		-- return
		Button
		{
			name = "return_btn",
			font = White12Font,
			graphics = playerprof_btn_menu_ppaccept_params["graphics"],
			x = (playerprof_btn_menu_ppaccept_params["x"]+playerprof_btn_menu_ppcancel_params["x"])/2,
			y = playerprof_btn_menu_ppaccept_params["y"],
			type = kPush,
			label="return.btn",
			command=
				function()
					OnComputerProfileBtnReturn(false);
				end
		},
--[[
		Button
		{
			name = "delete_btn",
			font = White12Font,
			graphics = compprof_btn_menu_compdelete_params["graphics"],
			x = compprof_btn_menu_compdelete_params["x"],
			y = compprof_btn_menu_compdelete_params["y"],
			type = kPush,
			label="delete.btn",
			command=
				function()
					OnComputerProfileBtnDelete();
				end
		},
--]]

		-- Personality
		Text
		{
			name = "personality_text",
			font = Green20Font,
			x = compprof_txt_personality_params["x"]-10,
			y = compprof_txt_personality_params["y"]-10,
			w = compprof_txt_personality_params["w"]+20,
			h = compprof_txt_personality_params["h"]+20,
			label="persotrait.title",
			flags = kHAlignLeft + kVAlignCenter,
		},	
		
				Bitmap
		{
			name = "vengeful_static",
			image = "menu/btn_chkbtn_05",
			x = compprof_btn_chkbtn_venge_params["x"],
			y = compprof_btn_chkbtn_venge_params["y"],
		},
		Bitmap
		{
			name = "fairplayer_static",
			image = "menu/btn_chkbtn_05",
			x = compprof_btn_chkbtn_fair_params["x"],
			y = compprof_btn_chkbtn_fair_params["y"],
		},
		Bitmap
		{
			name = "stingy_static",
			image = "menu/btn_chkbtn_05",
			x = compprof_btn_chkbtn_sting_params["x"],
			y = compprof_btn_chkbtn_sting_params["y"],
		},
		Bitmap
		{
			name = "gambler_static",
			image = "menu/btn_chkbtn_05",
			x = compprof_btn_chkbtn_gamb_params["x"],
			y = compprof_btn_chkbtn_gamb_params["y"],
		},
		Bitmap
		{
			name = "schemer_static",
			image = "menu/btn_chkbtn_05",
			x = compprof_btn_chkbtn_scheme_params["x"],
			y = compprof_btn_chkbtn_scheme_params["y"],
		},
		Bitmap
		{
			name = "bigshot_static",
			image = "menu/btn_chkbtn_05",
			x = compprof_btn_chkbtn_bigshot_params["x"],
			y = compprof_btn_chkbtn_bigshot_params["y"],
		},
		Bitmap
		{
			name = "eager_static",
			image = "menu/btn_chkbtn_05",
			x = compprof_btn_chkbtn_eager_params["x"],
			y = compprof_btn_chkbtn_eager_params["y"],
		},
		
		Text
		{
			name = "vengeful_text",
			font = Green15Font,
			x = compprof_txt_vengeful_params["x"]-2,
			y = compprof_txt_vengeful_params["y"]-10,
			w = compprof_txt_vengeful_params["w"]+20,
			h = compprof_txt_vengeful_params["h"]+20,
			label="persotrait.check.01",
			flags = kHAlignLeft + kVAlignCenter,
		},	
		Button
		{
			name = "vengeful_btn",
			font = Green15Font,
			graphics = compprof_btn_chkbtn_venge_params["graphics"],
			x = compprof_btn_chkbtn_venge_params["x"],
			y = compprof_btn_chkbtn_venge_params["y"],
			type = kToggle,
			label="",
			command=
				function()
					OnComputerProfileBtnVengeful();
				end
		},
		
		Text
		{
			name = "fairplayer_text",
			font = Green15Font,
			x = compprof_txt_fairplayer_params["x"]-2,
			y = compprof_txt_fairplayer_params["y"]-10,
			w = compprof_txt_fairplayer_params["w"]+20,
			h = compprof_txt_fairplayer_params["h"]+20,
			label="persotrait.check.02",
			flags = kHAlignLeft + kVAlignCenter,
		},	
		Button
		{
			name = "fairplayer_btn",
			font = Green15Font,
			graphics = compprof_btn_chkbtn_fair_params["graphics"],
			x = compprof_btn_chkbtn_fair_params["x"],
			y = compprof_btn_chkbtn_fair_params["y"],
			type = kToggle,
			label="",
			command=
				function()
					OnComputerProfileBtnFairPlayer();
				end
		},
		
		Text
		{
			name = "stingy_text",
			font = Green15Font,
			x = compprof_txt_stingy_params["x"]-2,
			y = compprof_txt_stingy_params["y"]-10,
			w = compprof_txt_stingy_params["w"]+20,
			h = compprof_txt_stingy_params["h"]+20,
			label="persotrait.check.03",
			flags = kHAlignLeft + kVAlignCenter,
		},	
		Button
		{
			name = "stingy_btn",
			font = Green15Font,
			graphics = compprof_btn_chkbtn_sting_params["graphics"],
			x = compprof_btn_chkbtn_sting_params["x"],
			y = compprof_btn_chkbtn_sting_params["y"],
			type = kToggle,
			label="",
			command=
				function()
					OnComputerProfileBtnStingy();
				end
		},
		
		Text
		{
			name = "gambler_text",
			font = Green15Font,
			x = compprof_txt_gambler_params["x"]-2,
			y = compprof_txt_gambler_params["y"]-10,
			w = compprof_txt_gambler_params["w"]+20,
			h = compprof_txt_gambler_params["h"]+20,
			label="persotrait.check.04",
			flags = kHAlignLeft + kVAlignCenter,
		},	
		Button
		{
			name = "gambler_btn",
			font = Green15Font,
			graphics = compprof_btn_chkbtn_gamb_params["graphics"],
			x = compprof_btn_chkbtn_gamb_params["x"],
			y = compprof_btn_chkbtn_gamb_params["y"],
			type = kToggle,
			label="",
			command=
				function()
					OnComputerProfileBtnGambler();
				end
		},
		
		Text
		{
			name = "schemer_text",
			font = Green15Font,
			x = compprof_txt_schemer_params["x"]-2,
			y = compprof_txt_schemer_params["y"]-10,
			w = compprof_txt_schemer_params["w"]+20,
			h = compprof_txt_schemer_params["h"]+20,
			label="persotrait.check.05",
			flags = kHAlignLeft + kVAlignCenter,
		},	
		Button
		{
			name = "schemer_btn",
			font = Green15Font,
			graphics = compprof_btn_chkbtn_scheme_params["graphics"],
			x = compprof_btn_chkbtn_scheme_params["x"],
			y = compprof_btn_chkbtn_scheme_params["y"],
			type = kToggle,
			label="",
			command=
				function()
					OnComputerProfileBtnSchemer();
				end
		},
		
		Text
		{
			name = "bigshot_text",
			font = Green15Font,
			x = compprof_txt_bigshot_params["x"]-2,
			y = compprof_txt_bigshot_params["y"]-10,
			w = compprof_txt_bigshot_params["w"]+20,
			h = compprof_txt_bigshot_params["h"]+20,
			label="persotrait.check.06",
			flags = kHAlignLeft + kVAlignCenter,
		},	
		Button
		{
			name = "bigshot_btn",
			font = Green15Font,
			graphics = compprof_btn_chkbtn_bigshot_params["graphics"],
			x = compprof_btn_chkbtn_bigshot_params["x"],
			y = compprof_btn_chkbtn_bigshot_params["y"],
			type = kToggle,
			label="",
			command=
				function()
					OnComputerProfileBtnBigShot();
				end
		},
		
		Text
		{
			name = "eager_text",
			font = Green15Font,
			x = compprof_txt_eager_params["x"]-2,
			y = compprof_txt_eager_params["y"]-10,
			w = compprof_txt_eager_params["w"]+20,
			h = compprof_txt_eager_params["h"]+20,
			label="persotrait.check.07",
			flags = kHAlignLeft + kVAlignCenter,
		},	
		Button
		{
			name = "eager_btn",
			font = Green15Font,
			graphics = compprof_btn_chkbtn_eager_params["graphics"],
			x = compprof_btn_chkbtn_eager_params["x"],
			y = compprof_btn_chkbtn_eager_params["y"],
			type = kToggle,
			label="",
			command=
				function()
					OnComputerProfileBtnEager();
				end
		},
	
		Text
		{
			name = "wealth_text",
			font = Green15Font,
			x = compprof_txt_wealth_params["x"]-10,
			y = compprof_txt_wealth_params["y"]-10,
			w = compprof_txt_wealth_params["w"]+20,
			h = compprof_txt_wealth_params["h"]+20,
			label="strategytype.01",
			flags = kHAlignLeft + kVAlignCenter,
		},
		Button
		{
			name = "wealth_combo_btn",
			font = Green15Font,
			graphics =
			{
				'menu/ico_dropdown',
				'menu/ico_dropdown',
				'menu/ico_dropdown',
				'menu/ico_dropdown'
			};
			x = compprof_ico_dropdown_01_params["x"],
			y = compprof_ico_dropdown_01_params["y"],
			type = kPush,
			label="",
			command=
				function()
					OnWealthComboBtnEdit();
				end
		},
			
		Text
		{
			name = "planning_text",
			font = Green15Font,
			x = compprof_txt_planpermi_params["x"]-10,
			y = compprof_txt_planpermi_params["y"]-10,
			w = compprof_txt_planpermi_params["w"]+20,
			h = compprof_txt_planpermi_params["h"]+20,
			label="strategytype.02",
			flags = kHAlignLeft + kVAlignCenter,
		},
		Button
		{
			name = "planning_combo_btn",
			font = Green15Font,
			graphics =
			{
				'menu/ico_dropdown',
				'menu/ico_dropdown',
				'menu/ico_dropdown',
				'menu/ico_dropdown'
			};
			x = compprof_ico_dropdown_02_params["x"],
			y = compprof_ico_dropdown_02_params["y"],
			type = kPush,
			label="",
			command=
				function()
					OnPlanningComboBtnEdit();
				end
		},
		
		Text
		{
			name = "bargainer_text",
			font = Green15Font,
			x = compprof_txt_bargainer_params["x"]-10,
			y = compprof_txt_bargainer_params["y"]-10,
			w = compprof_txt_bargainer_params["w"]+20,
			h = compprof_txt_bargainer_params["h"]+20,
			label="strategytype.03",
			flags = kHAlignLeft + kVAlignCenter,
		},
		Button
		{
			name = "bargainer_combo_btn",
			font = Green15Font,
			graphics =
			{
				'menu/ico_dropdown',
				'menu/ico_dropdown',
				'menu/ico_dropdown',
				'menu/ico_dropdown'
			};
			x = compprof_ico_dropdown_03_params["x"],
			y = compprof_ico_dropdown_03_params["y"],
			type = kPush,
			label="",
			command=
				function()
					OnBargainerComboBtnEdit();
				end
		},
		
		Text
		{
			name = "expansion_text",
			font = Green15Font,
			x = compprof_txt_expansion_params["x"]-10,
			y = compprof_txt_expansion_params["y"]-10,
			w = compprof_txt_expansion_params["w"]+20,
			h = compprof_txt_expansion_params["h"]+20,
			label="strategytype.04",
			flags = kHAlignLeft + kVAlignCenter,
		},
		Button
		{
			name = "expansion_combo_btn",
			font = Green15Font,
			graphics =
			{
				'menu/ico_dropdown',
				'menu/ico_dropdown',
				'menu/ico_dropdown',
				'menu/ico_dropdown'
			};
			x = compprof_ico_dropdown_04_params["x"],
			y = compprof_ico_dropdown_04_params["y"],
			type = kPush,
			label="",
			command=
				function()
					OnExpansionComboBtnEdit();
				end
		},
		
		Window
		{
			name = "expansion_combo",
			x = compprof_ico_dropdown_04_params["x"],
			y = compprof_ico_dropdown_04_params["y"],
			w = compprof_ico_dropdown_03_params["w"]+5,
			h = 100,
			Group(strategydropdown_group),
		},
		Window
		{
			name = "bargainer_combo",
			x = compprof_ico_dropdown_03_params["x"],
			y = compprof_ico_dropdown_03_params["y"],
			w = compprof_ico_dropdown_03_params["w"]+5,
			h = 100,
			Group(strategydropdown_group),
		},
		Window
		{
			name = "planning_combo",
			x = compprof_ico_dropdown_02_params["x"],
			y = compprof_ico_dropdown_02_params["y"],
			w = compprof_ico_dropdown_03_params["w"]+5,
			h = 100,
			Group(strategydropdown_group),
		},		
		Window
		{
			name = "wealth_combo",
			x = compprof_ico_dropdown_01_params["x"],
			y = compprof_ico_dropdown_01_params["y"],
			w = compprof_ico_dropdown_03_params["w"]+5,
			h = 100,
			Group(strategydropdown_group),
		},
	
		AvatarSelectionDropDown
		{
			name = "favored_token_popup",
			x = 196,
			y = 262,
			w=300,h=80,

			--BG
			Bitmap
			{
				name = pop_tokenpopup_pop_tpframe_params["name"],
				image = pop_tokenpopup_pop_tpframe_params["image"],
				x = pop_tokenpopup_pop_tpframe_params["x"],
				y = pop_tokenpopup_pop_tpframe_params["y"],
			},
			
			-- The buttons
			MonopolyButton
			{
				name = "token_btn_1",
				graphics = pop_tokenpopup_btn_dframe_01_params["graphics"],
				type = kPush,
				x = pop_tokenpopup_btn_dframe_01_params["x"],
				y = pop_tokenpopup_btn_dframe_01_params["y"],
				command=
					function()
						OnComputerProfileBtnToken(0);
					end
			},
			MonopolyButton
			{
				name = "token_btn_2",
				graphics = pop_tokenpopup_btn_vframe_01_params["graphics"],
				type = kPush,
				x = pop_tokenpopup_btn_vframe_01_params["x"],
				y = pop_tokenpopup_btn_vframe_01_params["y"],
				command=
					function()
						OnComputerProfileBtnToken(1);
					end
			},
			MonopolyButton
			{
				name = "token_btn_3",
				graphics = pop_tokenpopup_btn_tframe_01_params["graphics"],
				type = kPush,
				x = pop_tokenpopup_btn_tframe_01_params["x"],
				y = pop_tokenpopup_btn_tframe_01_params["y"],
				command=
					function()
						OnComputerProfileBtnToken(2);
					end
			},
			MonopolyButton
			{
				name = "token_btn_4",
				graphics = pop_tokenpopup_btn_pframe_01_params["graphics"],
				type = kPush,
				x = pop_tokenpopup_btn_pframe_01_params["x"],
				y = pop_tokenpopup_btn_pframe_01_params["y"],
				command=
					function()
						OnComputerProfileBtnToken(3);
					end
			},
			MonopolyButton
			{
				name = "token_btn_5",
				graphics = pop_tokenpopup_btn_kframe_01_params["graphics"],
				type = kPush,
				x = pop_tokenpopup_btn_kframe_01_params["x"],
				y = pop_tokenpopup_btn_kframe_01_params["y"],
				command=
					function()
						OnComputerProfileBtnToken(4);
					end
			},
			MonopolyButton
			{
				name = "token_btn_6",
				graphics = pop_tokenpopup_btn_hframe_01_params["graphics"],
				type = kPush,
				x = pop_tokenpopup_btn_hframe_01_params["x"],
				y = pop_tokenpopup_btn_hframe_01_params["y"],
				command=
					function()
						OnComputerProfileBtnToken(5);
					end
			},
		},
		ModalBG
		{
			name="readonly_cache",
			x=0,
			y=0,
			w=800,
			h=500,
		},
		
		Bitmap
		{
			name = "reset_static",
			image="menu/btn_menu_04",
			x = compprof_btn_menu_compreset_params["x"],
			y = compprof_btn_menu_compreset_params["y"],
			Text
			{
				name = "reset_static_text",
				font = White12Font,
				flags = kHAlignCenter + kVAlignCenter,
				x = 0,
				y = 0,
				label="reset.btn",
				w = compprof_btn_menu_compreset_params["w"],
				h = compprof_btn_menu_compreset_params["h"],
			}
		},
		--reset stats
		MonopolyButton
		{
			name = "reset_btn",
			font = White12Font,
			graphics = compprof_btn_menu_compreset_params["graphics"],
			x = compprof_btn_menu_compreset_params["x"],
			y = compprof_btn_menu_compreset_params["y"],
			type = kPush,
			label="reset.btn",
			command=
				function()
					OnComputerProfileBtnReset();
				end
		},
	},
}


SetFocus( "profile_name" );
