A game framework written with osu! in mind.
at master 1.3 kB view raw
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. 2// See the LICENCE file in the repository root for full licence text. 3 4using osu.Framework.Graphics; 5using osu.Framework.Graphics.Containers; 6using osu.Framework.Testing.Drawables.Steps; 7using osuTK; 8 9namespace osu.Framework.Tests.Visual.Testing 10{ 11 public class TestSceneStepButton : FrameworkTestScene 12 { 13 public TestSceneStepButton() 14 { 15 Child = new FillFlowContainer 16 { 17 Width = 150, 18 AutoSizeAxes = Axes.Y, 19 Direction = FillDirection.Vertical, 20 Spacing = new Vector2(5), 21 Children = new Drawable[] 22 { 23 new LabelStep { Text = nameof(LabelStep) }, 24 new AssertButton { Text = nameof(AssertButton), Assertion = () => true }, 25 new SingleStepButton { Text = nameof(SingleStepButton) }, 26 new RepeatStepButton(null) { Text = nameof(RepeatStepButton) }, 27 new ToggleStepButton(null) { Text = nameof(ToggleStepButton) }, 28 new UntilStepButton(() => true) { Text = nameof(UntilStepButton) }, 29 new StepSlider<int>(nameof(StepSlider<int>), 0, 10, 5), 30 } 31 }; 32 } 33 } 34}