Add test case for circular progress with texture from texture atlas

This commit is contained in:
marvin
2025-06-07 00:08:09 +02:00
parent 3136914308
commit 052cca80b3

View File

@@ -32,9 +32,10 @@ namespace osu.Framework.Tests.Visual.UserInterface
private Texture gradientTextureHorizontal;
private Texture gradientTextureVertical;
private Texture gradientTextureBoth;
private Texture textureAtlasTexture;
[BackgroundDependencyLoader]
private void load()
private void load(TextureStore textures)
{
const int width = 128;
@@ -82,6 +83,8 @@ namespace osu.Framework.Tests.Visual.UserInterface
gradientTextureBoth.SetData(new TextureUpload(image));
textureAtlasTexture = textures.Get("sample-texture");
Box background;
Container maskingContainer;
@@ -116,7 +119,8 @@ namespace osu.Framework.Tests.Visual.UserInterface
AddStep("Horizontal Gradient Texture", delegate { setTexture(1); });
AddStep("Vertical Gradient Texture", delegate { setTexture(2); });
AddStep("2D Graident Texture", delegate { setTexture(3); });
AddStep("2D Gradient Texture", delegate { setTexture(3); });
AddStep("Texture Atlas Texture", delegate { setTexture(4); });
AddStep("White Texture", delegate { setTexture(0); });
AddStep("Red Colour", delegate { setColour(1); });
@@ -191,6 +195,10 @@ namespace osu.Framework.Tests.Visual.UserInterface
case 3:
clock.Texture = gradientTextureBoth;
break;
case 4:
clock.Texture = textureAtlasTexture;
break;
}
}