
dofile ( "hud/hud_export.lua" );

actionbar_group = 
{
	-- action bar
	ActionBarView
	{
		name = "actionbarview",
		x = 0,
		y = 0,
		w = kMax,
		h = kMax,

		SetStyle(ActionBarButtonStyle),
		
		-- RESIGN
		Window
		{
		name = "topbar",
			x = 0,
			y = 0,
			w = kMax,
			h = kMax,
		
			Bitmap
			{
				name = "action_bar_panel",	
				image=hud_export_win_actionbar_params["image"],
				x=hud_export_win_actionbar_params["x"],
				y=hud_export_win_actionbar_params["y"],
			},	
			--BANKRUPT
			Bitmap
			{
				name="Btn_ActionBar_Bankrupt_Disable",
				image="hud/btn_bankruptcy_04",
				x = hud_export_btn_bankruptcy_01_params["x"],
				y = hud_export_btn_bankruptcy_01_params["y"],
			},
			
			MonopolyButton
			{
				name="Btn_ActionBar_Bankrupt",
				graphics = hud_export_btn_bankruptcy_01_params["graphics"],
				x = hud_export_btn_bankruptcy_01_params["x"],
				y = hud_export_btn_bankruptcy_01_params["y"],
				label="",
				tooltip = "over.resign",
				tooltip_x = hud_export_btn_bankruptcy_01_params["x"] + 0.5 * hud_export_btn_bankruptcy_01_params["h"],
				tooltip_y = hud_export_btn_bankruptcy_01_params["y"] + 1.5 * hud_export_btn_bankruptcy_01_params["h"],
				command=
					function()
						OnActionBarButtonBankrupt();
					end;
			},
			
			--CLEAR_HAZARD
			Bitmap
			{
				name="Btn_ActionBar_Hazard_Disable",
				image="hud/btn_clearhazard_04",
				x = hud_export_btn_clearhazard_01_params["x"],
				y = hud_export_btn_clearhazard_01_params["y"],
			},
			MonopolyButton
			{
				name="Btn_ActionBar_Hazard",
				graphics = hud_export_btn_clearhazard_01_params["graphics"],
				x = hud_export_btn_clearhazard_01_params["x"],
				y = hud_export_btn_clearhazard_01_params["y"],
				label="",
				tooltip = "over.removehazard",
				tooltip_x = hud_export_btn_clearhazard_01_params["x"] + 0.5 * hud_export_btn_clearhazard_01_params["h"],
				tooltip_y = hud_export_btn_clearhazard_01_params["y"] + 1.5 * hud_export_btn_clearhazard_01_params["h"],
				command=
					function()
						OnActionBarButtonClearHazard();
					end;
			},
			
			--MORTGAGE
			Bitmap
			{
				name="Btn_ActionBar_Mortgage_Disable",
				image="hud/btn_mortgage_04",
				x = hud_export_btn_mortgage_01_params["x"],
				y = hud_export_btn_mortgage_01_params["y"],
			},
			MonopolyButton
			{
				name="Btn_ActionBar_Mortgage",
				graphics = hud_export_btn_mortgage_01_params["graphics"],
				x = hud_export_btn_mortgage_01_params["x"],
				y = hud_export_btn_mortgage_01_params["y"],
				label="",
				tooltip = "over.mortgage",
				tooltip_x = hud_export_btn_mortgage_01_params["x"] + 0.5 * hud_export_btn_mortgage_01_params["h"],
				tooltip_y = hud_export_btn_mortgage_01_params["y"] + 1.5 * hud_export_btn_mortgage_01_params["h"],
				command=
					function()
						OnActionBarButtonMortgage();
					end;
			},
			
			--RAILROAD
			Bitmap
			{
				name="Btn_ActionBar_Railroad_Disable",
				image="hud/btn_railroad_04",
				x = hud_export_btn_railroad_01_params["x"],
				y = hud_export_btn_railroad_01_params["y"],
			},
			MonopolyButton
			{
				name="Btn_ActionBar_Railroad",
				graphics = hud_export_btn_railroad_01_params["graphics"],
				x = hud_export_btn_railroad_01_params["x"],
				y = hud_export_btn_railroad_01_params["y"],
				label="",
				tooltip = "over.railroad",
				tooltip_x = hud_export_btn_railroad_01_params["x"] + 0.5 * hud_export_btn_railroad_01_params["h"],
				tooltip_y = hud_export_btn_railroad_01_params["y"] + 1.5 * hud_export_btn_railroad_01_params["h"],
				command=
					function()
						OnActionBarButtonRailroad();
					end;
			},
			
			--DEAL
			Bitmap
			{
				name="Btn_ActionBar_Deal_Disable",
				image="hud/btn_trade_04",
				x = hud_export_btn_trade_01_params["x"],
				y = hud_export_btn_trade_01_params["y"],
			},
			MonopolyButton
			{
				name="Btn_ActionBar_Deal",
				graphics = hud_export_btn_trade_01_params["graphics"],
				x = hud_export_btn_trade_01_params["x"],
				y = hud_export_btn_trade_01_params["y"],
				label="",
				tooltip = "over.deal",
				tooltip_x = hud_export_btn_trade_01_params["x"] + 0.5 * hud_export_btn_trade_01_params["h"],
				tooltip_y = hud_export_btn_trade_01_params["y"] + 1.5 * hud_export_btn_trade_01_params["h"],
				command=
					function()
						OnActionBarButtonDeal();
					end;
			},
			
			--DICEROLL
			Bitmap
			{
				name="Btn_ActionBar_DiceRoll_Disable",
				image="hud/btn_rolldice_04",
				x = hud_export_btn_rolldice_01_params["x"]-1,
				y = hud_export_btn_rolldice_01_params["y"]-1,
			},
			MonopolyButton
			{
				name="Btn_ActionBar_DiceRoll",
				graphics = hud_export_btn_rolldice_01_params["graphics"],
				x = hud_export_btn_rolldice_01_params["x"]-1,
				y = hud_export_btn_rolldice_01_params["y"]-1,
				label="",
				tooltip = "over.diceroll",
				tooltip_x = hud_export_btn_rolldice_01_params["x"] + 0.5 * hud_export_btn_rolldice_01_params["h"],
				tooltip_y = hud_export_btn_rolldice_01_params["y"] + 1.5 * hud_export_btn_rolldice_01_params["h"],
				command=
					function()
						OnActionBarButtonDiceRoll();
					end;
			},

			--DONE
			MonopolyButton
			{
				name="Btn_ActionBar_Done",
				graphics = {
					"hud/btn_endturn_01",
					"hud/btn_endturn_02",
					"hud/btn_endturn_03",
					"hud/btn_endturn_04"
				};
				x = hud_export_btn_rolldice_01_params["x"]-2,
				y = hud_export_btn_rolldice_01_params["y"]-2,
				label="",
				tooltip = "over.endturn",
				tooltip_x = hud_export_btn_rolldice_01_params["x"] + 0.5 * hud_export_btn_rolldice_01_params["h"],
				tooltip_y = hud_export_btn_rolldice_01_params["y"] + 1.5 * hud_export_btn_rolldice_01_params["h"],
				command=
					function()
						OnActionBarButtonDone();
					end;
			},
			--END INTERVENTION
			MonopolyButton
			{
				name="Btn_ActionBar_EndIntervention",
				graphics = {
					"hud/btn_endintervention_01",
					"hud/btn_endintervention_02",
					"hud/btn_endintervention_03",
					"hud/btn_endintervention_04"
				};
				x = hud_export_btn_rolldice_01_params["x"]-2,
				y = hud_export_btn_rolldice_01_params["y"]-2,
				label="",
				tooltip = "over.endturn",
				tooltip_x = hud_export_btn_rolldice_01_params["x"] + 0.5 * hud_export_btn_rolldice_01_params["h"],
				tooltip_y = hud_export_btn_rolldice_01_params["y"] + 1.5 * hud_export_btn_rolldice_01_params["h"],
				command=
					function()
						OnActionBarButtonEndIntervention();
					end;
			},
			
		--BUILD
			Bitmap
			{
				name = "actionbar_build_disabled",
				image="hud/btn_build_04",
				x = hud_export_btn_build_01_params["x"],
				y = hud_export_btn_build_01_params["y"],
			},
			Bitmap
			{
				name = "Btn_ActionBar_Build_TU0",
				image="hud/btn_tunit0_01",
				x = hud_export_btn_build_01_params["x"],
				y = hud_export_btn_build_01_params["y"],
			},
			Bitmap
			{
				name = "Btn_ActionBar_Build_TU1_disabled",
				image="hud/btn_tunit1_04",
				x = hud_export_btn_build_01_params["x"],
				y = hud_export_btn_build_01_params["y"],
			},
			Bitmap
			{
				name = "Btn_ActionBar_Build_TU2_disabled",
				image="hud/btn_tunit2_04",
				x = hud_export_btn_build_01_params["x"],
				y = hud_export_btn_build_01_params["y"],
			},
			Bitmap
			{
				name = "Btn_ActionBar_Build_TU3_disabled",
				image="hud/btn_tunit3_04",
				x = hud_export_btn_build_01_params["x"],
				y = hud_export_btn_build_01_params["y"],
			},
			Bitmap
			{
				name = "Btn_ActionBar_RailRoad_disabled",
				image="hud/btn_tunitr_04",
				x = hud_export_btn_build_01_params["x"],
				y = hud_export_btn_build_01_params["y"],
			},
			MonopolyButton
			{
				name="Btn_ActionBar_Build",
				graphics = hud_export_btn_build_01_params["graphics"],
				x = hud_export_btn_build_01_params["x"],
				y = hud_export_btn_build_01_params["y"],
				label="",
				tooltip = "over.build",
				tooltip_x = hud_export_btn_build_01_params["x"] + 0.5 * hud_export_btn_build_01_params["h"],
				tooltip_y = hud_export_btn_build_01_params["y"] + 1.5 * hud_export_btn_build_01_params["h"],
				command=
					function()
						OnActionBarButtonBuild();
					end;
			},
			MonopolyButton
			{
				name="Btn_ActionBar_Build_TU1",
				graphics = 
				{
					'hud/btn_tunit1_01',
					'hud/btn_tunit1_02',
					'hud/btn_tunit1_03',
					'hud/btn_tunit1_04'
				},
				x = hud_export_btn_build_01_params["x"],
				y = hud_export_btn_build_01_params["y"],
				label="",
				tooltip = "over.build",
				tooltip_x = hud_export_btn_build_01_params["x"] + 0.5 * hud_export_btn_build_01_params["h"],
				tooltip_y = hud_export_btn_build_01_params["y"] + 1.5 * hud_export_btn_build_01_params["h"],
				command=
					function()
						OnActionBarButtonBuild();
					end;
			},
			MonopolyButton
			{
				name="Btn_ActionBar_Build_TU2",
				graphics = 
				{
					'hud/btn_tunit2_01',
					'hud/btn_tunit2_02',
					'hud/btn_tunit2_03',
					'hud/btn_tunit2_04'
				},
				x = hud_export_btn_build_01_params["x"],
				y = hud_export_btn_build_01_params["y"],
				label="",
				tooltip = "over.build",
				tooltip_x = hud_export_btn_build_01_params["x"] + 0.5 * hud_export_btn_build_01_params["h"],
				tooltip_y = hud_export_btn_build_01_params["y"] + 1.5 * hud_export_btn_build_01_params["h"],
				command=
					function()
						OnActionBarButtonBuild();
					end;
			},
			MonopolyButton
			{
				name="Btn_ActionBar_Build_TU3",
				graphics = 
				{
					'hud/btn_tunit3_01',
					'hud/btn_tunit3_02',
					'hud/btn_tunit3_03',
					'hud/btn_tunit3_04'
				},
				x = hud_export_btn_build_01_params["x"],
				y = hud_export_btn_build_01_params["y"],
				label="",
				tooltip = "over.build",
				tooltip_x = hud_export_btn_build_01_params["x"] + 0.5 * hud_export_btn_build_01_params["h"],
				tooltip_y = hud_export_btn_build_01_params["y"] + 1.5 * hud_export_btn_build_01_params["h"],
				command=
					function()
						OnActionBarButtonBuild();
					end;
			},
			
		--BUILD SPECIAL
			Bitmap
			{
				name="Btn_ActionBar_BuildSpecial_Disable",
				image="hud/btn_buildspecial_04",
				x = hud_export_btn_buildspecial_01_params["x"],
				y = hud_export_btn_buildspecial_01_params["y"],
			},
			MonopolyButton
			{
				name="Btn_ActionBar_BuildSpecial",
				graphics = hud_export_btn_buildspecial_01_params["graphics"],
				x = hud_export_btn_buildspecial_01_params["x"],
				y = hud_export_btn_buildspecial_01_params["y"],
				label="",
				tooltip = "over.buildspecial",
				tooltip_x = hud_export_btn_buildspecial_01_params["x"] + 0.5 * hud_export_btn_buildspecial_01_params["h"],
				tooltip_y = hud_export_btn_buildspecial_01_params["y"] + 1.5 * hud_export_btn_buildspecial_01_params["h"],
				command=
					function()
						OnActionBarButtonBuildSpecial();
					end;
			},
						
			--MENU
			Bitmap
			{
				image="hud/btn_mnu_04",
				x = hud_export_btn_mnu_01_params["x"],
				y = hud_export_btn_mnu_01_params["y"],
				name = "mask",
			},		
			MonopolyButton
			{
				name="Btn_ActionBar_Menu",
				graphics = hud_export_btn_mnu_01_params["graphics"],
				x = hud_export_btn_mnu_01_params["x"],
				y = hud_export_btn_mnu_01_params["y"],
				label = "",
				tooltip = "over.options",
				tooltip_x = hud_export_btn_mnu_01_params["x"] + 0.5 * hud_export_btn_mnu_01_params["h"],
				tooltip_y = hud_export_btn_mnu_01_params["y"] - 0.5 * hud_export_btn_mnu_01_params["h"],
				cancel=true,
				command=
					function()
						OnActionBarButtonMenu();
						DoModal("scripts/options_ingame.lua");
					end;
			},
		},
		
		-- MENU LOG
		Bitmap
		{
			name = "options_bar_panel",	
			image=hud_export_win_visbar_params["image"],
			x=hud_export_win_visbar_params["x"],
			y=hud_export_win_visbar_params["y"],
		},		
		
		SetStyle(ActionBarButtonStyle),
		
		--MENU
		Bitmap
		{
			image="hud/btn_mnu_04",
			x = hud_export_btn_mnu_01_params["x"],
			y = hud_export_btn_mnu_01_params["y"],
			name = "mask",
		},
			
		MonopolyButton
		{
			name="Btn_ActionBar_Menu",
			graphics = hud_export_btn_mnu_01_params["graphics"],
			x = hud_export_btn_mnu_01_params["x"],
			y = hud_export_btn_mnu_01_params["y"],
			label = "",
			tooltip = "over.options",
			tooltip_x = hud_export_btn_mnu_01_params["x"] + 0.5 * hud_export_btn_mnu_01_params["h"],
			tooltip_y = hud_export_btn_mnu_01_params["y"] - 0.5 * hud_export_btn_mnu_01_params["h"],
			cancel=true,
			command=
				function()
					DoModal("scripts/options_ingame.lua");
					--OnGameQuit();
				end;
		},
--[[		
		Bitmap
		{
			image="hud/btn_zoomin_04",
			x = hud_export_btn_zoomin_01_params["x"],
			y = hud_export_btn_zoomin_01_params["y"],
			name = "mask",
		},
		MonopolyButton
		{
			name="Btn_ActionBar_Zoom",
			graphics = hud_export_btn_zoomin_01_params["graphics"],
			x = hud_export_btn_zoomin_01_params["x"],
			y = hud_export_btn_zoomin_01_params["y"],
			label="",
			type = kToggle,
			tooltip = "over.zoom",
			tooltip_x = hud_export_btn_zoomin_01_params["x"] + 0.5 * hud_export_btn_bankruptcy_01_params["h"],
			tooltip_y = hud_export_btn_zoomin_01_params["y"] - 0.5 * hud_export_btn_bankruptcy_01_params["h"],
			command=
				function()
					OnActionBarButtonZoom();
				end;
		},
--]]		
		Bitmap
		{
			image="hud/btn_log_04",
			x = hud_export_btn_log_01_params["x"],
			y = hud_export_btn_log_01_params["y"],
			name = "mask",
		},
		MonopolyButton
		{
			name="Btn_ActionBar_Log",
			graphics = hud_export_btn_log_01_params["graphics"],
			x = hud_export_btn_log_01_params["x"],
			y = hud_export_btn_log_01_params["y"],
			label="",
			tooltip = "over.log",
			tooltip_x = hud_export_btn_log_01_params["x"] + 0.5 * hud_export_btn_bankruptcy_01_params["h"],
			tooltip_y = hud_export_btn_log_01_params["y"] - 0.5 * hud_export_btn_bankruptcy_01_params["h"],
			command=
				function()
					OnActionBarButtonLog();
				end;
		},
		
	},
	--end action bar
}