mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 16:52:54 +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,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Height = 1f - DEFAULT_HEIGHT,
|
||||
State = Visibility.Visible,
|
||||
},
|
||||
chatContainer = new Container
|
||||
{
|
||||
@ -157,6 +156,7 @@ namespace osu.Game.Overlays
|
||||
};
|
||||
|
||||
channelTabs.Current.ValueChanged += newChannel => CurrentChannel = newChannel;
|
||||
channelTabs.ChannelSelectorActive.ValueChanged += (value) => channelSelection.State = value ? Visibility.Visible : Visibility.Hidden;
|
||||
channelSelection.StateChanged += (overlay, state) =>
|
||||
{
|
||||
if (state == Visibility.Visible && 1f - chatHeight.Value < channel_selection_min_height)
|
||||
|
Loading…
Reference in New Issue
Block a user