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:
parent
a8cefca685
commit
b21fa78cbf
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user