public void StartWaveCountdown() { // Countdown WaveStartCountDownNo = 4; MessageFade msg = new MessageFade(Game, "Wave " + Wave, 200, new Vector2f(Game.Size.X / 2, Game.Size.Y / 2), WaveStartCountDown, 800); Game.Layer_GUI.AddChild(msg); }
private void WaveStartCountDown() { WaveStartCountDownNo--; MessageFade msg; if (WaveStartCountDownNo == 1) { msg = new MessageFade(Game, WaveStartCountDownNo.ToString(), 200, new Vector2f(Game.Size.X / 2, Game.Size.Y / 2), null, 100); } else { msg = new MessageFade(Game, WaveStartCountDownNo.ToString(), 200, new Vector2f(Game.Size.X / 2, Game.Size.Y / 2), WaveStartCountDown, 100); } Game.Layer_GUI.AddChild(msg); if (WaveStartCountDownNo == 1) { StartWave(); } }
protected virtual void MessagePopup(string msg) { MessageFade popup = new MessageFade(Game, msg, 35, Position); Game.Layer_GUI.AddChild(popup); }
private void WaveStartCountDown() { WaveStartCountDownNo--; MessageFade msg; if (WaveStartCountDownNo == 1) msg = new MessageFade(Game, WaveStartCountDownNo.ToString(), 200, new Vector2f(Game.Size.X / 2, Game.Size.Y / 2), null, 100); else msg = new MessageFade(Game, WaveStartCountDownNo.ToString(), 200, new Vector2f(Game.Size.X / 2, Game.Size.Y / 2), WaveStartCountDown, 100); Game.Layer_GUI.AddChild(msg); if (WaveStartCountDownNo == 1) StartWave(); }