예제 #1
0
        private void DrawHud()
        {
            _spriteBatch.Begin(samplerState: SamplerState.PointClamp);
            _personEffectsPanel.Draw(_spriteBatch);

            DrawPersonModePanel();

            _spriteBatch.End();
        }
예제 #2
0
        private void DrawHud()
        {
            _spriteBatch.Begin(samplerState: SamplerState.PointClamp);
            _personEffectsPanel.Draw(_spriteBatch);

#if SHOW_NUMS
            DrawStatsNumbers();
#endif

            if (_personMarkerPanel is not null)
            {
                _personMarkerPanel.Draw(_spriteBatch, Game.GraphicsDevice);
            }

            DrawPersonModePanel();

            if (_uiState.HoverViewModel is IActorViewModel actorViewModel)
            {
                DrawMonsterInfo(actorViewModel, _spriteBatch, Game.GraphicsDevice.Viewport.Width,
                                Game.GraphicsDevice.Viewport.Height);
            }

            if (_showControlTutorial)
            {
                DrawControlsTutorial(_spriteBatch, Game.GraphicsDevice);
            }

            var turns            = _scoreManager.Scores.Turns;
            var detailedLifetime = ScoreCalculator.ConvertTurnsToDetailed(turns);
            //if (detailedLifetime.Days > 3 && !(_player.MainPerson?.CheckIsDead()).GetValueOrDefault())
            {
                _spriteBatch.DrawString(_uiContentStorage.GetButtonFont(),
                                        $"{detailedLifetime.Days}d {detailedLifetime.Hours}h", new Vector2(5, 5), Color.White);
            }

            _spriteBatch.End();
        }