mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Merge pull request #2294 from smoogipoo/fix-circularprogress-glow
Fix volume glow being cut off
This commit is contained in:
@ -12,6 +12,7 @@ using osu.Framework.Graphics.Effects;
|
|||||||
using osu.Framework.Graphics.Shapes;
|
using osu.Framework.Graphics.Shapes;
|
||||||
using osu.Framework.Graphics.UserInterface;
|
using osu.Framework.Graphics.UserInterface;
|
||||||
using osu.Framework.Input.Bindings;
|
using osu.Framework.Input.Bindings;
|
||||||
|
using osu.Framework.MathUtils;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
using osu.Game.Input.Bindings;
|
using osu.Game.Input.Bindings;
|
||||||
@ -93,19 +94,25 @@ namespace osu.Game.Overlays.Volume
|
|||||||
Colour = colours.Gray2,
|
Colour = colours.Gray2,
|
||||||
Size = new Vector2(0.8f)
|
Size = new Vector2(0.8f)
|
||||||
},
|
},
|
||||||
(volumeCircle = new CircularProgress
|
new Container
|
||||||
|
{
|
||||||
|
Anchor = Anchor.Centre,
|
||||||
|
Origin = Anchor.Centre,
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Size = new Vector2(0.8f),
|
||||||
|
Padding = new MarginPadding(-Blur.KernelSize(5)),
|
||||||
|
Rotation = 180,
|
||||||
|
Child = (volumeCircle = new CircularProgress
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
InnerRadius = 0.05f,
|
InnerRadius = 0.05f,
|
||||||
Rotation = 180,
|
|
||||||
Anchor = Anchor.Centre,
|
|
||||||
Origin = Anchor.Centre,
|
|
||||||
Size = new Vector2(0.8f)
|
|
||||||
}).WithEffect(new GlowEffect
|
}).WithEffect(new GlowEffect
|
||||||
{
|
{
|
||||||
Colour = meterColour,
|
Colour = meterColour,
|
||||||
Strength = 2
|
Strength = 2,
|
||||||
|
PadExtent = true
|
||||||
}),
|
}),
|
||||||
|
},
|
||||||
maxGlow = (text = new OsuSpriteText
|
maxGlow = (text = new OsuSpriteText
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
|
Reference in New Issue
Block a user