Ejemplo n.º 1
0
        public HeaderTitle()
        {
            AutoSizeAxes  = Axes.Both;
            InternalChild = new FillFlowContainer
            {
                AutoSizeAxes = Axes.Both,
                Direction    = FillDirection.Horizontal,
                Spacing      = new Vector2(spacing, 0),
                Children     = new Drawable[]
                {
                    flag = new DismissableFlag
                    {
                        Anchor = Anchor.BottomLeft,
                        Origin = Anchor.BottomLeft,
                        Margin = new MarginPadding {
                            Bottom = flag_margin
                        },
                        Size = new Vector2(30, 20),
                    },
                    scopeText = new SpriteText
                    {
                        Anchor = Anchor.BottomLeft,
                        Origin = Anchor.BottomLeft,
                        Font   = OsuFont.GetFont(size: text_size, weight: FontWeight.Light)
                    },
                    new SpriteText
                    {
                        Anchor = Anchor.BottomLeft,
                        Origin = Anchor.BottomLeft,
                        Font   = OsuFont.GetFont(size: text_size, weight: FontWeight.Light),
                        Text   = @"Ranking"
                    }
                }
            };

            flag.Action += () => Country.Value = null;
        }