private void UpdateLabels() { TimeLabel.Text = String.Format("{0}x", _currentSpeed); TimeLabel.Invalidate(); PlayPauseButton.Text = (_currentSpeed == 0 ? ">" : "||"); PlayPauseButton.Tooltip = (_currentSpeed == 0 ? "Resume" : "Pause"); PlayPauseButton.Invalidate(); }
public override void Render(DwarfTime gameTime) { // Todo: This state should be rendering these, NOT the world manager. TipTimer.Update(gameTime); if (TipTimer.HasTriggered) { Tip.Text = LoadingTips[MathFunctions.Random.Next(LoadingTips.Count)]; Tip.Invalidate(); } EnableScreensaver = true; World.Render(gameTime); base.Render(gameTime); Runner.Render(Game.GraphicsDevice, DwarfGame.SpriteBatch, gameTime); GuiRoot.Draw(); }