Esempio n. 1
0
        /// <inheritdoc />
        /// <summary>
        /// </summary>
        public ResultScoreContainer(ResultScreen screen, ScoreProcessor standardizedProcessor = null)
        {
            Screen = screen;
            Size   = new ScalableVector2(WindowManager.Width - 56, 490);
            Image  = UserInterface.ResultScorePanel;
            DestroyIfParentIsNull = false;
            Processor             = Screen.GetScoreProcessor();
            StandardizedProcessor = standardizedProcessor;

            if (Processor.Stats != null)
            {
                HitStatistics = Processor.GetHitStatistics();
            }
            else
            {
                HitStatistics = new HitStatistics();
            }

            CreateTopHorizontalDividerLine();
            CreateHeaderBackground();
            CreateBottomHorizontalDividerLine();
            CreateVerticalDividerLine();
            CreateScoreResultsText();
            CreateStatisticsText();
            CreateKeyValueItems();
            CreateStatisticsKeyValueItems();
            CreateOffsetFixButtons();
            CreateJudgementBreakdown();
            CreateOnlineStats();

            // Create the graph but don't set a constructor, as we need to draw it to a RenderTarget2D
            HitDifferenceGraphRaw = new ResultHitDifferenceGraph(new ScalableVector2(Width - VerticalDividerLine.X - 30, 200), Processor);
        }
Esempio n. 2
0
        /// <inheritdoc />
        /// <summary>
        /// </summary>
        public ResultScoreContainer(ResultScreen screen)
        {
            Screen = screen;
            Size   = new ScalableVector2(WindowManager.Width - 56, 490);
            Image  = UserInterface.ResultScorePanel;
            DestroyIfParentIsNull = false;

            CreateTopHorizontalDividerLine();
            CreateHeaderBackground();
            CreateBottomHorizontalDividerLine();
            CreateVerticalDividerLine();
            CreateScoreResultsText();
            CreateStatisticsText();
            CreateKeyValueItems();
            CreateJudgementBreakdown();
            CreateOnlineStats();

            // Create the graph but don't set a constructor, as we need to draw it to a RenderTarget2D
            HitDifferenceGraphRaw = new ResultHitDifferenceGraph(new ScalableVector2(Width - VerticalDividerLine.X - 30, 200), Screen);
        }
Esempio n. 3
0
        /// <inheritdoc />
        /// <summary>
        /// </summary>
        public ResultScoreContainer(ResultScreen screen)
        {
            Screen = screen;
            Size   = new ScalableVector2(WindowManager.Width - 56, 450);
            Tint   = Color.Black;
            Alpha  = 0.45f;
            AddBorder(Color.White, 2);

            CreateTopHorizontalDividerLine();
            CreateHeaderBackground();
            CreateBottomHorizontalDividerLine();
            CreateVerticalDividerLine();
            CreateScoreResultsText();
            CreateStatisticsText();
            CreateKeyValueItems();
            CreateJudgementBreakdown();
            CreateOnlineStats();

            // Create the graph but don't set a constructor, as we need to draw it to a RenderTarget2D
            HitDifferenceGraphRaw = new ResultHitDifferenceGraph(new ScalableVector2(Width - VerticalDividerLine.X - 30, 200), Screen);
        }