public virtual void AssignCustomVariables(bool callOnContainedElements) { if (callOnContainedElements) { CreatedByLabel.AssignCustomVariables(true); CCGLabel.AssignCustomVariables(true); } CcgLogo.Texture = CcgSplash; CcgLogo.TextureScale = 1f; if (CreatedByLabel.Parent == null) { CreatedByLabel.Y = 300f; } else { CreatedByLabel.RelativeY = 300f; } CreatedByLabel.Text = "Created By"; CreatedByLabel.FontSize = 40; CreatedByLabel.Red = 1f; CreatedByLabel.Green = 1f; CreatedByLabel.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; CreatedByLabel.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Top; if (CCGLabel.Parent == null) { CCGLabel.Y = -300f; } else { CCGLabel.RelativeY = -300f; } CCGLabel.Text = "CupCode Gamers"; CCGLabel.FontSize = 40; CCGLabel.Red = 1f; CCGLabel.Green = 1f; CCGLabel.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; CCGLabel.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Bottom; CcgLogoAlpha = 1f; }
public virtual void AssignCustomVariables(bool callOnContainedElements) { if (callOnContainedElements) { Player1Label.AssignCustomVariables(true); Player2Label.AssignCustomVariables(true); PlayButton.AssignCustomVariables(true); BackButton.AssignCustomVariables(true); BackgroundImage.AssignCustomVariables(true); Player1HumanIcon.AssignCustomVariables(true); Player2HumanIcon.AssignCustomVariables(true); Player1ComputerIcon.AssignCustomVariables(true); Player2ComputerIcon.AssignCustomVariables(true); Player1Tile.AssignCustomVariables(true); Player2Tile.AssignCustomVariables(true); Player1AiSelector.AssignCustomVariables(true); Player2AiSelector.AssignCustomVariables(true); } if (Player1Label.Parent == null) { Player1Label.X = -125f; } else { Player1Label.RelativeX = -125f; } if (Player1Label.Parent == null) { Player1Label.Y = 250f; } else { Player1Label.RelativeY = 250f; } Player1Label.Text = "Player 1"; Player1Label.FontSize = 20; Player1Label.Red = 1f; if (Player2Label.Parent == null) { Player2Label.X = -125f; } else { Player2Label.RelativeX = -125f; } if (Player2Label.Parent == null) { Player2Label.Y = 50f; } else { Player2Label.RelativeY = 50f; } Player2Label.Text = "Player 2"; Player2Label.FontSize = 20; Player2Label.Red = 0f; Player2Label.Green = 0f; Player2Label.Blue = 1f; if (PlayButton.Parent == null) { PlayButton.X = 200f; } else { PlayButton.RelativeX = 200f; } if (PlayButton.Parent == null) { PlayButton.Y = -240f; } else { PlayButton.RelativeY = -240f; } PlayButton.Text = "Play"; PlayButton.FontSize = 40; PlayButton.Green = 1f; if (BackButton.Parent == null) { BackButton.X = -380f; } else { BackButton.RelativeX = -380f; } if (BackButton.Parent == null) { BackButton.Y = -240f; } else { BackButton.RelativeY = -240f; } BackButton.Text = "Back"; BackButton.FontSize = 40; BackButton.Red = 1f; BackgroundImage.RandomImage = false; if (Player1HumanIcon.Parent == null) { Player1HumanIcon.X = -100f; } else { Player1HumanIcon.RelativeX = -100f; } if (Player1HumanIcon.Parent == null) { Player1HumanIcon.Y = 170f; } else { Player1HumanIcon.RelativeY = 170f; } Player1HumanIcon.CurrentPlayerTypeState = Icon.PlayerType.Human; Player1HumanIcon.CurrentIconStateState = Icon.IconState.Selected; Player1HumanIcon.Size = 64f; if (Player2HumanIcon.Parent == null) { Player2HumanIcon.X = -100f; } else { Player2HumanIcon.RelativeX = -100f; } if (Player2HumanIcon.Parent == null) { Player2HumanIcon.Y = -40f; } else { Player2HumanIcon.RelativeY = -40f; } Player2HumanIcon.CurrentPlayerTypeState = Icon.PlayerType.Human; Player2HumanIcon.CurrentIconStateState = Icon.IconState.Selected; Player2HumanIcon.Size = 64f; if (Player1ComputerIcon.Parent == null) { Player1ComputerIcon.X = 100f; } else { Player1ComputerIcon.RelativeX = 100f; } if (Player1ComputerIcon.Parent == null) { Player1ComputerIcon.Y = 170f; } else { Player1ComputerIcon.RelativeY = 170f; } Player1ComputerIcon.CurrentPlayerTypeState = Icon.PlayerType.Computer; Player1ComputerIcon.CurrentIconStateState = Icon.IconState.NotSelected; Player1ComputerIcon.Size = 64f; if (Player2ComputerIcon.Parent == null) { Player2ComputerIcon.X = 100f; } else { Player2ComputerIcon.RelativeX = 100f; } if (Player2ComputerIcon.Parent == null) { Player2ComputerIcon.Y = -40f; } else { Player2ComputerIcon.RelativeY = -40f; } Player2ComputerIcon.CurrentPlayerTypeState = Icon.PlayerType.Computer; Player2ComputerIcon.CurrentIconStateState = Icon.IconState.NotSelected; Player2ComputerIcon.Size = 64f; if (Player1Tile.Parent == null) { Player1Tile.X = 100f; } else { Player1Tile.RelativeX = 100f; } if (Player1Tile.Parent == null) { Player1Tile.Y = 247f; } else { Player1Tile.RelativeY = 247f; } Player1Tile.PlayerSpriteHeight = 50f; Player1Tile.PlayerSpriteWidth = 50f; Player1Tile.CurrentState = BoardTile.VariableState.X; if (Player2Tile.Parent == null) { Player2Tile.X = 100f; } else { Player2Tile.RelativeX = 100f; } if (Player2Tile.Parent == null) { Player2Tile.Y = 50f; } else { Player2Tile.RelativeY = 50f; } Player2Tile.PlayerSpriteHeight = 50f; Player2Tile.PlayerSpriteWidth = 50f; Player2Tile.CurrentState = BoardTile.VariableState.O; if (Player1AiSelector.Parent == null) { Player1AiSelector.X = 150f; } else { Player1AiSelector.RelativeX = 150f; } if (Player1AiSelector.Parent == null) { Player1AiSelector.Y = 210f; } else { Player1AiSelector.RelativeY = 210f; } if (Player2AiSelector.Parent == null) { Player2AiSelector.X = 150f; } else { Player2AiSelector.RelativeX = 150f; } }
public virtual void AssignCustomVariables(bool callOnContainedElements) { if (callOnContainedElements) { EasySelection.AssignCustomVariables(true); NormalOffensiveSelection.AssignCustomVariables(true); NormalDefensiveSelection.AssignCustomVariables(true); HardSelection.AssignCustomVariables(true); } if (EasySelection.Parent == null) { EasySelection.Y = 0f; } else { EasySelection.RelativeY = 0f; } EasySelection.Text = "Easy"; EasySelection.FontSize = 9; EasySelection.Red = 1f; EasySelection.Green = 1f; EasySelection.Blue = 1f; EasySelection.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Left; EasySelection.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Top; if (NormalOffensiveSelection.Parent == null) { NormalOffensiveSelection.Y = -20f; } else { NormalOffensiveSelection.RelativeY = -20f; } NormalOffensiveSelection.Text = "Normal Offensive"; NormalOffensiveSelection.FontSize = 9; NormalOffensiveSelection.Red = 1f; NormalOffensiveSelection.Green = 1f; NormalOffensiveSelection.Blue = 1f; NormalOffensiveSelection.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Left; NormalOffensiveSelection.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Top; if (NormalDefensiveSelection.Parent == null) { NormalDefensiveSelection.Y = -40f; } else { NormalDefensiveSelection.RelativeY = -40f; } NormalDefensiveSelection.Text = "Normal Defensive"; NormalDefensiveSelection.FontSize = 9; NormalDefensiveSelection.Red = 1f; NormalDefensiveSelection.Green = 1f; NormalDefensiveSelection.Blue = 1f; NormalDefensiveSelection.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Left; NormalDefensiveSelection.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Top; if (HardSelection.Parent == null) { HardSelection.Y = -60f; } else { HardSelection.RelativeY = -60f; } HardSelection.Text = "Hard"; HardSelection.FontSize = 9; HardSelection.Red = 1f; HardSelection.Green = 1f; HardSelection.Blue = 1f; HardSelection.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Left; HardSelection.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Top; CurrentState = AiSelector.VariableState.Hard; }
public virtual void AssignCustomVariables(bool callOnContainedElements) { if (callOnContainedElements) { MenuItemPlay.AssignCustomVariables(true); MenuItemExit.AssignCustomVariables(true); TitleTextLabel.AssignCustomVariables(true); BackgroundImage.AssignCustomVariables(true); GridBackgroundInstance.AssignCustomVariables(true); BoardTileO1.AssignCustomVariables(true); BoardTileO2.AssignCustomVariables(true); BoardTileX1.AssignCustomVariables(true); BoardTileX2.AssignCustomVariables(true); BoardTileX3.AssignCustomVariables(true); MenuItemAbout.AssignCustomVariables(true); } if (MenuItemPlay.Parent == null) { MenuItemPlay.X = 200f; } else { MenuItemPlay.RelativeX = 200f; } if (MenuItemPlay.Parent == null) { MenuItemPlay.Y = -250f; } else { MenuItemPlay.RelativeY = -250f; } MenuItemPlay.Text = "Play"; MenuItemPlay.FontSize = 40; MenuItemPlay.Red = 0f; MenuItemPlay.Green = 1f; MenuItemPlay.Blue = 0f; if (MenuItemExit.Parent == null) { MenuItemExit.X = -380f; } else { MenuItemExit.RelativeX = -380f; } if (MenuItemExit.Parent == null) { MenuItemExit.Y = -240f; } else { MenuItemExit.RelativeY = -240f; } MenuItemExit.Text = "Exit"; MenuItemExit.FontSize = 40; MenuItemExit.Red = 1f; MenuItemExit.Green = 0f; MenuItemExit.Blue = 0f; if (TitleTextLabel.Parent == null) { TitleTextLabel.X = -350f; } else { TitleTextLabel.RelativeX = -350f; } if (TitleTextLabel.Parent == null) { TitleTextLabel.Y = 240f; } else { TitleTextLabel.RelativeY = 240f; } TitleTextLabel.Text = "Tic-Tac-Toe"; TitleTextLabel.FontSize = 60; TitleTextLabel.Red = 1f; TitleTextLabel.Green = 1f; TitleTextLabel.Blue = 0f; BackgroundImage.RandomImage = false; if (GridBackgroundInstance.Parent == null) { GridBackgroundInstance.Y = -30f; } else { GridBackgroundInstance.RelativeY = -30f; } GridBackgroundInstance.Height = 300f; GridBackgroundInstance.Width = 300f; if (BoardTileO1.Parent == null) { BoardTileO1.X = 100f; } else { BoardTileO1.RelativeX = 100f; } if (BoardTileO1.Parent == null) { BoardTileO1.Y = -130f; } else { BoardTileO1.RelativeY = -130f; } BoardTileO1.PlayerSpriteHeight = 80f; BoardTileO1.PlayerSpriteWidth = 80f; BoardTileO1.CurrentState = BoardTile.VariableState.O; if (BoardTileO2.Parent == null) { BoardTileO2.Y = -30f; } else { BoardTileO2.RelativeY = -30f; } BoardTileO2.PlayerSpriteHeight = 80f; BoardTileO2.PlayerSpriteWidth = 80f; BoardTileO2.CurrentState = BoardTile.VariableState.O; if (BoardTileX1.Parent == null) { BoardTileX1.X = -100f; } else { BoardTileX1.RelativeX = -100f; } if (BoardTileX1.Parent == null) { BoardTileX1.Y = 70f; } else { BoardTileX1.RelativeY = 70f; } BoardTileX1.PlayerSpriteHeight = 80f; BoardTileX1.PlayerSpriteWidth = 80f; BoardTileX1.CurrentState = BoardTile.VariableState.X; if (BoardTileX2.Parent == null) { BoardTileX2.X = 100f; } else { BoardTileX2.RelativeX = 100f; } if (BoardTileX2.Parent == null) { BoardTileX2.Y = 70f; } else { BoardTileX2.RelativeY = 70f; } BoardTileX2.PlayerSpriteHeight = 80f; BoardTileX2.PlayerSpriteWidth = 80f; BoardTileX2.CurrentState = BoardTile.VariableState.X; if (BoardTileX3.Parent == null) { BoardTileX3.X = -100f; } else { BoardTileX3.RelativeX = -100f; } if (BoardTileX3.Parent == null) { BoardTileX3.Y = -130f; } else { BoardTileX3.RelativeY = -130f; } BoardTileX3.PlayerSpriteHeight = 80f; BoardTileX3.PlayerSpriteWidth = 80f; BoardTileX3.CurrentState = BoardTile.VariableState.X; if (MenuItemAbout.Parent == null) { MenuItemAbout.Y = -250f; } else { MenuItemAbout.RelativeY = -250f; } MenuItemAbout.Text = "About"; MenuItemAbout.FontSize = 40; MenuItemAbout.Green = 1f; MenuItemAbout.Blue = 1f; MenuItemAbout.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; }
public virtual void AssignCustomVariables(bool callOnContainedElements) { if (callOnContainedElements) { VictoryTextLabel.AssignCustomVariables(true); PlayAgainText.AssignCustomVariables(true); NoButton.AssignCustomVariables(true); YesButton.AssignCustomVariables(true); } if (VictoryTextLabel.Parent == null) { VictoryTextLabel.X = -170f; } else { VictoryTextLabel.RelativeX = -170f; } if (VictoryTextLabel.Parent == null) { VictoryTextLabel.Y = 30f; } else { VictoryTextLabel.RelativeY = 30f; } VictoryTextLabel.Text = "Player # Won."; VictoryTextLabel.FontSize = 24; VictoryTextLabel.Red = 1f; VictoryTextLabel.Green = 1f; if (PlayAgainText.Parent == null) { PlayAgainText.X = -170f; } else { PlayAgainText.RelativeX = -170f; } if (PlayAgainText.Parent == null) { PlayAgainText.Y = -5f; } else { PlayAgainText.RelativeY = -5f; } PlayAgainText.Text = "Would you like to play again?"; PlayAgainText.FontSize = 12; PlayAgainText.Red = 1f; PlayAgainText.Green = 1f; PlayAgainText.Blue = 1f; if (NoButton.Parent == null) { NoButton.X = 110f; } else { NoButton.RelativeX = 110f; } if (NoButton.Parent == null) { NoButton.Y = -50f; } else { NoButton.RelativeY = -50f; } if (NoButton.Parent == null) { NoButton.Z = 1f; } else { NoButton.RelativeZ = 1f; } NoButton.Text = "No"; NoButton.FontSize = 16; NoButton.Red = 1f; NoButton.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; if (YesButton.Parent == null) { YesButton.X = -130f; } else { YesButton.RelativeX = -130f; } if (YesButton.Parent == null) { YesButton.Y = -50f; } else { YesButton.RelativeY = -50f; } if (YesButton.Parent == null) { YesButton.Z = 1f; } else { YesButton.RelativeZ = 1f; } YesButton.Text = "Yes"; YesButton.FontSize = 16; YesButton.Green = 1f; YesButton.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; BackgroundSprite.Texture = PopupBackgroundTexture; BackgroundSprite.Height = 200f; BackgroundSprite.TextureScale = 0f; BackgroundSprite.Width = 430f; if (BackgroundSprite.Parent == null) { BackgroundSprite.X = -10f; } else { BackgroundSprite.RelativeX = -10f; } if (BackgroundSprite.Parent == null) { BackgroundSprite.Z = -1f; } else { BackgroundSprite.RelativeZ = -1f; } }
public virtual void AssignCustomVariables(bool callOnContainedElements) { if (callOnContainedElements) { BackgroundImage.AssignCustomVariables(true); BackButton.AssignCustomVariables(true); ProgrammingLabel.AssignCustomVariables(true); HeaderText.AssignCustomVariables(true); ProgrammingText.AssignCustomVariables(true); SupportLabel.AssignCustomVariables(true); SupportText.AssignCustomVariables(true); ArtworkLabel.AssignCustomVariables(true); ArtworkText.AssignCustomVariables(true); PaintingsLabel.AssignCustomVariables(true); PaintingsText.AssignCustomVariables(true); SoundEffectsLabel.AssignCustomVariables(true); SoundEffectsText.AssignCustomVariables(true); MusicLabel.AssignCustomVariables(true); MusicText.AssignCustomVariables(true); } BackgroundImage.RandomImage = false; if (BackButton.Parent == null) { BackButton.X = -390f; } else { BackButton.RelativeX = -390f; } if (BackButton.Parent == null) { BackButton.Y = -290f; } else { BackButton.RelativeY = -290f; } BackButton.Text = "Back"; BackButton.FontSize = 12; BackButton.Green = 1f; BackButton.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Left; BackButton.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Bottom; if (ProgrammingLabel.Parent == null) { ProgrammingLabel.Y = 189f; } else { ProgrammingLabel.RelativeY = 189f; } if (ProgrammingLabel.Parent == null) { ProgrammingLabel.Z = 0.01f; } else { ProgrammingLabel.RelativeZ = 0.01f; } ProgrammingLabel.Text = "Programming"; ProgrammingLabel.FontSize = 9; ProgrammingLabel.Red = 1f; ProgrammingLabel.Green = 1f; ProgrammingLabel.Blue = 0f; ProgrammingLabel.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; ProgrammingLabel.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Top; if (HeaderText.Parent == null) { HeaderText.Y = 279f; } else { HeaderText.RelativeY = 279f; } if (HeaderText.Parent == null) { HeaderText.Z = 0.01f; } else { HeaderText.RelativeZ = 0.01f; } HeaderText.Text = "This version of Tic-Tac-Toe was built using FlatRedBall.\n\nFlatRedBall is a game development engine and toolkit\nthat is available free to the public."; HeaderText.FontSize = 9; HeaderText.Red = 0f; HeaderText.Green = 1f; HeaderText.Blue = 1f; HeaderText.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; HeaderText.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Top; if (ProgrammingText.Parent == null) { ProgrammingText.Y = 171f; } else { ProgrammingText.RelativeY = 171f; } if (ProgrammingText.Parent == null) { ProgrammingText.Z = 0.01f; } else { ProgrammingText.RelativeZ = 0.01f; } ProgrammingText.Text = "Jason Yarber (Magius96)"; ProgrammingText.FontSize = 9; ProgrammingText.Red = 1f; ProgrammingText.Green = 1f; ProgrammingText.Blue = 1f; ProgrammingText.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; ProgrammingText.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Top; if (SupportLabel.Parent == null) { SupportLabel.Y = 135f; } else { SupportLabel.RelativeY = 135f; } if (SupportLabel.Parent == null) { SupportLabel.Z = 0.01f; } else { SupportLabel.RelativeZ = 0.01f; } SupportLabel.Text = "Support"; SupportLabel.FontSize = 9; SupportLabel.Red = 1f; SupportLabel.Green = 1f; SupportLabel.Blue = 0f; SupportLabel.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; SupportLabel.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Top; if (SupportText.Parent == null) { SupportText.Y = 117f; } else { SupportText.RelativeY = 117f; } if (SupportText.Parent == null) { SupportText.Z = 0.01f; } else { SupportText.RelativeZ = 0.01f; } SupportText.Text = "Victor Chelaru\nLuckyNight"; SupportText.FontSize = 9; SupportText.Red = 1f; SupportText.Green = 1f; SupportText.Blue = 1f; SupportText.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; SupportText.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Top; if (ArtworkLabel.Parent == null) { ArtworkLabel.Y = 63f; } else { ArtworkLabel.RelativeY = 63f; } if (ArtworkLabel.Parent == null) { ArtworkLabel.Z = 0.01f; } else { ArtworkLabel.RelativeZ = 0.01f; } ArtworkLabel.Text = "Artwork"; ArtworkLabel.FontSize = 9; ArtworkLabel.Red = 1f; ArtworkLabel.Green = 1f; ArtworkLabel.Blue = 0f; ArtworkLabel.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; ArtworkLabel.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Top; if (ArtworkText.Parent == null) { ArtworkText.Y = 45f; } else { ArtworkText.RelativeY = 45f; } if (ArtworkText.Parent == null) { ArtworkText.Z = 0.01f; } else { ArtworkText.RelativeZ = 0.01f; } ArtworkText.Text = "Jason Yarber (Magius96)"; ArtworkText.FontSize = 9; ArtworkText.Red = 1f; ArtworkText.Green = 1f; ArtworkText.Blue = 1f; ArtworkText.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; ArtworkText.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Top; if (PaintingsLabel.Parent == null) { PaintingsLabel.Y = 9f; } else { PaintingsLabel.RelativeY = 9f; } if (PaintingsLabel.Parent == null) { PaintingsLabel.Z = 0.01f; } else { PaintingsLabel.RelativeZ = 0.01f; } PaintingsLabel.Text = "Paintings"; PaintingsLabel.FontSize = 9; PaintingsLabel.Red = 1f; PaintingsLabel.Green = 1f; PaintingsLabel.Blue = 0f; PaintingsLabel.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; PaintingsLabel.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Top; if (PaintingsText.Parent == null) { PaintingsText.Y = -9f; } else { PaintingsText.RelativeY = -9f; } if (PaintingsText.Parent == null) { PaintingsText.Z = 0.01f; } else { PaintingsText.RelativeZ = 0.01f; } PaintingsText.Text = "Childe Hassam - Bridge over the stour\nGerda Wallander - Barplockande barn en sommardag\nJohn Reinhard Weguelin - Mermaid (1911)\nTurner - The Slave Ship\nWidder Dunavecse 1939"; PaintingsText.FontSize = 9; PaintingsText.Red = 1f; PaintingsText.Green = 1f; PaintingsText.Blue = 1f; PaintingsText.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; PaintingsText.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Top; if (SoundEffectsLabel.Parent == null) { SoundEffectsLabel.Y = -117f; } else { SoundEffectsLabel.RelativeY = -117f; } if (SoundEffectsLabel.Parent == null) { SoundEffectsLabel.Z = 0.01f; } else { SoundEffectsLabel.RelativeZ = 0.01f; } SoundEffectsLabel.Text = "Sound Effects"; SoundEffectsLabel.FontSize = 9; SoundEffectsLabel.Red = 1f; SoundEffectsLabel.Green = 1f; SoundEffectsLabel.Blue = 0f; SoundEffectsLabel.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; SoundEffectsLabel.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Top; if (SoundEffectsText.Parent == null) { SoundEffectsText.Y = -135f; } else { SoundEffectsText.RelativeY = -135f; } if (SoundEffectsText.Parent == null) { SoundEffectsText.Z = 0.01f; } else { SoundEffectsText.RelativeZ = 0.01f; } SoundEffectsText.Text = "Caroline Ford - Small Scrape\nJoe Lamb - Sad Trombone\nMike Koenig - Ta Da\nNatalie Wendt - Bubble Gum Pop\nSebastian - Click2"; SoundEffectsText.FontSize = 9; SoundEffectsText.Red = 1f; SoundEffectsText.Green = 1f; SoundEffectsText.Blue = 1f; SoundEffectsText.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; SoundEffectsText.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Top; if (MusicLabel.Parent == null) { MusicLabel.Y = -243f; } else { MusicLabel.RelativeY = -243f; } if (MusicLabel.Parent == null) { MusicLabel.Z = 0.01f; } else { MusicLabel.RelativeZ = 0.01f; } MusicLabel.Text = "Music"; MusicLabel.FontSize = 9; MusicLabel.Red = 1f; MusicLabel.Green = 1f; MusicLabel.Blue = 0f; MusicLabel.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; MusicLabel.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Top; if (MusicText.Parent == null) { MusicText.Y = -261f; } else { MusicText.RelativeY = -261f; } if (MusicText.Parent == null) { MusicText.Z = 0.01f; } else { MusicText.RelativeZ = 0.01f; } MusicText.Text = "Jason Shaw at audionautix.com"; MusicText.FontSize = 9; MusicText.Red = 1f; MusicText.Green = 1f; MusicText.Blue = 1f; MusicText.HorizontalAlignment = FlatRedBall.Graphics.HorizontalAlignment.Center; MusicText.VerticalAlignment = FlatRedBall.Graphics.VerticalAlignment.Top; }