//--------------------------------------------------------------------------------------------------------------------------------------------------- // // 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.Globals; using DarkWynterEngine.Menus; using DarkWynterEngine.ObjectLib; using DarkWynterEngine.Controllers; /// /// Displayed while loading game. /// public class LoadingScreen : GameScreen { private const int glyphPositionX = 537; private const int glyphPositionY = 242; private const int glyphSize = 64; private Texture2D glyphTexture; private float rotation = 0; /// /// Loading Screen constructor. /// public LoadingScreen(Enums.EngineState GameEngineState) : base(GameEngineState) { //Instantiate the GameMenu menu = new GameMenu("", 0,0); SetBackground(Statics.SystemSettings.content.Load("Content/_textures/Loading")); glyphTexture = Statics.SystemSettings.content.Load("Content/GamePicture"); } public override void Update(ObjectLibrary objectLibrary) { base.Update(objectLibrary); Statics.GameSettings.LoadScreenLoaded = true; } } }