//--------------------------------------------------------------------------------------------------------------------------------------------------- // // Copyright (C)2007 DarkWynter Studios. All rights reserved. // //--------------------------------------------------------------------------------------------------------------------------------------------------- // {Contact : darkwynter.com for licensing information //--------------------------------------------------------------------------------------------------------------------------------------------------- namespace DarkWynter.Game.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; using DarkWynter.Engine.Menus; using DarkWynter.Engine.Controllers; using DarkWynter.Engine.Globals; using DarkWynter.Stream; #endregion //using Scurvy.Media; /// /// Our Starting Title Screen. /// public class TitleScreen : GameScreen { /// /// Title Screen constructor. /// public TitleScreen(Enums_Engine.EngineState GameEngineState) : base(GameEngineState) { //Instantiate the GameMenu // Title screen will only have the splash image menu = new GameMenu("", Statics_Stream.RenderSettings.GAME_WINDOW_WIDTH / 2, Statics_Stream.RenderSettings.GAME_WINDOW_HEIGHT / 2); // Game Screen Backgrounds // Check for widescreen and load appropriatly if ((Statics_Stream.RenderSettings.GAME_WINDOW_WIDTH) / Statics_Stream.RenderSettings.GAME_WINDOW_HEIGHT > 1.5) { // Load the textures for the game screens SetBackground(Statics_Engine.SystemSettings.content.Load("_textures/TitleScreen_wide")); } else { // Load the textures for the game screens SetBackground(Statics_Engine.SystemSettings.content.Load("Content/_textures/TitleScreen")); } //Video vid = Statics_Engine.SystemSettings.content.Load