Example #1
0
        /// <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);
        }
Example #2
0
 /// <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();
     }
 }
Example #3
0
        /// <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);
            }
        }
Example #4
0
        /// <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);
            }
        }
Example #5
0
        /// <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();
                }
            }
        }
Example #6
0
        /// <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();
                    }
                }
            }
        }
Example #7
0
 /// <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;
 }
Example #8
0
 /// <summary>
 ///   Unload all XNA <see cref = "ContentManager" /> content
 /// </summary>
 /// <param name = "catalogue"></param>
 public abstract void UnloadContent(IContentCatalogue catalogue);
Example #9
0
 /// <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);
Example #10
0
 /// <summary>
 ///   Unload all XNA <see cref = "ContentManager" /> content
 /// </summary>
 /// <param name = "catalogue"></param>
 public abstract void UnloadContent(IContentCatalogue catalogue);
Example #11
0
File: Label.cs Project: rc183/igf
        /// <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);
        }
Example #12
0
 /// <summary>
 ///   Unload all XNA <see cref = "ContentManager" /> content
 /// </summary>
 /// <param name = "catalogue"></param>
 public void UnloadContent(IContentCatalogue catalogue)
 {
 }
Example #13
0
 /// <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;
 }
Example #14
0
        /// <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);
        }
Example #15
0
File: Image.cs Project: rc183/igf
 /// <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);
 }
Example #16
0
        /// <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);
        }
Example #17
0
File: Image.cs Project: rc183/igf
 /// <summary>
 ///   Unload all XNA <see cref = "ContentManager" /> content
 /// </summary>
 /// <param name = "catalogue"></param>
 public override void UnloadContent(IContentCatalogue catalogue)
 {
 }
Example #18
0
 /// <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();
     }
 }
Example #19
0
 /// <summary>
 ///   Unload all XNA <see cref = "ContentManager" /> content
 /// </summary>
 /// <param name = "catalogue"></param>
 public void UnloadContent(IContentCatalogue catalogue)
 {
 }
Example #20
0
 /// <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);
Example #21
0
File: Label.cs Project: rc183/igf
 /// <summary>
 ///   Unload all XNA <see cref = "ContentManager" /> content
 /// </summary>
 /// <param name = "catalogue"></param>
 public override void UnloadContent(IContentCatalogue catalogue)
 {
 }
Example #22
0
        /// <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);
        }