Пример #1
0
 private void load()
 {
     InternalChild = new PillContainer
     {
         Child = new FillFlowContainer
         {
             Anchor       = Anchor.Centre,
             Origin       = Anchor.Centre,
             AutoSizeAxes = Axes.Both,
             Spacing      = new Vector2(4),
             Children     = new Drawable[]
             {
                 new SpriteIcon
                 {
                     Anchor = Anchor.CentreLeft,
                     Origin = Anchor.CentreLeft,
                     Size   = new Vector2(8),
                     Icon   = FontAwesome.Solid.User
                 },
                 rankFlow = new OsuTextFlowContainer(s => s.Font = OsuFont.GetFont(size: 12))
                 {
                     Anchor       = Anchor.CentreLeft,
                     Origin       = Anchor.CentreLeft,
                     AutoSizeAxes = Axes.Both,
                 }
             }
         }
     };
 }
Пример #2
0
 private void load()
 {
     InternalChild = new PillContainer
     {
         Child = textFlow = new OsuTextFlowContainer(s => s.Font = OsuFont.GetFont(size: 12))
         {
             Anchor       = Anchor.CentreLeft,
             Origin       = Anchor.CentreLeft,
             AutoSizeAxes = Axes.Both,
         }
     };
 }
Пример #3
0
 private void load()
 {
     InternalChild = pill = new PillContainer
     {
         Child = statusText = new OsuSpriteText
         {
             Anchor = Anchor.Centre,
             Origin = Anchor.Centre,
             Font   = OsuFont.GetFont(weight: FontWeight.SemiBold, size: 12),
             Colour = Color4.Black
         }
     };
 }
Пример #4
0
 private void load(OsuColour colours)
 {
     InternalChild = new PillContainer
     {
         Background =
         {
             Colour = colours.Pink,
             Alpha  = 1
         },
         Child = text = new OsuSpriteText
         {
             Anchor = Anchor.Centre,
             Origin = Anchor.Centre,
             Font   = OsuFont.GetFont(weight: FontWeight.SemiBold, size: 12),
             Colour = Color4.Black
         }
     };
 }