Пример #1
0
 private void load(OsuColour colours)
 {
     InternalChild = new FillFlowContainer
     {
         Height       = 12,
         AutoSizeAxes = Axes.X,
         Direction    = FillDirection.Horizontal,
         Spacing      = new Vector2(5f, 0f),
         Children     = new Drawable[]
         {
             new OsuSpriteText
             {
                 Font   = OsuFont.Torus.With(size: 12, weight: FontWeight.SemiBold),
                 Text   = displayName.ToUpperInvariant(),
                 Colour = colours.ForHitResult(result),
             },
             new OsuSpriteText
             {
                 Font = OsuFont.GetFont(size: 12, weight: FontWeight.SemiBold),
                 Text = count.ToString(),
             },
         }
     };
 }
 private void load(OsuColour colours)
 {
     HeaderText.Colour = colours.ForHitResult(result);
 }