mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 21:07:33 +08:00
Instantiate channel in tab item
This commit is contained in:
parent
d53fb9a5c8
commit
8957ad5a7e
@ -13,8 +13,8 @@ namespace osu.Game.Overlays.Chat.Tabs
|
|||||||
|
|
||||||
public override bool IsSwitchable => false;
|
public override bool IsSwitchable => false;
|
||||||
|
|
||||||
public ChannelSelectorTabItem(Channel value)
|
public ChannelSelectorTabItem()
|
||||||
: base(value)
|
: base(new ChannelSelectorTabChannel())
|
||||||
{
|
{
|
||||||
Depth = float.MaxValue;
|
Depth = float.MaxValue;
|
||||||
Width = 45;
|
Width = 45;
|
||||||
|
@ -38,7 +38,7 @@ namespace osu.Game.Overlays.Chat.Tabs
|
|||||||
Margin = new MarginPadding(10),
|
Margin = new MarginPadding(10),
|
||||||
});
|
});
|
||||||
|
|
||||||
AddTabItem(selectorTab = new ChannelSelectorTabItem(new ChannelSelectorTabChannel()));
|
AddTabItem(selectorTab = new ChannelSelectorTabItem());
|
||||||
|
|
||||||
ChannelSelectorActive.BindTo(selectorTab.Active);
|
ChannelSelectorActive.BindTo(selectorTab.Active);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user