mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:42:54 +08:00
Handle overlay in ToolbarOverlayToggleButton.
This commit is contained in:
parent
e466380ee2
commit
ced2332d20
@ -17,7 +17,6 @@ namespace osu.Game.Overlays.Toolbar
|
||||
private void load(ChatOverlay chat)
|
||||
{
|
||||
StateContainer = chat;
|
||||
Action = chat.ToggleVisibility;
|
||||
}
|
||||
}
|
||||
}
|
@ -17,7 +17,6 @@ namespace osu.Game.Overlays.Toolbar
|
||||
private void load(MusicController music)
|
||||
{
|
||||
StateContainer = music;
|
||||
Action = music.ToggleVisibility;
|
||||
}
|
||||
}
|
||||
}
|
@ -22,7 +22,6 @@ namespace osu.Game.Overlays.Toolbar
|
||||
private void load(NotificationManager notificationManager)
|
||||
{
|
||||
StateContainer = notificationManager;
|
||||
Action = notificationManager.ToggleVisibility;
|
||||
}
|
||||
}
|
||||
}
|
@ -21,6 +21,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
set
|
||||
{
|
||||
stateContainer = value;
|
||||
Action = stateContainer.ToggleVisibility;
|
||||
stateContainer.StateChanged += stateChanged;
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ namespace osu.Game.Overlays.Toolbar
|
||||
private void load(OptionsOverlay options)
|
||||
{
|
||||
StateContainer = options;
|
||||
Action = options.ToggleVisibility;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user