mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Migrate to new anchor system without x/y reversal.
This commit is contained in:
@ -14,6 +14,7 @@ using osu.Game.GameModes.Play.Taiko;
|
||||
using osu.Game.Graphics.UserInterface;
|
||||
using OpenTK;
|
||||
using OpenTK.Graphics;
|
||||
using osu.Framework.Graphics.Primitives;
|
||||
|
||||
namespace osu.Desktop.VisualTests.Tests
|
||||
{
|
||||
@ -37,7 +38,7 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
Anchor = Anchor.TopRight,
|
||||
TextSize = 40,
|
||||
Count = 0,
|
||||
Position = new Vector2(20, 20),
|
||||
Margin = new MarginPadding(20),
|
||||
};
|
||||
Add(score);
|
||||
|
||||
@ -45,8 +46,8 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
{
|
||||
Origin = Anchor.BottomLeft,
|
||||
Anchor = Anchor.BottomLeft,
|
||||
Position = new Vector2(10, 10),
|
||||
InnerCountPosition = new Vector2(10, 10),
|
||||
Margin = new MarginPadding(10),
|
||||
InnerCountMargin = new MarginPadding(10),
|
||||
Count = 0,
|
||||
TextSize = 40,
|
||||
};
|
||||
@ -86,7 +87,7 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
{
|
||||
Origin = Anchor.TopRight,
|
||||
Anchor = Anchor.TopRight,
|
||||
Position = new Vector2(20, 60),
|
||||
Position = new Vector2(-20, 60),
|
||||
};
|
||||
Add(accuracyCombo);
|
||||
|
||||
@ -94,7 +95,7 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
{
|
||||
Origin = Anchor.BottomLeft,
|
||||
Anchor = Anchor.BottomLeft,
|
||||
Position = new Vector2(20, 160),
|
||||
Position = new Vector2(20, -160),
|
||||
Count = 5,
|
||||
};
|
||||
Add(stars);
|
||||
@ -103,7 +104,7 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
{
|
||||
Origin = Anchor.BottomLeft,
|
||||
Anchor = Anchor.BottomLeft,
|
||||
Position = new Vector2(20, 190),
|
||||
Position = new Vector2(20, -190),
|
||||
Text = stars.Count.ToString("0.00"),
|
||||
};
|
||||
Add(starsLabel);
|
||||
|
Reference in New Issue
Block a user