mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Merge branch 'refs/heads/master' into dependency-injection
# Conflicts: # osu-framework # osu.Game/GameModes/OsuGameMode.cs # osu.Game/GameModes/Play/Player.cs # osu.Game/OsuGame.cs # osu.Game/Overlays/MusicController.cs # osu.Game/Overlays/Options/EditorSection.cs # osu.Game/Overlays/Options/Input/MouseOptions.cs # osu.Game/Overlays/Options/Online/InGameChatOptions.cs # osu.Game/Overlays/Options/SkinSection.cs
This commit is contained in:
@ -126,17 +126,15 @@ namespace osu.Game.GameModes.Play
|
||||
};
|
||||
}
|
||||
|
||||
[Initializer]
|
||||
private void Load(BeatmapDatabase beatmaps, AudioManager audio, BaseGame game)
|
||||
[BackgroundDependencyLoader(permitNulls: true)]
|
||||
private void load(BeatmapDatabase beatmaps, AudioManager audio, OsuGame game)
|
||||
{
|
||||
// TODO: Load(..., [PermitNull] OsuGame osuGame) or some such
|
||||
var osuGame = game as OsuGame;
|
||||
if (osuGame != null)
|
||||
if (game != null)
|
||||
{
|
||||
playMode = osuGame.PlayMode;
|
||||
playMode = game.PlayMode;
|
||||
playMode.ValueChanged += playMode_ValueChanged;
|
||||
// Temporary:
|
||||
scrollContainer.Padding = new MarginPadding { Top = osuGame.Toolbar.Height };
|
||||
scrollContainer.Padding = new MarginPadding { Top = ToolbarPadding };
|
||||
}
|
||||
|
||||
if (database == null)
|
||||
|
Reference in New Issue
Block a user