mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:22:55 +08:00
Hook up to channel selector tab item
This commit is contained in:
parent
b9292b6240
commit
96efa5a240
@ -76,7 +76,6 @@ namespace osu.Game.Overlays
|
|||||||
Origin = Anchor.TopLeft,
|
Origin = Anchor.TopLeft,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Height = 1f - DEFAULT_HEIGHT,
|
Height = 1f - DEFAULT_HEIGHT,
|
||||||
State = Visibility.Visible,
|
|
||||||
},
|
},
|
||||||
chatContainer = new Container
|
chatContainer = new Container
|
||||||
{
|
{
|
||||||
@ -157,6 +156,7 @@ namespace osu.Game.Overlays
|
|||||||
};
|
};
|
||||||
|
|
||||||
channelTabs.Current.ValueChanged += newChannel => CurrentChannel = newChannel;
|
channelTabs.Current.ValueChanged += newChannel => CurrentChannel = newChannel;
|
||||||
|
channelTabs.ChannelSelectorActive.ValueChanged += (value) => channelSelection.State = value ? Visibility.Visible : Visibility.Hidden;
|
||||||
channelSelection.StateChanged += (overlay, state) =>
|
channelSelection.StateChanged += (overlay, state) =>
|
||||||
{
|
{
|
||||||
if (state == Visibility.Visible && 1f - chatHeight.Value < channel_selection_min_height)
|
if (state == Visibility.Visible && 1f - chatHeight.Value < channel_selection_min_height)
|
||||||
|
Loading…
Reference in New Issue
Block a user