public virtual void AddToManagers (FlatRedBall.Graphics.Layer layerToAddTo) { LayerProvidedByContainer = layerToAddTo; FlatRedBall.SpriteManager.AddPositionedObject(this); AddToManagersBottomUp(layerToAddTo); CustomInitialize(); }
public void AddToManagers(FlatRedBall.Graphics.Layer layer) { foreach (var item in this.mMapLists) { item.AddToManagers(layer); } }
public virtual void AddToManagers(FlatRedBall.Graphics.Layer layerToAddTo) { LayerProvidedByContainer = layerToAddTo; FlatRedBall.SpriteManager.AddPositionedObject(this); AddToManagersBottomUp(layerToAddTo); CustomInitialize(); }
protected void AddSpritesToLayers(FlatRedBall.Graphics.Layer worldLayer, FlatRedBall.Graphics.Layer darknessLayer, FlatRedBall.Graphics.Layer hudLayer) { if (_AddedToLayers) { darknessLayer.Remove(LightSprite); if (CircleInstance != null) { hudLayer.Remove(CircleInstance); } if (AxisAlignedRectangleInstance != null) { hudLayer.Remove(AxisAlignedRectangleInstance); } } StunParticles.LayerToEmitOn = worldLayer; PoisonedParticles.LayerToEmitOn = worldLayer; FrozenParticles.LayerToEmitOn = worldLayer; SmokeParticles.LayerToEmitOn = worldLayer; HealthBar.MoveToLayer(hudLayer); SpriteManager.AddToLayer(SpriteInstance, worldLayer); SpriteManager.AddToLayer(LightSprite, darknessLayer); SpriteManager.AddToLayer(ShadowSprite, worldLayer); if (CircleInstance != null) { ShapeManager.AddToLayer(CircleInstance, hudLayer); } if (AxisAlignedRectangleInstance != null) { ShapeManager.AddToLayer(AxisAlignedRectangleInstance, hudLayer); } _AddedToLayers = true; }
// Generated AddToManagers public virtual void ReAddToManagers (FlatRedBall.Graphics.Layer layerToAddTo) { LayerProvidedByContainer = layerToAddTo; FlatRedBall.SpriteManager.AddPositionedObject(this); FlatRedBall.SpriteManager.AddToLayer(Sprite, LayerProvidedByContainer); FlatRedBall.Math.Geometry.ShapeManager.AddToLayer(Cuerpo, LayerProvidedByContainer); }
public void MoveToFrbLayer(FlatRedBall.Graphics.Layer frbLayer, global::RenderingLibrary.Graphics.Layer gumLayer) { this.frbLayer = frbLayer; if (gumLayer != null) { this.MoveToLayer(gumLayer); } }
public virtual void MoveToLayer(FlatRedBall.Graphics.Layer layerToMoveTo) { var layerToRemoveFrom = LayerProvidedByContainer; if (layerToRemoveFrom != null) { layerToRemoveFrom.Remove(SpriteInstance); } FlatRedBall.SpriteManager.AddToLayer(SpriteInstance, layerToMoveTo); LayerProvidedByContainer = layerToMoveTo; }
public void MoveToFrbLayer(FlatRedBall.Graphics.Layer layer, FlatRedBall.Gum.GumIdb containingScreen) { var gumLayer = containingScreen.GumLayersOnFrbLayer(layer).FirstOrDefault(); if (gumLayer != null) { this.MoveToLayer(gumLayer); } #if DEBUG else { throw new Exception("There is no associated Gum layer for the FRB Layer " + layer); } #endif }
public void MoveToFrbLayer(FlatRedBall.Graphics.Layer layer, FlatRedBall.Gum.GumIdb containingScreen) { var gumLayer = containingScreen.GumLayersOnFrbLayer(layer).FirstOrDefault(); #if DEBUG if (gumLayer == null) { string message = "There is no associated Gum layer for the FRB Layer " + layer + ".\n" + "To fix this, either add the Layer to Glue, or call AddGumLayerToFrbLayer on the GumIdb with " + "a new instance of a Gum layer. To see an example of how to use AddGumLayerToFrbLayer, add a FRB Layer to Glue and look at generated code."; throw new Exception(message); } #endif MoveToFrbLayer(layer, gumLayer); }
public virtual void MoveToLayer (FlatRedBall.Graphics.Layer layerToMoveTo) { if (LayerProvidedByContainer != null) { LayerProvidedByContainer.Remove(Sprite); } FlatRedBall.SpriteManager.AddToLayer(Sprite, layerToMoveTo); LayerProvidedByContainer = layerToMoveTo; }
// Generated AddToManagers public virtual void ReAddToManagers(FlatRedBall.Graphics.Layer layerToAddTo) { LayerProvidedByContainer = layerToAddTo; FlatRedBall.SpriteManager.AddPositionedObject(this); ModelDrawableBatchInstance.AddToManagers(); }
// Generated AddToManagers public virtual void ReAddToManagers(FlatRedBall.Graphics.Layer layerToAddTo) { LayerProvidedByContainer = layerToAddTo; FlatRedBall.SpriteManager.AddPositionedObject(this); FlatRedBall.SpriteManager.AddToLayer(mSpriteInstance, LayerProvidedByContainer); }
public virtual void AddToManagersBottomUp(FlatRedBall.Graphics.Layer layerToAddTo) { AssignCustomVariables(false); }
public virtual void MoveToLayer(FlatRedBall.Graphics.Layer layerToMoveTo) { LayerProvidedByContainer = layerToMoveTo; }
public void AddToLayer(FlatRedBall.Graphics.Layer layer) { this.mShapes.AddToManagers(layer); }
// Generated AddToManagers public virtual void ReAddToManagers (FlatRedBall.Graphics.Layer layerToAddTo) { LayerProvidedByContainer = layerToAddTo; FlatRedBall.SpriteManager.AddPositionedObject(this); }
public virtual void MoveToLayer (FlatRedBall.Graphics.Layer layerToMoveTo) { LayerProvidedByContainer = layerToMoveTo; }
public override void Initialize(bool addToManagers) { // Generated Initialize LoadStaticContent(ContentManagerName); PlayerInstance = new BeefBall.Entities.GameScreen.Player(ContentManagerName, false); PlayerInstance.Name = "PlayerInstance"; mEnemyInstance = new BeefBall.Entities.GameScreen.Enemy(ContentManagerName, false); mEnemyInstance.Name = "mEnemyInstance"; mEnemyInstance2 = new BeefBall.Entities.GameScreen.Enemy(ContentManagerName, false); mEnemyInstance2.Name = "mEnemyInstance2"; SpriteLayer = new FlatRedBall.Graphics.Layer(); SpriteLayer.Name = "SpriteLayer"; PlayerLayer = new FlatRedBall.Graphics.Layer(); PlayerLayer.Name = "PlayerLayer"; CapacitorPlatformInstance = new BeefBall.Entities.CapacitorPlatform(ContentManagerName, false); CapacitorPlatformInstance.Name = "CapacitorPlatformInstance"; CapacitorPlatformInstance2 = new BeefBall.Entities.CapacitorPlatform(ContentManagerName, false); CapacitorPlatformInstance2.Name = "CapacitorPlatformInstance2"; ResistorStampInstance = new BeefBall.Entities.ResistorStamp(ContentManagerName, false); ResistorStampInstance.Name = "ResistorStampInstance"; ResistorStampInstance2 = new BeefBall.Entities.ResistorStamp(ContentManagerName, false); ResistorStampInstance2.Name = "ResistorStampInstance2"; CapacitorPlatformInstance3 = new BeefBall.Entities.CapacitorPlatform(ContentManagerName, false); CapacitorPlatformInstance3.Name = "CapacitorPlatformInstance3"; CapacitorPlatformInstance4 = new BeefBall.Entities.CapacitorPlatform(ContentManagerName, false); CapacitorPlatformInstance4.Name = "CapacitorPlatformInstance4"; CapacitorPlatformInstance5 = new BeefBall.Entities.CapacitorPlatform(ContentManagerName, false); CapacitorPlatformInstance5.Name = "CapacitorPlatformInstance5"; CapacitorPlatformInstance6 = new BeefBall.Entities.CapacitorPlatform(ContentManagerName, false); CapacitorPlatformInstance6.Name = "CapacitorPlatformInstance6"; CapacitorPlatformInstance7 = new BeefBall.Entities.CapacitorPlatform(ContentManagerName, false); CapacitorPlatformInstance7.Name = "CapacitorPlatformInstance7"; CapacitorPlatformInstance8 = new BeefBall.Entities.CapacitorPlatform(ContentManagerName, false); CapacitorPlatformInstance8.Name = "CapacitorPlatformInstance8"; HealthBarList = new PositionedObjectList<HealthBar>(); ToQuizInstance = new BeefBall.Entities.ToQuiz(ContentManagerName, false); ToQuizInstance.Name = "ToQuizInstance"; PostInitialize(); base.Initialize(addToManagers); if (addToManagers) { AddToManagers(); } }