Migrate to new anchor system without x/y reversal.

This commit is contained in:
Tom94
2016-11-14 17:22:20 +01:00
parent 63f0a01888
commit c860eb25f9
7 changed files with 26 additions and 21 deletions

View File

@ -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);