コード例 #1
0
        public TestCaseButtonSystem()
        {
            OsuLogo      logo;
            ButtonSystem buttons;

            Children = new Drawable[]
            {
                new Box
                {
                    Colour           = ColourInfo.GradientVertical(Color4.Gray, Color4.WhiteSmoke),
                    RelativeSizeAxes = Axes.Both,
                },
                buttons = new ButtonSystem(),
                logo    = new OsuLogo {
                    RelativePositionAxes = Axes.Both
                }
            };

            buttons.SetOsuLogo(logo);

            foreach (var s in Enum.GetValues(typeof(ButtonSystemState)).OfType <ButtonSystemState>().Skip(1))
            {
                AddStep($"State to {s}", () => buttons.State = s);
            }
        }
コード例 #2
0
ファイル: TestCaseButtonSystem.cs プロジェクト: weebaka/osu
        public TestCaseButtonSystem()
        {
            OsuLogo      logo;
            ButtonSystem buttons;

            Children = new Drawable[]
            {
                new Box
                {
                    Colour           = ColourInfo.GradientVertical(Color4.Gray, Color4.WhiteSmoke),
                    RelativeSizeAxes = Axes.Both,
                },
                buttons = new ButtonSystem(),
                logo    = new OsuLogo()
            };

            buttons.SetOsuLogo(logo);
        }
コード例 #3
0
        public void SetUp() => Schedule(() =>
        {
            Children = new Drawable[]
            {
                new Box
                {
                    Colour           = ColourInfo.GradientVertical(Colour4.Gray, Colour4.WhiteSmoke),
                    RelativeSizeAxes = Axes.Both,
                },
                buttons = new ButtonSystem(),
                logo    = new OsuLogo
                {
                    RelativePositionAxes = Axes.Both,
                    Position             = new Vector2(0.5f)
                }
            };

            buttons.SetOsuLogo(logo);
        });