mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 06:52:55 +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;
|
||||
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);
|
||||
|
||||
Add(new VolumeMeter("BIG", 250, Color4.Red)
|
||||
@ -22,6 +22,15 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user