mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Convert everything to DI pattern
This commit is contained in:
@ -11,6 +11,7 @@ using osu.Framework.Graphics.Transformations;
|
||||
using osu.Game.Online.Chat.Display.osu.Online.Social;
|
||||
using OpenTK;
|
||||
using osu.Framework;
|
||||
using osu.Framework.Allocation;
|
||||
|
||||
namespace osu.Game.Online.Chat.Display
|
||||
{
|
||||
@ -59,9 +60,9 @@ namespace osu.Game.Online.Chat.Display
|
||||
channel.NewMessagesArrived -= newMessages;
|
||||
}
|
||||
|
||||
protected override void Load(BaseGame game)
|
||||
[Initializer]
|
||||
private void Load()
|
||||
{
|
||||
base.Load(game);
|
||||
newMessages(channel.Messages);
|
||||
}
|
||||
|
||||
|
@ -10,6 +10,7 @@ using OpenTK;
|
||||
using OpenTK.Graphics;
|
||||
using osu.Framework;
|
||||
using osu.Framework.Graphics.Primitives;
|
||||
using osu.Framework.Allocation;
|
||||
|
||||
namespace osu.Game.Online.Chat.Display
|
||||
{
|
||||
@ -27,10 +28,9 @@ namespace osu.Game.Online.Chat.Display
|
||||
const float padding = 200;
|
||||
const float text_size = 20;
|
||||
|
||||
protected override void Load(BaseGame game)
|
||||
[Initializer]
|
||||
private void Load()
|
||||
{
|
||||
base.Load(game);
|
||||
|
||||
RelativeSizeAxes = Axes.X;
|
||||
AutoSizeAxes = Axes.Y;
|
||||
|
||||
|
Reference in New Issue
Block a user