//---------------------------------------------------------------------------------------------------------------------------------------------------
//
// Copyright (C)2007 DarkWynter Studios. All rights reserved.
//
//---------------------------------------------------------------------------------------------------------------------------------------------------
// {License Information: Creative Commons}
//---------------------------------------------------------------------------------------------------------------------------------------------------
namespace ElementalGame
{
#region Using Statements
using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
#endregion
// The Setup screen
public class LevelSetup : GameScreen
{
public GameMenu displayMenu;
//Texture2D select1, select2, select3, select4;
public LevelSetup()
{
//select1 = ElementalGame.content.Load("_textures/select1");
//select2 = ElementalGame.content.Load("_textures/select2");
//select3 = ElementalGame.content.Load("_textures/select3");
//select4 = ElementalGame.content.Load("_textures/select4");
float scaleX = (XML.SystemSettings.GAME_WINDOW_WIDTH / 1280.0f);
float scaleY = (XML.SystemSettings.GAME_WINDOW_HEIGHT / 1024.0f);
// Instantiate the GameMenu
displayMenu = new GameMenu("", 76 * scaleX, 38 * scaleY);
displayMenu.SetDrawMenuTitle(false);
displayMenu.AddImageScroller("", 4);
menu = new GameMenu("", 520 * scaleX, 780 * scaleY);
menu.AddLabel("Map:");
menu.AddLabel("Description goes here");
menu.GetMenuElement(1).SetFont(FontWriter.Arial);
}
public GameMenu GetDisplayMenu()
{
return displayMenu;
}
public GameMenuImageScroller GetLevelSelection()
{
return ((GameMenuImageScroller)displayMenu.GetMenuElement(0));
}
public GameMenuLabel GetMapNameLabel()
{
return ((GameMenuLabel)menu.GetMenuElement(0));
}
public GameMenuLabel GetDescriptionLabel()
{
return ((GameMenuLabel)menu.GetMenuElement(1));
}
public new void Draw()
{
base.Draw();
displayMenu.Draw();
float scaleX = (XML.SystemSettings.GAME_WINDOW_WIDTH / 1280.0f);
float scaleY = (XML.SystemSettings.GAME_WINDOW_HEIGHT / 1024.0f);
//if (GetLevelSelection().GetActiveIndex() == 0)
//{
// spriteBatch.Draw(select1,
// new Rectangle((int)(60 * scaleX), (int)(36 * scaleY), (int)(248 * scaleX), (int)(201 * scaleY)),
// new Color(255, 255, 255, (byte)(255 * backgroundAlpha)));
//}
//if (GetLevelSelection().GetActiveIndex() == 1)
//{
// spriteBatch.Draw(select2,
// new Rectangle((int)(60 * scaleX), (int)(268 * scaleY), (int)(248 * scaleX), (int)(201 * scaleY)),
// new Color(255, 255, 255, (byte)(255 * backgroundAlpha)));
//}
//if (GetLevelSelection().GetActiveIndex() == 2)
//{
// spriteBatch.Draw(select3,
// new Rectangle((int)(60 * scaleX), (int)(512 * scaleY), (int)(248 * scaleX), (int)(201 * scaleY)),
// new Color(255, 255, 255, (byte)(255 * backgroundAlpha)));
//}
//if (GetLevelSelection().GetActiveIndex() == 3)
//{
// spriteBatch.Draw(select4,
// new Rectangle((int)(60 * scaleX), (int)(754 * scaleY), (int)(248 * scaleX), (int)(201 * scaleY)),
// new Color(255, 255, 255, (byte)(255 * backgroundAlpha)));
//}
}
}
}