/// <summary> /// Load all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> /// <param name = "manager">XNA content manage</param> public override void LoadContent(IContentCatalogue catalogue, ContentManager manager) { if (!string.IsNullOrEmpty(Normal.BackgroundTexturePath)) { Normal.BackgroundTexture = manager.Load <Texture2D>(Normal.BackgroundTexturePath); } if (!string.IsNullOrEmpty(Selected.BackgroundTexturePath)) { Selected.BackgroundTexture = manager.Load <Texture2D>(Selected.BackgroundTexturePath); } if (!string.IsNullOrEmpty(Pressed.BackgroundTexturePath)) { Pressed.BackgroundTexture = manager.Load <Texture2D>(Pressed.BackgroundTexturePath); } if (!string.IsNullOrEmpty(Normal.FontPath)) { Normal.Font = manager.Load <SpriteFont>(Normal.FontPath); } if (!string.IsNullOrEmpty(Selected.FontPath)) { Selected.Font = manager.Load <SpriteFont>(Selected.FontPath); } if (!string.IsNullOrEmpty(Pressed.FontPath)) { Pressed.Font = manager.Load <SpriteFont>(Pressed.FontPath); } ((IGuiElement)this).Refresh(Application.Graphics.GraphicsDevice); }
/// <summary> /// Load all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> /// <param name = "manager">XNA content manage</param> public virtual void LoadContent(IContentCatalogue catalogue, ContentManager manager) { if (!string.IsNullOrEmpty(MaterialPath)) { Material = manager.Load <Effect>(MaterialPath); DefaultCollisionMaterial = new DefaultCollisionMaterial(); } }
/// <summary> /// Load all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> /// <param name = "manager">XNA content manage</param> public virtual void LoadContent(IContentCatalogue catalogue, ContentManager manager) { if (!string.IsNullOrEmpty(_contentRepositoryPath)) { Repository = manager.Load <ContentRepository>(_contentRepositoryPath); if (!string.IsNullOrEmpty(_scenePath)) { Scene = Repository.Load <Scene>(_scenePath); } GameState.SunBurn.Submit(Scene); } }
/// <summary> /// Load all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> /// <param name = "manager">XNA content manage</param> public virtual void LoadContent(IContentCatalogue catalogue, ContentManager manager) { if (!string.IsNullOrEmpty(_contentRepositoryPath)) { Repository = manager.Load<ContentRepository>(_contentRepositoryPath); if (!string.IsNullOrEmpty(_scenePath)) { Scene = Repository.Load<Scene>(_scenePath); } GameState.SunBurn.Submit(Scene); } }
/// <summary> /// Load all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> /// <param name = "manager">XNA content manage</param> public void LoadContent(IContentCatalogue catalogue, ContentManager manager) { if (!string.IsNullOrEmpty(_particleEffectFilePath)) { Effect = manager.Load<ParticleEffect>(_particleEffectFilePath).DeepCopy(); } if (Effect != null) { foreach (AbstractEmitter emitter in Effect.Emitters) { emitter.ParticleTexture = manager.Load<Texture2D>(emitter.ParticleTextureAssetPath); if (!emitter.Initialised) emitter.Initialise(); } } }
/// <summary> /// Load all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> /// <param name = "manager">XNA content manage</param> public void LoadContent(IContentCatalogue catalogue, ContentManager manager) { if (!string.IsNullOrEmpty(_particleEffectFilePath)) { Effect = manager.Load <ParticleEffect>(_particleEffectFilePath).DeepCopy(); } if (Effect != null) { foreach (AbstractEmitter emitter in Effect.Emitters) { emitter.ParticleTexture = manager.Load <Texture2D>(emitter.ParticleTextureAssetPath); if (!emitter.Initialised) { emitter.Initialise(); } } } }
/// <summary> /// Load all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> /// <param name = "manager">XNA content manage</param> public void LoadContent(IContentCatalogue catalogue, Microsoft.Xna.Framework.Content.ContentManager manager) { SplashScreen = new SplashScreen(); SplashScreen.ShowDuringDevelopment = _showDuringDevelopment; }
/// <summary> /// Unload all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> public abstract void UnloadContent(IContentCatalogue catalogue);
/// <summary> /// Load all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> /// <param name = "manager">XNA content manage</param> public abstract void LoadContent(IContentCatalogue catalogue, ContentManager manager);
/// <summary> /// Unload all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> public abstract void UnloadContent(IContentCatalogue catalogue);
/// <summary> /// Load all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> /// <param name = "manager">XNA content manage</param> public override void LoadContent(IContentCatalogue catalogue, ContentManager manager) { _spriteFont = manager.Load <SpriteFont>(_fontPath); ((IGuiElement)this).Refresh(Application.Graphics.GraphicsDevice); }
/// <summary> /// Unload all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> public void UnloadContent(IContentCatalogue catalogue) { }
/// <summary> /// Load all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> /// <param name = "manager">XNA content manage</param> public void LoadContent(IContentCatalogue catalogue, Microsoft.Xna.Framework.Content.ContentManager manager) { SplashScreen = new SplashScreen(); SplashScreen.ShowDuringDevelopment = _showDuringDevelopment; }
/// <summary> /// Load all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> /// <param name = "manager">XNA content manage</param> public override void LoadContent(IContentCatalogue catalogue, ContentManager manager) { if (!string.IsNullOrEmpty(Normal.BackgroundTexturePath)) Normal.BackgroundTexture = manager.Load<Texture2D>(Normal.BackgroundTexturePath); if (!string.IsNullOrEmpty(Selected.BackgroundTexturePath)) Selected.BackgroundTexture = manager.Load<Texture2D>(Selected.BackgroundTexturePath); if (!string.IsNullOrEmpty(Pressed.BackgroundTexturePath)) Pressed.BackgroundTexture = manager.Load<Texture2D>(Pressed.BackgroundTexturePath); if (!string.IsNullOrEmpty(Normal.FontPath)) Normal.Font = manager.Load<SpriteFont>(Normal.FontPath); if (!string.IsNullOrEmpty(Selected.FontPath)) Selected.Font = manager.Load<SpriteFont>(Selected.FontPath); if (!string.IsNullOrEmpty(Pressed.FontPath)) Pressed.Font = manager.Load<SpriteFont>(Pressed.FontPath); ((IGuiElement)this).Refresh(Application.Graphics.GraphicsDevice); }
/// <summary> /// Load all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> /// <param name = "manager">XNA content manage</param> public override void LoadContent(IContentCatalogue catalogue, ContentManager manager) { _texture = manager.Load<Texture2D>(_texturePath); ((IGuiElement) this).Refresh(Application.Graphics.GraphicsDevice); }
/// <summary> /// Load all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> /// <param name = "manager">XNA content manage</param> public override void LoadContent(IContentCatalogue catalogue, ContentManager manager) { _spriteFont = manager.Load<SpriteFont>(_fontPath); ((IGuiElement)this).Refresh(Application.Graphics.GraphicsDevice); }
/// <summary> /// Unload all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> public override void UnloadContent(IContentCatalogue catalogue) { }
/// <summary> /// Load all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> /// <param name = "manager">XNA content manage</param> public virtual void LoadContent(IContentCatalogue catalogue, ContentManager manager) { if (!string.IsNullOrEmpty(MaterialPath)) { Material = manager.Load<Effect>(MaterialPath); DefaultCollisionMaterial = new DefaultCollisionMaterial(); } }
/// <summary> /// Unload all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> public void UnloadContent(IContentCatalogue catalogue) { }
/// <summary> /// Load all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> /// <param name = "manager">XNA content manage</param> public abstract void LoadContent(IContentCatalogue catalogue, ContentManager manager);
/// <summary> /// Unload all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> public override void UnloadContent(IContentCatalogue catalogue) { }
/// <summary> /// Load all XNA <see cref = "ContentManager" /> content /// </summary> /// <param name = "catalogue"></param> /// <param name = "manager">XNA content manage</param> public override void LoadContent(IContentCatalogue catalogue, ContentManager manager) { _texture = manager.Load <Texture2D>(_texturePath); ((IGuiElement)this).Refresh(Application.Graphics.GraphicsDevice); }