-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29897 from bdach/editor/setup-screen-slider
Implement "form" slider bar control
- Loading branch information
Showing
5 changed files
with
422 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using osu.Framework.Bindables; | ||
using osu.Framework.Graphics; | ||
using osu.Framework.Graphics.Containers; | ||
using osu.Framework.Graphics.Cursor; | ||
|
@@ -68,6 +69,31 @@ public TestSceneFormControls() | |
HintText = EditorSetupStrings.LetterboxDuringBreaksDescription, | ||
Current = { Disabled = true }, | ||
}, | ||
new FormSliderBar<float> | ||
{ | ||
Caption = "Instantaneous slider", | ||
Current = new BindableFloat | ||
{ | ||
MinValue = 0, | ||
MaxValue = 10, | ||
Value = 5, | ||
Precision = 0.1f, | ||
}, | ||
TabbableContentContainer = this, | ||
}, | ||
new FormSliderBar<float> | ||
{ | ||
Caption = "Non-instantaneous slider", | ||
Current = new BindableFloat | ||
{ | ||
MinValue = 0, | ||
MaxValue = 10, | ||
Value = 5, | ||
Precision = 0.1f, | ||
}, | ||
Instantaneous = false, | ||
TabbableContentContainer = this, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.