mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 17:43:00 +08:00
Reorder methods and remove useless comments
This commit is contained in:
parent
f53164843d
commit
5ec349de78
@ -195,26 +195,6 @@ namespace osu.Game.Rulesets.UI
|
|||||||
private Container content;
|
private Container content;
|
||||||
private IEnumerable<Mod> mods;
|
private IEnumerable<Mod> mods;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
|
||||||
private void load(OsuConfigManager config)
|
|
||||||
{
|
|
||||||
KeyBindingInputManager.Add(content = new Container
|
|
||||||
{
|
|
||||||
RelativeSizeAxes = Axes.Both,
|
|
||||||
});
|
|
||||||
|
|
||||||
AddInternal(KeyBindingInputManager);
|
|
||||||
KeyBindingInputManager.Add(Playfield);
|
|
||||||
|
|
||||||
if (Cursor != null)
|
|
||||||
KeyBindingInputManager.Add(Cursor);
|
|
||||||
|
|
||||||
// Apply mods
|
|
||||||
applyMods(Mods, config);
|
|
||||||
|
|
||||||
loadObjects();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether to assume the beatmap passed into this <see cref="RulesetContainer{TObject}"/> is for the current ruleset.
|
/// Whether to assume the beatmap passed into this <see cref="RulesetContainer{TObject}"/> is for the current ruleset.
|
||||||
/// Creates a hit renderer for a beatmap.
|
/// Creates a hit renderer for a beatmap.
|
||||||
@ -236,10 +216,26 @@ namespace osu.Game.Rulesets.UI
|
|||||||
|
|
||||||
KeyBindingInputManager = CreateInputManager();
|
KeyBindingInputManager = CreateInputManager();
|
||||||
KeyBindingInputManager.RelativeSizeAxes = Axes.Both;
|
KeyBindingInputManager.RelativeSizeAxes = Axes.Both;
|
||||||
|
}
|
||||||
|
|
||||||
// Add mods, should always be the last thing applied to give full control to mods
|
[BackgroundDependencyLoader]
|
||||||
// Mods are now added in the load() method, this method is still executed after the constructor
|
private void load(OsuConfigManager config)
|
||||||
// so they are still added in last
|
{
|
||||||
|
KeyBindingInputManager.Add(content = new Container
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
});
|
||||||
|
|
||||||
|
AddInternal(KeyBindingInputManager);
|
||||||
|
KeyBindingInputManager.Add(Playfield);
|
||||||
|
|
||||||
|
if (Cursor != null)
|
||||||
|
KeyBindingInputManager.Add(Cursor);
|
||||||
|
|
||||||
|
// Apply mods
|
||||||
|
applyMods(Mods, config);
|
||||||
|
|
||||||
|
loadObjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user