mirror of
https://github.com/ppy/osu
synced 2025-03-11 05:49:12 +00:00
Simplify column assignment
This commit is contained in:
parent
7c9fbb6fcf
commit
e3cec9cf6c
@ -17,7 +17,20 @@ namespace osu.Game.Rulesets.Mania.Edit.Blueprints
|
|||||||
{
|
{
|
||||||
protected new T HitObject => (T)base.HitObject;
|
protected new T HitObject => (T)base.HitObject;
|
||||||
|
|
||||||
protected Column Column;
|
private Column column;
|
||||||
|
|
||||||
|
public Column Column
|
||||||
|
{
|
||||||
|
get => column;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (value == column)
|
||||||
|
return;
|
||||||
|
|
||||||
|
column = value;
|
||||||
|
HitObject.Column = column.Index;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected ManiaPlacementBlueprint(T hitObject)
|
protected ManiaPlacementBlueprint(T hitObject)
|
||||||
: base(hitObject)
|
: base(hitObject)
|
||||||
@ -31,9 +44,8 @@ namespace osu.Game.Rulesets.Mania.Edit.Blueprints
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (Column == null)
|
if (Column == null)
|
||||||
return base.OnMouseDown(e);
|
return false;
|
||||||
|
|
||||||
HitObject.Column = Column.Index;
|
|
||||||
BeginPlacement(true);
|
BeginPlacement(true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user