mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 12:33:01 +08:00
Add small volume meter to test feel
This commit is contained in:
parent
9cde04c30c
commit
a34d2a3424
@ -14,7 +14,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
{
|
{
|
||||||
VolumeMeter meter;
|
VolumeMeter meter;
|
||||||
MuteButton mute;
|
MuteButton mute;
|
||||||
Add(meter = new VolumeMeter("MASTER", 125, Color4.Blue) { Position = new Vector2(10) });
|
Add(meter = new VolumeMeter("MASTER", 125, Color4.Green) { Position = new Vector2(10) });
|
||||||
AddSliderStep("master volume", 0, 10, 0, i => meter.Bindable.Value = i * 0.1);
|
AddSliderStep("master volume", 0, 10, 0, i => meter.Bindable.Value = i * 0.1);
|
||||||
|
|
||||||
Add(new VolumeMeter("BIG", 250, Color4.Red)
|
Add(new VolumeMeter("BIG", 250, Color4.Red)
|
||||||
@ -22,6 +22,15 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Position = new Vector2(10),
|
Position = new Vector2(10),
|
||||||
|
Margin = new MarginPadding { Left = 250 },
|
||||||
|
});
|
||||||
|
|
||||||
|
Add(new VolumeMeter("SML", 125, Color4.Blue)
|
||||||
|
{
|
||||||
|
Anchor = Anchor.Centre,
|
||||||
|
Origin = Anchor.Centre,
|
||||||
|
Position = new Vector2(10),
|
||||||
|
Margin = new MarginPadding { Right = 500 },
|
||||||
});
|
});
|
||||||
|
|
||||||
Add(mute = new MuteButton
|
Add(mute = new MuteButton
|
||||||
|
Loading…
Reference in New Issue
Block a user