
dofile ( "hud/buildnormal.lua" );

buildnormalview_mergebutton_group = 
{
	MonopolyButton
	{
		graphics =
		{
			'game_static/ui/button/btn_merge_01',
			'game_static/ui/button/btn_merge_02',
			'game_static/ui/button/btn_merge_03',
			'game_static/ui/button/btn_merge_04'
		},
		x = 710,
		y = 530,
		name="Btn_Merge1",
		label="",
		tooltip = "over.merge",
		command=
			function()
				OnBuildButtonMerge(0);
			end;
	},
	MonopolyButton
	{
		graphics =
		{
			'game_static/ui/button/btn_merge_01',
			'game_static/ui/button/btn_merge_02',
			'game_static/ui/button/btn_merge_03',
			'game_static/ui/button/btn_merge_04'
		},
		x = 710,
		y = 530,
		name="Btn_Merge2",
		label="",
		tooltip = "over.merge",
		command=
			function()
				OnBuildButtonMerge(1);
			end;
	},
	MonopolyButton
	{
		graphics =
		{
			'game_static/ui/button/btn_merge_01',
			'game_static/ui/button/btn_merge_02',
			'game_static/ui/button/btn_merge_03',
			'game_static/ui/button/btn_merge_04'
		},
		x = 710,
		y = 530,
		name="Btn_Merge3",
		label="",
		tooltip = "over.merge",
		command=
			function()
				OnBuildButtonMerge(2);
			end;
	},
	MonopolyButton
	{
		graphics =
		{
			'game_static/ui/button/btn_merge_01',
			'game_static/ui/button/btn_merge_02',
			'game_static/ui/button/btn_merge_03',
			'game_static/ui/button/btn_merge_04'
		},
		x = 710,
		y = 530,
		name="Btn_Merge4",
		label="",
		tooltip = "over.merge",
		command=
			function()
				OnBuildButtonMerge(3);
			end;
	},
	MonopolyButton
	{
		graphics =
		{
			'game_static/ui/button/btn_merge_01',
			'game_static/ui/button/btn_merge_02',
			'game_static/ui/button/btn_merge_03',
			'game_static/ui/button/btn_merge_04'
		},
		x = 710,
		y = 530,
		name="Btn_Merge5",
		label="",
		tooltip = "over.merge",
		command=
			function()
				OnBuildButtonMerge(4);
			end;
	},
	MonopolyButton
	{
		graphics =
		{
			'game_static/ui/button/btn_merge_01',
			'game_static/ui/button/btn_merge_02',
			'game_static/ui/button/btn_merge_03',
			'game_static/ui/button/btn_merge_04'
		},
		x = 710,
		y = 530,
		name="Btn_Merge6",
		label="",
		tooltip = "over.merge",
		command=
			function()
				OnBuildButtonMerge(5);
			end;
	},
	MonopolyButton
	{
		graphics =
		{
			'game_static/ui/button/btn_merge_01',
			'game_static/ui/button/btn_merge_02',
			'game_static/ui/button/btn_merge_03',
			'game_static/ui/button/btn_merge_04'
		},
		x = 710,
		y = 530,
		name="Btn_Merge7",
		label="",
		tooltip = "over.merge",
		command=
			function()
				OnBuildButtonMerge(6);
			end;
	},
	MonopolyButton
	{
		graphics =
		{
			'game_static/ui/button/btn_merge_01',
			'game_static/ui/button/btn_merge_02',
			'game_static/ui/button/btn_merge_03',
			'game_static/ui/button/btn_merge_04'
		},
		x = 710,
		y = 530,
		name="Btn_Merge8",
		label="",
		tooltip = "over.merge",
		command=
			function()
				OnBuildButtonMerge(7);
			end;
	},
	MonopolyButton
	{
		graphics =
		{
			'game_static/ui/button/btn_merge_01',
			'game_static/ui/button/btn_merge_02',
			'game_static/ui/button/btn_merge_03',
			'game_static/ui/button/btn_merge_04'
		},
		x = 710,
		y = 530,
		name="Btn_Merge9",
		label="",
		tooltip = "over.merge",
		command=
			function()
				OnBuildButtonMerge(8);
			end;
	},
	MonopolyButton
	{
		graphics =
		{
			'game_static/ui/button/btn_merge_01',
			'game_static/ui/button/btn_merge_02',
			'game_static/ui/button/btn_merge_03',
			'game_static/ui/button/btn_merge_04'
		},
		x = 710,
		y = 530,
		name="Btn_Merge10",
		label="",
		tooltip = "over.merge",
		command=
			function()
				OnBuildButtonMerge(9);
			end;
	},
	MonopolyButton
	{
		graphics =
		{
			'game_static/ui/button/btn_merge_01',
			'game_static/ui/button/btn_merge_02',
			'game_static/ui/button/btn_merge_03',
			'game_static/ui/button/btn_merge_04'
		},
		x = 710,
		y = 530,
		name="Btn_Merge11",
		label="",
		tooltip = "over.merge",
		command=
			function()
				OnBuildButtonMerge(10);
			end;
	},
	MonopolyButton
	{
		graphics =
		{
			'game_static/ui/button/btn_merge_01',
			'game_static/ui/button/btn_merge_02',
			'game_static/ui/button/btn_merge_03',
			'game_static/ui/button/btn_merge_04'
		},
		x = 710,
		y = 530,
		name="Btn_Merge12",
		label="",
		tooltip = "over.merge",
		command=
			function()
				OnBuildButtonMerge(11);
			end;
	},
}

