public GameOverScreen(Game i_Game, IPlayer[] i_Players) : base(i_Game) { m_Players = i_Players; m_GameOverMessage = new SpriteFontComponent( i_Game, @"Fonts\David28", r_GameOverText); m_KeysMessage = new SpriteFontComponent( i_Game, @"Fonts\David", r_KeysText); m_WinningPlayerMessage = new SpriteFontComponent( i_Game, @"Fonts\David", WinningPlayerMsg); this.IsModal = true; m_GameOverMessage.TintColor = Color.White; m_KeysMessage.TintColor = Color.White; this.Add(m_GameOverMessage); this.Add(m_KeysMessage); this.Add(m_WinningPlayerMessage); }
/// <summary> /// Inits the menu /// </summary> /// <param name="i_Game">Hosting game</param> /// <param name="i_Title">Menu Title</param> public MenuTypeScreen(Game i_Game, string i_Title) : base(i_Game) { m_Title = new SpriteFontComponent(i_Game, @"Fonts\David40", i_Title); m_Title.TintColor = Color.SlateBlue; Add(m_Title); }
/// <summary> /// Initializes the screen /// </summary> /// <param name="i_Game">the hosting game</param> public WelcomeScreen(Game i_Game) : base(i_Game) { m_WelcomeMessage = new SpriteFontComponent( i_Game, @"Fonts\David28", "Welcome"); m_HitEnterMessage = new SpriteFontComponent( i_Game, @"Fonts\David", "Hit Enter to continue"); m_WelcomeMessage.TintColor = Color.White; m_HitEnterMessage.TintColor = Color.PowderBlue; this.Add(m_WelcomeMessage); this.Add(m_HitEnterMessage); this.HasFocus = true; }
public PauseScreen(Game i_Game) : base(i_Game) { m_PauseMessage = new SpriteFontComponent( i_Game, k_DefaultFontAssetName, r_PauseText); m_ContinuePlayMessage = new SpriteFontComponent( i_Game, k_DefaultFontAssetName, r_GameContinueText); m_PauseMessage.TintColor = Color.White; m_ContinuePlayMessage.TintColor = Color.White; this.Add(m_PauseMessage); this.Add(m_ContinuePlayMessage); this.IsModal = true; this.IsOverlayed = true; this.UseGradientBackground = true; this.BlackTintAlpha = .7f; }
public LevelTransitionScreen(Game i_Game) : base(i_Game) { m_CurrLevelNum = k_StartingLevelNum; m_LevelMessage = new SpriteFontComponent( i_Game, @"Fonts\David28", getMessageText(r_LevelMessageText, m_CurrLevelNum)); m_SecondsMessage = new SpriteFontComponent( i_Game, @"Fonts\David", getMessageText(r_SecondsMessageText, k_TransitionScreenTime)); m_LevelMessage.TintColor = Color.White; m_SecondsMessage.TintColor = Color.White; this.Add(m_LevelMessage); this.Add(m_SecondsMessage); this.HasFocus = true; m_PrevTime = r_TimeBetweenUpdate; }