mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Remove usages of negative Margin / Padding
Replaces such usage with more sensible settings, like changing the position or size.
This commit is contained in:
Submodule osu-framework updated: 5dbb4a5134...1fee5052af
@ -52,7 +52,6 @@ namespace osu.Game.Beatmaps.Drawables
|
|||||||
},
|
},
|
||||||
artist = new OsuSpriteText
|
artist = new OsuSpriteText
|
||||||
{
|
{
|
||||||
Margin = new MarginPadding { Top = -1 },
|
|
||||||
Font = @"Exo2.0-SemiBoldItalic",
|
Font = @"Exo2.0-SemiBoldItalic",
|
||||||
Text = beatmap.BeatmapSetInfo.Metadata.Artist,
|
Text = beatmap.BeatmapSetInfo.Metadata.Artist,
|
||||||
TextSize = 17,
|
TextSize = 17,
|
||||||
|
@ -57,10 +57,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
c1.Origin = c1.Anchor = (value & Anchor.x2) > 0 ? Anchor.TopLeft : Anchor.TopRight;
|
c1.Origin = c1.Anchor = (value & Anchor.x2) > 0 ? Anchor.TopLeft : Anchor.TopRight;
|
||||||
c2.Origin = c2.Anchor = (value & Anchor.x2) > 0 ? Anchor.TopRight : Anchor.TopLeft;
|
c2.Origin = c2.Anchor = (value & Anchor.x2) > 0 ? Anchor.TopRight : Anchor.TopLeft;
|
||||||
|
|
||||||
Margin = new MarginPadding
|
X = (value & Anchor.x2) > 0 ? SIZE_RETRACTED.X * shear * 0.5f : 0;
|
||||||
{
|
|
||||||
Right = (value & Anchor.x2) > 0 ? -SIZE_RETRACTED.X * shear * 0.5f : 0
|
|
||||||
};
|
|
||||||
|
|
||||||
c1.Depth = (value & Anchor.x2) > 0 ? 0 : 1;
|
c1.Depth = (value & Anchor.x2) > 0 ? 0 : 1;
|
||||||
c2.Depth = (value & Anchor.x2) > 0 ? 1 : 0;
|
c2.Depth = (value & Anchor.x2) > 0 ? 1 : 0;
|
||||||
|
Reference in New Issue
Block a user