示例#1
0
        public HitExplosion(Judgement judgement, ComboJudgement comboJudgement = ComboJudgement.None)
        {
            AutoSizeAxes = Axes.Both;
            Anchor       = Anchor.Centre;
            Origin       = Anchor.Centre;

            Direction = FlowDirection.VerticalOnly;
            Spacing   = new Vector2(0, 2);

            Children = new Drawable[]
            {
                line1 = new SpriteText
                {
                    Anchor   = Anchor.TopCentre,
                    Origin   = Anchor.TopCentre,
                    Text     = judgement.GetDescription(),
                    Font     = @"Venera",
                    TextSize = 20,
                },
                line2 = new SpriteText
                {
                    Text     = comboJudgement.GetDescription(),
                    Font     = @"Venera",
                    TextSize = 14,
                }
            };
        }