mirror of
https://github.com/ppy/osu.git
synced 2025-01-29 01:22:54 +08:00
Remove AspectAdjust property (override GetAspectAdjustedSize instead)
This commit is contained in:
parent
cd2c9a9de6
commit
b7be162f28
@ -33,11 +33,6 @@ namespace osu.Game.Rulesets.UI
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public abstract class RulesetContainer : Container
|
public abstract class RulesetContainer : Container
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Whether to apply adjustments to the child <see cref="Playfield"/> based on our own size.
|
|
||||||
/// </summary>
|
|
||||||
public bool AspectAdjust = true;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The selected variant.
|
/// The selected variant.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -324,7 +319,7 @@ namespace osu.Game.Rulesets.UI
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
Playfield.Size = AspectAdjust ? GetAspectAdjustedSize() : Vector2.One;
|
Playfield.Size = GetAspectAdjustedSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user