Beispiel #1
0
 public InfoLabel(BeatmapStatistic statistic)
 {
     AutoSizeAxes = Axes.Both;
     Children     = new Drawable[]
     {
         new TextAwesome
         {
             Icon     = FontAwesome.fa_square,
             Origin   = Anchor.Centre,
             Colour   = new Color4(68, 17, 136, 255),
             Rotation = 45
         },
         new TextAwesome
         {
             Icon   = statistic.Icon,
             Origin = Anchor.Centre,
             Colour = new Color4(255, 221, 85, 255),
             Scale  = new Vector2(0.8f)
         },
         new OsuSpriteText
         {
             Margin = new MarginPadding {
                 Left = 13
             },
             Font     = @"Exo2.0-Bold",
             Colour   = new Color4(255, 221, 85, 255),
             Text     = statistic.Content,
             TextSize = 17,
             Origin   = Anchor.CentreLeft
         },
     };
 }
Beispiel #2
0
                public InfoLabel(BeatmapStatistic statistic)
                {
                    TooltipText  = statistic.Name;
                    AutoSizeAxes = Axes.Both;

                    Children = new Drawable[]
                    {
                        new Container
                        {
                            Anchor   = Anchor.CentreLeft,
                            Origin   = Anchor.CentreLeft,
                            Size     = new Vector2(20),
                            Children = new[]
                            {
                                new SpriteIcon
                                {
                                    Anchor           = Anchor.Centre,
                                    Origin           = Anchor.Centre,
                                    RelativeSizeAxes = Axes.Both,
                                    Colour           = OsuColour.FromHex(@"441288"),
                                    Icon             = FontAwesome.fa_square,
                                    Rotation         = 45,
                                },
                                new SpriteIcon
                                {
                                    Anchor           = Anchor.Centre,
                                    Origin           = Anchor.Centre,
                                    RelativeSizeAxes = Axes.Both,
                                    Scale            = new Vector2(0.8f),
                                    Colour           = OsuColour.FromHex(@"f7dd55"),
                                    Icon             = statistic.Icon,
                                },
                            }
                        },
                        new OsuSpriteText
                        {
                            Anchor = Anchor.CentreLeft,
                            Origin = Anchor.CentreLeft,
                            Colour = new Color4(255, 221, 85, 255),
                            Font   = @"Exo2.0-Bold",
                            Margin = new MarginPadding {
                                Left = 30
                            },
                            Text     = statistic.Content,
                            TextSize = 17,
                        }
                    };
                }