mirror of
https://github.com/ppy/osu
synced 2025-01-06 06:10:04 +00:00
Remove upwards reference.
This commit is contained in:
parent
9276244d6a
commit
24771a62cf
@ -56,7 +56,7 @@ namespace osu.Game
|
||||
OnPlayModeChange = delegate (PlayMode m) { PlayMode.Value = m; },
|
||||
Alpha = 0.001f,
|
||||
},
|
||||
Chat = new ChatConsole(),
|
||||
Chat = new ChatConsole(API),
|
||||
new VolumeControl
|
||||
{
|
||||
VolumeGlobal = Audio.Volume,
|
||||
|
@ -27,8 +27,6 @@ namespace osu.Game.Overlays
|
||||
{
|
||||
public class ChatConsole : Container, IStateful<ChatConsoleState>
|
||||
{
|
||||
private APIAccess api => ((OsuGameBase)Game).API;
|
||||
|
||||
private ChannelDisplay channelDisplay;
|
||||
|
||||
private ScheduledDelegate messageRequest;
|
||||
@ -37,8 +35,12 @@ namespace osu.Game.Overlays
|
||||
|
||||
protected override Container Content => content;
|
||||
|
||||
public ChatConsole()
|
||||
private APIAccess api;
|
||||
|
||||
public ChatConsole(APIAccess api)
|
||||
{
|
||||
this.api = api;
|
||||
|
||||
RelativeSizeAxes = Axes.X;
|
||||
Size = new Vector2(1, 300);
|
||||
Anchor = Anchor.BottomLeft;
|
||||
|
Loading…
Reference in New Issue
Block a user