1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 12:02:55 +08:00

Move dependencies out of fields to BDL args where possible

This commit is contained in:
Bartłomiej Dach 2022-03-16 21:55:36 +01:00
parent a8cefca685
commit b21fa78cbf
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
2 changed files with 2 additions and 11 deletions

View File

@ -33,16 +33,13 @@ namespace osu.Game.Overlays.Chat.ChannelControl
[Resolved]
private Bindable<Channel> selectedChannel { get; set; } = null!;
[Resolved]
private OverlayColourProvider colourProvider { get; set; } = null!;
public ControlItem(Channel channel)
{
this.channel = channel;
}
[BackgroundDependencyLoader]
private void load()
private void load(OverlayColourProvider colourProvider)
{
Height = 30;
RelativeSizeAxes = Axes.X;

View File

@ -20,14 +20,8 @@ namespace osu.Game.Overlays.Chat.ChannelControl
private OsuSpriteText? countText;
[Resolved]
private OsuColour osuColour { get; set; } = null!;
[Resolved]
private OverlayColourProvider colourProvider { get; set; } = null!;
[BackgroundDependencyLoader]
private void load()
private void load(OsuColour osuColour, OverlayColourProvider colourProvider)
{
Masking = true;
Size = new Vector2(20, 12);