mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 18:32:55 +08:00
Throw exception if SpecialColumnPosition is set after IsLoaded.
This commit is contained in:
parent
e307b6d563
commit
72b2467e74
@ -27,10 +27,20 @@ namespace osu.Game.Rulesets.Mania.UI
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private static readonly Key[] default_keys = { Key.A, Key.S, Key.D, Key.F, Key.J, Key.K, Key.L, Key.Semicolon };
|
private static readonly Key[] default_keys = { Key.A, Key.S, Key.D, Key.F, Key.J, Key.K, Key.L, Key.Semicolon };
|
||||||
|
|
||||||
|
private SpecialColumnPosition specialColumnPosition;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The style to use for the special column.
|
/// The style to use for the special column.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public SpecialColumnPosition SpecialColumnPosition;
|
public SpecialColumnPosition SpecialColumnPosition
|
||||||
|
{
|
||||||
|
get { return specialColumnPosition; }
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (IsLoaded)
|
||||||
|
throw new InvalidOperationException($"Setting {nameof(SpecialColumnPosition)} after the playfield is loaded requires re-creating the playfield.");
|
||||||
|
specialColumnPosition = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public readonly FlowContainer<Column> Columns;
|
public readonly FlowContainer<Column> Columns;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user