require( "scripts/style.lua" );


GameModeFont = {
  standardFont,
  35,
  BorderColor
};

InfoFont = {
  standardFont,
  18,
  BorderColor
};

BestScoreFont = {
  standardFont,
  14,
  BlackColor;
};


MapButtonGraphics = {
	"buttons/map_button_a",
	"buttons/map_button_b",
	"buttons/map_button_c"
};

MakeDialog
{
	Bitmap
	{
		name="backgroundimage",
		image="map/map",
		
		ChooseRestaurant
		{ 
			x=0,
			y=0,
			w=800,
			h=600,
				
			Button
			{
				x=650,
				y=10,
				font = StandardBorderButtonFont,
				graphics = MapButtonGraphics,
				name="back",
				label="back",
				xoffset=0,
				type = kPush,
				command=
					function()
						PopModal();
					end
			},
			
			Button
			{
				x=kCenter,
				y=560,
				font = StandardBorderButtonFont,
				graphics = MapButtonGraphics,
				name="play",
				label="play",
				type = kPush,
				xoffset=0,
				command=
					function()
						SetupGame();
						PopModal();
						SwapToModalSetName("scripts/game.lua");
					end
			},
			
			Bitmap
			{
				name="wreckingball1",
				image="map/bulldozer_a",
				x=305,
				y=290,
			},
			
			Bitmap
			{
				name="wreckingball2",
				image="map/bulldozer_b",
				x=320,
				y=285,
			},
			
			Bitmap
			{
				name="wreckingball3",
				image="map/bulldozer_c",
				x=290,
				y=280,
			},
			
			Bitmap
			{
				name="wreckingball4",
				image="map/bulldozer_d",
				x=300,
				y=280,
			},
			
			Bitmap
			{
				name="wreckingball5",
				image="map/bulldozer_e",
				x=310,
				y=310,
			},	
					
			Bitmap
			{
				name="r1_a",
				image="map/rest1_a",
				x=23,
				y=75,
				
				
			},
			
			Bitmap
			{
				name="r1_b",
				image="map/rest1_b",
				x=23,
				y=75,
				
				
			},
			
			
			Bitmap
			{
				name="r2_a",
				image="map/rest2_a",
				x=505,
				y=40,
				
				
			},
			
			Bitmap
			{
				name="r2_b",
				image="map/rest2_b",
				x=505,
				y=40,
				
				
			},
			
			Bitmap
			{
				name="r3_a",
				image="map/rest3_a",
				x=516,
				y=275,
				
				
			},
			
			Bitmap
			{
				name="r3_b",
				image="map/rest3_b",
				x=516,
				y=275,
				
				
			},
			
			
			Bitmap
			{
				name="r4_a",
				image="map/rest4_a",
				x=0,
				y=308,
				
				
			},
			
			Bitmap
			{
				name="r4_b",
				image="map/rest4_b",
				x=0,
				y=308,
				
				
			},
			
			
			Bitmap
			{
				name="blimp",
				image="map/blimp",
				x = 20,
				y = 20
			},
			
			Bitmap
			{
				name="r5_a",
				image="map/rest5_a",
				x=280,
				y=85,
				
				
			},
			
			Bitmap
			{
				name="r5_b",
				image="map/rest5_b",
				x=260,
				y=0,
				
				
			},
			
			Bitmap
			{
				x = kCenter,
				y = 540,
				name="bestscoreimage",
				image = "map/map_high_score",
				Text
				{
					font = BestScoreFont,
					name="bestscore",
					label="bestscore",
					x=0,
					y=4,
					w=kMax,
					h=kMax,
					flags = kHAlignCenter + kVAlignCenter,
					padding = 0
				},
			},

			
			
		}
	},
	
	
};
