-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix-full-area-reset
- Loading branch information
Showing
2 changed files
with
77 additions
and
26 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
osu.Game.Tests/Visual/Background/TestSceneTrianglesBackground.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using osu.Game.Graphics.Backgrounds; | ||
using osu.Framework.Graphics; | ||
using osuTK.Graphics; | ||
using osu.Framework.Graphics.Shapes; | ||
|
||
namespace osu.Game.Tests.Visual.Background | ||
{ | ||
public class TestSceneTrianglesBackground : OsuTestScene | ||
{ | ||
private readonly Triangles triangles; | ||
|
||
public TestSceneTrianglesBackground() | ||
{ | ||
Children = new Drawable[] | ||
{ | ||
new Box | ||
{ | ||
RelativeSizeAxes = Axes.Both, | ||
Colour = Color4.Black | ||
}, | ||
triangles = new Triangles | ||
{ | ||
RelativeSizeAxes = Axes.Both, | ||
ColourLight = Color4.White, | ||
ColourDark = Color4.Gray | ||
} | ||
}; | ||
} | ||
|
||
protected override void LoadComplete() | ||
{ | ||
base.LoadComplete(); | ||
|
||
AddSliderStep("Triangle scale", 0f, 10f, 1f, s => triangles.TriangleScale = s); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters