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:
parent
c9155f85ab
commit
6d018c08af
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user