//--------------------------------------------------------------------------------------------------------------------------------------------------- // // Copyright (C)2007 DarkWynter Studios. All rights reserved. // //--------------------------------------------------------------------------------------------------------------------------------------------------- // {Contact : darkwynter.com for licensing information //--------------------------------------------------------------------------------------------------------------------------------------------------- namespace ElementalGame.Menus { #region Using Statements using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Storage; #endregion using DarkWynterEngine.Menus; using DarkWynterEngine.Controllers; using DarkWynterEngine.Globals; //using Scurvy.Media; /// /// Our Starting Title Screen. /// public class TitleScreen : GameScreen { /// /// Title Screen constructor. /// public TitleScreen(Enums.EngineState GameEngineState) : base(GameEngineState) { //Instantiate the GameMenu // Title screen will only have the splash image menu = new GameMenu("", Statics.RenderSettings.GAME_WINDOW_WIDTH / 2, Statics.RenderSettings.GAME_WINDOW_HEIGHT / 2); // Game Screen Backgrounds // Check for widescreen and load appropriatly if ((Statics.RenderSettings.GAME_WINDOW_WIDTH) / Statics.RenderSettings.GAME_WINDOW_HEIGHT > 1.5) { // Load the textures for the game screens SetBackground(Statics.SystemSettings.content.Load("_textures/TitleScreen_wide")); } else { // Load the textures for the game screens SetBackground(Statics.SystemSettings.content.Load("Content/_textures/TitleScreen")); } //Video vid = Statics.SystemSettings.content.Load