mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 11:12:59 +08:00
Move load method up
This commit is contained in:
parent
a6f3dc53f7
commit
c28a9bdb80
@ -51,7 +51,6 @@ namespace osu.Game.Rulesets.Mania.Edit
|
|||||||
|
|
||||||
public (double start, double end)? SelectionTimeRange
|
public (double start, double end)? SelectionTimeRange
|
||||||
{
|
{
|
||||||
get => selectionTimeRange;
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (value == selectionTimeRange)
|
if (value == selectionTimeRange)
|
||||||
@ -62,17 +61,6 @@ namespace osu.Game.Rulesets.Mania.Edit
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Update()
|
|
||||||
{
|
|
||||||
base.Update();
|
|
||||||
|
|
||||||
if (!lineCache.IsValid)
|
|
||||||
{
|
|
||||||
lineCache.Validate();
|
|
||||||
createLines();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
@ -90,6 +78,17 @@ namespace osu.Game.Rulesets.Mania.Edit
|
|||||||
beatDivisor.BindValueChanged(_ => createLines(), true);
|
beatDivisor.BindValueChanged(_ => createLines(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void Update()
|
||||||
|
{
|
||||||
|
base.Update();
|
||||||
|
|
||||||
|
if (!lineCache.IsValid)
|
||||||
|
{
|
||||||
|
lineCache.Validate();
|
||||||
|
createLines();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private readonly Stack<DrawableGridLine> availableLines = new Stack<DrawableGridLine>();
|
private readonly Stack<DrawableGridLine> availableLines = new Stack<DrawableGridLine>();
|
||||||
|
|
||||||
private void createLines()
|
private void createLines()
|
||||||
|
Loading…
Reference in New Issue
Block a user