buildnormalview_group = 
{
	BuildNormalView
	{
		name = "buildnormalview",
		x = 0,
		y = 0,
		w = kMax,
		h = kMax,
		
		Bitmap
		{
			image=buildnormal_win_build_params["image"],
			x=buildnormal_win_build_params["x"],
			y=buildnormal_win_build_params["y"],
			name = "buildnormal_panel",	
		},		
--[[		
		Bitmap
		{
			image=buildnormal_pop_largecard_params["image"],
			x=buildnormal_pop_largecard_params["x"],
			y=buildnormal_pop_largecard_params["y"],
			name = "build_card_panel",	
		},		
--]]		
		Text
		{
			font = Green30Font,
			name = "build_title_text",
			x = buildnormal_txt_build_params["x"],
			y = buildnormal_txt_build_params["y"]-10,
			w = buildnormal_txt_build_params["w"]+20,
			h = buildnormal_txt_build_params["h"]+20,
			flags = kHAlignLeft + kVAlignCenter,
			label = "buildtitle"
		},
		
		Text
		{
			font = White40Font,
			name = "build_left_text",
			x = buildnormal_txt_buildleft_params["x"],
			y = buildnormal_txt_buildleft_params["y"]-10,
			w = buildnormal_txt_buildleft_params["w"]+20,
			h = buildnormal_txt_buildleft_params["h"]+20,
			flags = kHAlignLeft + kVAlignCenter,
			label = ""
		},
		
		Text
		{
			font = White25Font,
			name = "build_total_text",
			x = buildnormal_txt_buildtotal_params["x"],
			y = buildnormal_txt_buildtotal_params["y"]-10,
			w = buildnormal_txt_buildtotal_params["w"],
			h = buildnormal_txt_buildtotal_params["h"]+20,
			flags = kHAlignLeft + kVAlignCenter,
			label = ""
		},
		
		
		SetStyle(ActionBarButtonStyle),
			
		Bitmap
		{
			image=buildnormal_txt_residential_params["image"],
			x = buildnormal_txt_residential_params["x"],
			y = buildnormal_txt_residential_params["y"],
			name = "residential_text",
		},
		Bitmap
		{
			image=buildnormal_txt_industrial_params["image"],
			x = buildnormal_txt_industrial_params["x"],
			y = buildnormal_txt_industrial_params["y"],
			name = "industrial_text",
		},
		
		-- RESIDENTIAL BUTTON
		Bitmap
		{
			image="hud/btn_resl1_04",
			x = buildnormal_btn_resl1_01_params["x"],
			y = buildnormal_btn_resl1_01_params["y"],
			name = "mask",
		},
		MonopolyButton
		{
			graphics = buildnormal_btn_resl1_01_params["graphics"],
			x = buildnormal_btn_resl1_01_params["x"],
			y = buildnormal_btn_resl1_01_params["y"],
			name="Btn_Residential_Level1",
			label="",
			tooltip = "over.res.1block",
			tooltip_x = buildnormal_btn_resl1_01_params["x"] + 0.5 * buildnormal_btn_resl1_01_params["h"],
			tooltip_y = buildnormal_btn_resl1_01_params["y"] + 2 * buildnormal_btn_resl1_01_params["h"],
			command=
				function()
					OnBuildButtonResidential();
				end;
		},
		Text
		{
			font = Green14Font,
			name = "build_residentialcost_text",
			x = buildnormal_txt_resl1cost_params["x"],
			y = buildnormal_txt_resl1cost_params["y"]-10,
			w = buildnormal_txt_resl1cost_params["w"]+30,
			h = buildnormal_txt_resl1cost_params["h"]+20,
			flags = kHAlignLeft + kVAlignCenter,
			label = ""
		},

		Text
		{
			font = Green14Font,
			name = "build_residentialamount_text",
			x = buildnormal_txt_resl1amt_params["x"],
			y = buildnormal_txt_resl1amt_params["y"]-10,
			w = buildnormal_txt_resl1amt_params["w"]+20,
			h = buildnormal_txt_resl1amt_params["h"]+20,
			flags = kHAlignLeft + kVAlignCenter,
			label = ""
		},

		-- RESIDENTIAL DOUBLE BUTTON
		Bitmap
		{
			image="hud/btn_resl2_04",
			x = buildnormal_btn_resl2_01_params["x"],
			y = buildnormal_btn_resl2_01_params["y"],
			name = "mask",
		},
		MonopolyButton
		{
			graphics = buildnormal_btn_resl2_01_params["graphics"],
			x = buildnormal_btn_resl2_01_params["x"],
			y = buildnormal_btn_resl2_01_params["y"],
			name="Btn_Residential_Level2",
			label="",
			tooltip = "over.res.2block",
			tooltip_x = buildnormal_btn_resl2_01_params["x"] + 0.5 * buildnormal_btn_resl2_01_params["h"],
			tooltip_y = buildnormal_btn_resl2_01_params["y"] + 2 * buildnormal_btn_resl2_01_params["h"],
			command=
				function()
					OnBuildButtonResidentialDouble();
				end;
		},
		Text
		{
			font = Green14Font,
			name = "build_residentialdoublecost_text",
			x = buildnormal_txt_resl1cost_params["x"],
			y = buildnormal_btn_resl2_01_params["y"],
			w = buildnormal_txt_resl1cost_params["w"]+30,
			h = buildnormal_txt_resl1cost_params["h"]+20,
			flags = kHAlignLeft + kVAlignCenter,
			label = ""
		},

		Text
		{
			font = Green14Font,
			name = "build_residentialdoubleamount_text",
			x = buildnormal_txt_resl1amt_params["x"],
			y = buildnormal_btn_resl2_01_params["y"],
			w = buildnormal_txt_resl1amt_params["w"]+20,
			h = buildnormal_txt_resl1amt_params["h"]+20,
			flags = kHAlignLeft + kVAlignCenter,
			label = ""
		},

		-- RESIDENTIAL TOWER BUTTON
		Bitmap
		{
			image="hud/btn_resl3_04",
			x = buildnormal_btn_resl3_01_params["x"],
			y = buildnormal_btn_resl3_01_params["y"],
			name = "mask",
		},
		MonopolyButton
		{
			graphics = buildnormal_btn_resl3_01_params["graphics"],
			x = buildnormal_btn_resl3_01_params["x"],
			y = buildnormal_btn_resl3_01_params["y"],
			name="Btn_Residential_Level3",
			label="",
			tooltip = "over.res.2block",
			tooltip_x = buildnormal_btn_resl3_01_params["x"] + 0.5 * buildnormal_btn_resl3_01_params["h"],
			tooltip_y = buildnormal_btn_resl3_01_params["y"] + 2 * buildnormal_btn_resl3_01_params["h"],
			command=
				function()
					OnBuildButtonResidentialTower();
				end;
		},
		Text
		{
			font = Green14Font,
			name = "build_residentialtowercost_text",
			x = buildnormal_txt_resl1cost_params["x"],
			y = buildnormal_btn_resl3_01_params["y"],
			w = buildnormal_txt_resl1cost_params["w"]+30,
			h = buildnormal_txt_resl1cost_params["h"]+20,
			flags = kHAlignLeft + kVAlignCenter,
			label = ""
		},

		Text
		{
			font = Green14Font,
			name = "build_residentialtoweramount_text",
			x = buildnormal_txt_resl1amt_params["x"],
			y = buildnormal_btn_resl3_01_params["y"],
			w = buildnormal_txt_resl1amt_params["w"]+20,
			h = buildnormal_txt_resl1amt_params["h"]+20,
			flags = kHAlignLeft + kVAlignCenter,
			label = ""
		},			
		
		-- INDUSTRY BUTTON
		Bitmap
		{
			image="hud/btn_indl1_04",
			x = buildnormal_btn_indl1_01_params["x"],
			y = buildnormal_btn_indl1_01_params["y"],
			name = "mask",
		},
		MonopolyButton
		{
			graphics = buildnormal_btn_indl1_01_params["graphics"],
			x = buildnormal_btn_indl1_01_params["x"],
			y = buildnormal_btn_indl1_01_params["y"],
			name="Btn_Industry_Level1",
			label="",
			tooltip = "over.ind.1block",
			tooltip_x = buildnormal_btn_indl1_01_params["x"] + 0.5 * buildnormal_btn_indl1_01_params["h"],
			tooltip_y = buildnormal_btn_indl1_01_params["y"] + 2 * buildnormal_btn_indl1_01_params["h"],
			command=
				function()
					OnBuildButtonIndustry();
				end;
		},
		Text
		{
			font = Green14Font,
			name = "build_industrycost_text",
			x = buildnormal_txt_indl1cost_params["x"],
			y = buildnormal_txt_indl1cost_params["y"]-10,
			w = buildnormal_txt_indl1cost_params["w"]+30,
			h = buildnormal_txt_indl1cost_params["h"]+20,
			flags = kHAlignLeft + kVAlignCenter,
			label = ""
		},

		Text
		{
			font = Green14Font,
			name = "build_industryamount_text",
			x = buildnormal_txt_indl1amt_params["x"],
			y = buildnormal_txt_indl1amt_params["y"]-10,
			w = buildnormal_txt_indl1amt_params["w"]+20,
			h = buildnormal_txt_indl1amt_params["h"]+20,
			flags = kHAlignLeft + kVAlignCenter,
			label = ""
		},

		
		-- INDUSTRY DOUBLE BUTTON
		Bitmap
		{
			image="hud/btn_indl2_04",
			x = buildnormal_btn_indl2_01_params["x"],
			y = buildnormal_btn_indl2_01_params["y"],
			name = "mask",
		},
		MonopolyButton
		{
			graphics = buildnormal_btn_indl2_01_params["graphics"],
			x = buildnormal_btn_indl2_01_params["x"],
			y = buildnormal_btn_indl2_01_params["y"],
			name="Btn_Industry_Level2",
			label="",
			tooltip = "over.ind.2block",
			tooltip_x = buildnormal_btn_indl2_01_params["x"] + 0.5 * buildnormal_btn_indl2_01_params["h"],
			tooltip_y = buildnormal_btn_indl2_01_params["y"] + 2 * buildnormal_btn_indl2_01_params["h"],
			command=
				function()
					OnBuildButtonIndustryDouble();
				end;
		},
		Text
		{
			font = Green14Font,
			name = "build_industrydoublecost_text",
			x = buildnormal_txt_indl1cost_params["x"],
			y = buildnormal_btn_indl2_01_params["y"],
			w = buildnormal_txt_indl1cost_params["w"]+30,
			h = buildnormal_txt_indl1cost_params["h"]+20,
			flags = kHAlignLeft + kVAlignCenter,
			label = ""
		},
		
		Text
		{
			font = Green14Font,
			name = "build_industrydoubleamount_text",
			x = buildnormal_txt_indl1amt_params["x"],
			y = buildnormal_btn_indl2_01_params["y"],
			w = buildnormal_txt_indl1amt_params["w"]+20,
			h = buildnormal_txt_indl1amt_params["h"]+20,
			flags = kHAlignLeft + kVAlignCenter,
			label = ""
		},

		-- INDUSTRY TOWER BUTTON
		Bitmap
		{
			image="hud/btn_indl3_04",
			x = buildnormal_btn_indl3_01_params["x"],
			y = buildnormal_btn_indl3_01_params["y"],
			name = "mask",
		},
		MonopolyButton
		{
			graphics = buildnormal_btn_indl3_01_params["graphics"],
			x = buildnormal_btn_indl3_01_params["x"],
			y = buildnormal_btn_indl3_01_params["y"],
			name="Btn_Industry_Level3",
			label="",
			tooltip = "over.ind.3block",
			tooltip_x = buildnormal_btn_indl3_01_params["x"] + 0.5 * buildnormal_btn_indl3_01_params["h"],
			tooltip_y = buildnormal_btn_indl3_01_params["y"] + 2 * buildnormal_btn_indl3_01_params["h"],
			command=
				function()
					OnBuildButtonIndustryTower();
				end;
		},
		Text
		{
			font = Green14Font,
			name = "build_industrytowercost_text",
			x = buildnormal_txt_indl1cost_params["x"],
			y = buildnormal_btn_indl3_01_params["y"],
			w = buildnormal_txt_indl1cost_params["w"]+30,
			h = buildnormal_txt_indl1cost_params["h"]+20,
			flags = kHAlignLeft + kVAlignCenter,
			label = ""
		},

		Text
		{
			font = Green14Font,
			name = "build_industrytoweramount_text",
			x = buildnormal_txt_indl1amt_params["x"],
			y = buildnormal_btn_indl3_01_params["y"],
			w = buildnormal_txt_indl1amt_params["w"]+20,
			h = buildnormal_txt_indl1amt_params["h"]+20,
			flags = kHAlignLeft + kVAlignCenter,
			label = ""
		},
		
		-- TOTAL COST
		Text
		{
			font = Green14Font,
			name = "build_totalcost_text",
			x = buildnormal_txt_btotalcost_params["x"]-10,
			y = buildnormal_txt_btotalcost_params["y"]-10,
			w = buildnormal_txt_btotalcost_params["w"]+20,
			h = buildnormal_txt_btotalcost_params["h"]+20,
			flags = kHAlignCenter + kVAlignCenter,
			label = ""
		},
		
		-- CURRENT MONEY
		Text
		{
			font = Green14Font,
			name = "build_currentmoney_text",
			x = buildnormal_txt_currentmoney_params["x"]-10,
			y = buildnormal_txt_currentmoney_params["y"]-10,
			w = buildnormal_txt_currentmoney_params["w"]+20,
			h = buildnormal_txt_currentmoney_params["h"]+20,
			flags = kHAlignCenter + kVAlignCenter,
			label = "currentmoney"
		},
		Text
		{
			font = Green14Font,
			name = "build_currentmoneyvalue_text",
			x = buildnormal_txt_cmoney_params["x"]-10,
			y = buildnormal_txt_cmoney_params["y"]-10,
			w = buildnormal_txt_cmoney_params["w"]+20,
			h = buildnormal_txt_cmoney_params["h"]+20,
			flags = kHAlignCenter + kVAlignCenter,
			label = ""
		},
		
		-- CANCEL BUTTON
		Bitmap
		{
			image="hud/btn_menu_04",
			x = buildnormal_btn_menu_buildcancel_params["x"],
			y = buildnormal_btn_menu_buildcancel_params["y"],
			name = "mask",
		},
		MonopolyButton
		{
			graphics = buildnormal_btn_menu_buildcancel_params["graphics"],
			x = buildnormal_btn_menu_buildcancel_params["x"],
			y = buildnormal_btn_menu_buildcancel_params["y"],
			name="Btn_Cancel",
			label="",
			command=
				function()
					OnBuildButtonCancel();
				end;
		},
		Bitmap
		{
			image=buildnormal_txt_buildcancel_params["image"],
			x=buildnormal_txt_buildcancel_params["x"],
			y=buildnormal_txt_buildcancel_params["y"]-1,
			name = "build_canceltext",	
		},		

		-- BUY BUTTON
		Bitmap
		{
			image="hud/btn_menu_04",
			x = buildnormal_btn_menu_buildbuy_params["x"],
			y = buildnormal_btn_menu_buildbuy_params["y"],
			name = "mask",
		},
		MonopolyButton
		{
			graphics = buildnormal_btn_menu_buildbuy_params["graphics"],
			x = buildnormal_btn_menu_buildbuy_params["x"],
			y = buildnormal_btn_menu_buildbuy_params["y"],
			name="Btn_Buy",
			label="",
			command=
				function()
					OnBuildButtonBuy();
				end;
		},
		Bitmap
		{
			image=buildnormal_txt_buildbuy_params["image"],
			x=buildnormal_txt_buildbuy_params["x"],
			y=buildnormal_txt_buildbuy_params["y"]-1,
			name = "build_buytext",	
		},
		
		
		-- REMOVE BUTTON
		MonopolyButton
		{
			graphics =
			{
				'game_static/ui/button/btn_remove_01',
				'game_static/ui/button/btn_remove_02',
				'game_static/ui/button/btn_remove_03',
				'game_static/ui/button/btn_remove_04'
			},
			x = 680,
			y = 500,
			name="Btn_Destroy",
			label="",
			command=
				function()
					OnBuildButtonDestroy();
				end;
		},
		
		MonopolyButton
		{
			graphics =
			{
				'game_static/ui/button/btn_rotatel_01',
				'game_static/ui/button/btn_rotatel_02',
				'game_static/ui/button/btn_rotatel_03',
				'game_static/ui/button/btn_rotatel_04'
			},
			x = 650,
			y = 500,
			name="Btn_RotateLeft",
			label="",
			command=
				function()
					OnBuildButtonRotateLeft();
				end;
		},
		
		MonopolyButton
		{
			graphics =
			{
				'game_static/ui/button/btn_rotater_01',
				'game_static/ui/button/btn_rotater_02',
				'game_static/ui/button/btn_rotater_03',
				'game_static/ui/button/btn_rotater_04'
			},
			x = 710,
			y = 500,
			name="Btn_RotateRight",
			label="",
			command=
				function()
					OnBuildButtonRotateRight();
				end;
		},
		
		-- merge buttons
		Group(buildnormalview_mergebutton_group);
	},
}
