1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 05:22:54 +08:00

Rename Apply{Vertical -> Horizontal}Centering to match common understanding

This commit is contained in:
Bartłomiej Dach 2023-07-28 22:09:28 +02:00
parent c9155f85ab
commit 6d018c08af
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ namespace osu.Game.Rulesets.Taiko.Edit
{
public partial class TaikoHitObjectComposer : HitObjectComposer<TaikoHitObject>
{
protected override bool ApplyVerticalCentering => false;
protected override bool ApplyHorizontalCentering => false;
public TaikoHitObjectComposer(TaikoRuleset ruleset)
: base(ruleset)

View File

@ -45,9 +45,9 @@ namespace osu.Game.Rulesets.Edit
where TObject : HitObject
{
/// <summary>
/// Whether the playfield should be centered vertically. Should be disabled for playfields which span the full horizontal width.
/// Whether the playfield should be centered horizontally. Should be disabled for playfields which span the full horizontal width.
/// </summary>
protected virtual bool ApplyVerticalCentering => true;
protected virtual bool ApplyHorizontalCentering => true;
protected IRulesetConfigManager Config { get; private set; }
@ -245,7 +245,7 @@ namespace osu.Game.Rulesets.Edit
base.Update();
// Ensure that the playfield is always centered but also doesn't get cut off by toolboxes.
if (ApplyVerticalCentering)
if (ApplyHorizontalCentering)
{
PlayfieldContentContainer.Anchor = Anchor.Centre;
PlayfieldContentContainer.Origin = Anchor.Centre;