// Generated Methods public virtual void PostInitialize() { bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue; FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true; this.AfterFontSizeSet += OnAfterFontSizeSet; this.AfterRedSet += OnAfterRedSet; this.AfterGreenSet += OnAfterGreenSet; this.AfterBlueSet += OnAfterBlueSet; if (LabelText.Parent == null) { LabelText.CopyAbsoluteToRelative(); LabelText.AttachTo(this, false); } LabelText.DisplayText = "Unset Label"; LabelText.Font = Paint100; LabelText.NewLineDistance = 136.5f; LabelText.Scale = 91f; LabelText.Spacing = 91f; LabelText.Blue = 1f; #if FRB_MDX LabelText.ColorOperation = Microsoft.DirectX.Direct3D.TextureOperation.Subtract; #else LabelText.ColorOperation = FlatRedBall.Graphics.ColorOperation.Subtract; #endif LabelText.Green = 1f; LabelText.Red = 1f; FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd; }
public virtual void PostInitialize() { bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue; FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true; this.Click += OnClick; if (SpriteInstance.Parent == null) { SpriteInstance.CopyAbsoluteToRelative(); SpriteInstance.AttachTo(this, false); } SpriteInstance.TextureScale = 1f; SpriteInstance.Red = 0.1f; SpriteInstance.Green = 0.1f; SpriteInstance.Blue = 0.1f; if (TextInstance.Parent == null) { TextInstance.CopyAbsoluteToRelative(); TextInstance.AttachTo(this, false); } if (TextInstance.Parent == null) { TextInstance.Z = 5f; } else { TextInstance.RelativeZ = 5f; } TextInstance.AdjustPositionForPixelPerfectDrawing = false; FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd; }
public virtual void PostInitialize() { bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue; FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true; if (TextInstance.Parent == null) { TextInstance.CopyAbsoluteToRelative(); TextInstance.AttachTo(this, false); } TextInstance.DisplayText = "99"; if (TextInstance.Parent == null) { TextInstance.X = 50f; } else { TextInstance.RelativeX = 50f; } if (TextInstance.Parent == null) { TextInstance.Y = 80f; } else { TextInstance.RelativeY = 80f; } TextInstance.TextureScale = 10f; TextInstance.ColorOperation = FlatRedBall.Graphics.ColorOperation.ColorTextureAlpha; FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd; }
// Generated Methods public virtual void PostInitialize() { bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue; FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true; if (TextInstance.Parent == null) { TextInstance.CopyAbsoluteToRelative(); TextInstance.AttachTo(this, false); } TextInstance.DisplayText = "TEEEST"; TextInstance.Font = MazetechFont; TextInstance.NewLineDistance = 9f; TextInstance.Scale = 6f; TextInstance.Spacing = 6f; if (TextInstance.Parent == null) { TextInstance.Z = 15f; } else { TextInstance.RelativeZ = 15f; } TextInstance.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; TextInstance.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Center; if (SpriteInstance.Parent == null) { SpriteInstance.CopyAbsoluteToRelative(); SpriteInstance.AttachTo(this, false); } SpriteInstance.Texture = MessageTexture; SpriteInstance.TextureScale = 2.5f; if (SpriteInstance.Parent == null) { SpriteInstance.Z = -10f; } else { SpriteInstance.RelativeZ = -10f; } SpriteInstance.Visible = true; if (mCollision.Parent == null) { mCollision.CopyAbsoluteToRelative(); mCollision.AttachTo(this, false); } Collision.Color = Color.Red; Collision.Height = 200f; Collision.Visible = false; Collision.Width = 32f; FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd; }
public virtual void PostInitialize() { bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue; FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true; if (ScorePoints.Parent == null) { ScorePoints.CopyAbsoluteToRelative(); ScorePoints.AttachTo(this, false); } ScorePoints.DisplayText = "99"; if (ScorePoints.Parent == null) { ScorePoints.X = 20f; } else { ScorePoints.RelativeX = 20f; } if (ScorePoints.Parent == null) { ScorePoints.Y = 270f; } else { ScorePoints.RelativeY = 270f; } if (ScoreLabel.Parent == null) { ScoreLabel.CopyAbsoluteToRelative(); ScoreLabel.AttachTo(this, false); } ScoreLabel.DisplayText = "Points"; if (ScoreLabel.Parent == null) { ScoreLabel.X = -20f; } else { ScoreLabel.RelativeX = -20f; } if (ScoreLabel.Parent == null) { ScoreLabel.Y = 270f; } else { ScoreLabel.RelativeY = 270f; } FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd; }
// Generated Methods public virtual void PostInitialize() { bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue; FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true; if (TextInstance.Parent == null) { TextInstance.CopyAbsoluteToRelative(); TextInstance.RelativeZ += -40; TextInstance.AttachTo(SpriteManager.Camera, false); } TextInstance.DisplayText = "THE LOST FEDORA\n\nPress ENTER to start the game\nPress ESC to exit"; TextInstance.Visible = true; TextInstance.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Center; TextInstance.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd; }
// Generated Methods public virtual void PostInitialize() { bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue; FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true; if (TheEndText.Parent == null) { TheEndText.CopyAbsoluteToRelative(); TheEndText.RelativeZ += -40; TheEndText.AttachTo(SpriteManager.Camera, false); } TheEndText.DisplayText = "The End.\nPress Enter To Go To Main Menu!"; if (TheEndText.Parent == null) { TheEndText.X = 0f; } else { TheEndText.RelativeX = 0f; } if (TheEndText.Parent == null) { TheEndText.Y = 0f; } else { TheEndText.RelativeY = 0f; } if (TheEndText.Parent == null) { TheEndText.Z = 25f; } else { TheEndText.RelativeZ = 25f - 40.0f; } TheEndText.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; TheEndText.Visible = false; FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd; }
public virtual void PostInitialize() { bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue; FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true; this.BoatNearDock += OnBoatNearDock; if (TextInstance.Parent == null) { TextInstance.CopyAbsoluteToRelative(); TextInstance.AttachTo(this, false); } TextInstance.DisplayText = "Accoster (E)"; TextInstance.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Right; TextInstance.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Center; TextInstance.Visible = false; if (mCircleInstance.Parent == null) { mCircleInstance.CopyAbsoluteToRelative(); mCircleInstance.AttachTo(this, false); } CircleInstance.Radius = 48f; CircleInstance.Visible = false; FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd; }
public virtual void PostInitialize() { bool oldShapeManagerSuppressAdd = FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue; FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = true; if (SpriteInstance.Parent == null) { SpriteInstance.CopyAbsoluteToRelative(); SpriteInstance.AttachTo(this, false); } if (SpriteInstance.Parent == null) { SpriteInstance.Z = 10f; } else { SpriteInstance.RelativeZ = 10f; } SpriteInstance.Texture = null; SpriteInstance.TextureScale = 0.75f; SpriteInstance.AnimationChains = AnimationChain; SpriteInstance.CurrentChainName = "Idle"; if (TextInstance.Parent == null) { TextInstance.CopyAbsoluteToRelative(); TextInstance.AttachTo(this, false); } TextInstance.DisplayText = "Player"; TextInstance.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; if (TextInstance.Parent == null) { TextInstance.Y = 32f; } else { TextInstance.RelativeY = 32f; } if (mHitbox.Parent == null) { mHitbox.CopyAbsoluteToRelative(); mHitbox.AttachTo(this, false); } if (Hitbox.Parent == null) { Hitbox.Z = 15f; } else { Hitbox.RelativeZ = 15f; } Hitbox.Width = 32f; Hitbox.Height = 32f; Hitbox.Visible = false; Hitbox.RepositionDirections = FlatRedBall.Math.Geometry.RepositionDirections.All; if (WeaponInstance.Parent == null) { WeaponInstance.CopyAbsoluteToRelative(); WeaponInstance.AttachTo(this, false); } mGeneratedCollision = new FlatRedBall.Math.Geometry.ShapeCollection(); mGeneratedCollision.AxisAlignedRectangles.AddOneWay(mHitbox); FlatRedBall.Math.Geometry.ShapeManager.SuppressAddingOnVisibilityTrue = oldShapeManagerSuppressAdd; }