mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Shrink and darken loading layer to better suit button
This commit is contained in:
@ -6,6 +6,7 @@ using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osu.Framework.Extensions.Color4Extensions;
|
||||
using osuTK;
|
||||
|
||||
namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
@ -15,7 +16,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
private readonly LoadingAnimation loading;
|
||||
|
||||
public DimmedLoadingLayer()
|
||||
public DimmedLoadingLayer(float dimAmount = 0.5f, float iconScale = 1f)
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both;
|
||||
Children = new Drawable[]
|
||||
@ -23,9 +24,9 @@ namespace osu.Game.Graphics.UserInterface
|
||||
new Box
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Colour = Color4.Black.Opacity(0.5f),
|
||||
Colour = Color4.Black.Opacity(dimAmount),
|
||||
},
|
||||
loading = new LoadingAnimation(),
|
||||
loading = new LoadingAnimation { Scale = new Vector2(iconScale) },
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user