require( "scripts/style.lua" );

-- gRows and gColumns are set up in mainmenu.lua

ItemFont = {
	standardFont,
	20,
	WhiteColor
};

TimeFont = {
	standardFont,
	28,
	WhiteColor
};

-- Our mini-game set-up
MakeDialog
{
	-- Name the modal dialog
	name="thegame",
	Bitmap
	{
		name="backgroundimage",
		image="backgrounds/gamebackground",

		GameWindow
		{
			x=0,
			y=0,
			w=800,
			h=600,
			
			-- rows=gRows,
			-- columns=gColumns,
			
--			Text
--			{
--				font = TimeFont,
--				name = "timer",
--				x=18,y=455,w=120,h=34,
--				flags = kHAlignCenter + kVAlignCenter,
--				label = "#timer"
--			};
			
			Text
			{
				font = ItemFont,
				name = "itemname1",
				x=24,y=175,w=100,h=38,
				flags = kHAlignCenter + kVAlignCenter,
				label = "#item1"
			};
			
			Text
			{
				font = ItemFont,
				name = "itemname2",
				x=24,y=200,w=100,h=38,
				flags = kHAlignCenter + kVAlignCenter,
				label = "#item2"
			};
			
			Text
			{
				font = ItemFont,
				name = "itemname3",
				x=24,y=225,w=100,h=38,
				flags = kHAlignCenter + kVAlignCenter,
				label = "#item3"
			};
			
			Text
			{
				font = ItemFont,
				name = "itemname4",
				x=24,y=250,w=100,h=38,
				flags = kHAlignCenter + kVAlignCenter,
				label = "#item4"
			};
			
			Text
			{
				font = ItemFont,
				name = "itemname5",
				x=24,y=275,w=100,h=38,
				flags = kHAlignCenter + kVAlignCenter,
				label = "#item5"
			};
			
			Text
			{
				font = ItemFont,
				name = "itemname6",
				x=24,y=300,w=100,h=38,
				flags = kHAlignCenter + kVAlignCenter,
				label = "#item6"
			};
			
			Text
			{
				font = ItemFont,
				name = "itemname7",
				x=24,y=325,w=100,h=38,
				flags = kHAlignCenter + kVAlignCenter,
				label = "#item7"
			};
			
			Text
			{
				font = ItemFont,
				name = "itemname8",
				x=24,y=350,w=100,h=38,
				flags = kHAlignCenter + kVAlignCenter,
				label = "#item8"
			};
			
			Text
			{
				font = ItemFont,
				name = "itemname9",
				x=24,y=375,w=100,h=38,
				flags = kHAlignCenter + kVAlignCenter,
				label = "#item9"
			};
			
			Text
			{
				font = ItemFont,
				name = "itemname10",
				x=24,y=400,w=100,h=38,
				flags = kHAlignCenter + kVAlignCenter,
				label = "#item10"
			};
		},

--		SetStyle( HintButtonStyle ),
--		Button
--		{
--			x=114,
--			y=0,
--			name="hint",
--			cancel=true,
--		},
--		SetStyle( PauseButtonStyle ),
--		Button
--		{
--			x=0,
--			y=497,
--			name="pause",
--			cancel=true,
--			command=
--				function()
--					DoModal("scripts/pause.lua");
--				end
--		},
--		SetStyle( MenuButtonStyle ),
--		Button
--		{
--			x=0,
--			y=542,
--			name="menu",
--			command=
--				function()
--					result = DisplayDialog {
--						"scripts/yesnoexit.lua",
--						body ="backtomain",
--						title = "backmain"
--					};
--					if (result=='yes') then
--						SendGameMessage("quit");
--					end
--				end
--		},
	}
}