mirror of
https://github.com/osukey/osukey.git
synced 2025-05-04 05:07:23 +09:00
Hide Room tab when Settings tab is active
This commit is contained in:
parent
38ddf3af56
commit
2bc3464802
@ -51,6 +51,8 @@ namespace osu.Game.Screens.Multi.Match
|
|||||||
|
|
||||||
MatchChatDisplay chat;
|
MatchChatDisplay chat;
|
||||||
Components.Header header;
|
Components.Header header;
|
||||||
|
Info info;
|
||||||
|
GridContainer bottomRow;
|
||||||
MatchSettingsOverlay settings;
|
MatchSettingsOverlay settings;
|
||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
@ -61,10 +63,10 @@ namespace osu.Game.Screens.Multi.Match
|
|||||||
Content = new[]
|
Content = new[]
|
||||||
{
|
{
|
||||||
new Drawable[] { header = new Components.Header(room) { Depth = -1 } },
|
new Drawable[] { header = new Components.Header(room) { Depth = -1 } },
|
||||||
new Drawable[] { new Info(room) { OnStart = onStart } },
|
new Drawable[] { info = new Info(room) { OnStart = onStart } },
|
||||||
new Drawable[]
|
new Drawable[]
|
||||||
{
|
{
|
||||||
new GridContainer
|
bottomRow = new GridContainer
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Content = new[]
|
Content = new[]
|
||||||
@ -110,9 +112,17 @@ namespace osu.Game.Screens.Multi.Match
|
|||||||
header.Tabs.Current.ValueChanged += t =>
|
header.Tabs.Current.ValueChanged += t =>
|
||||||
{
|
{
|
||||||
if (t is SettingsMatchPage)
|
if (t is SettingsMatchPage)
|
||||||
|
{
|
||||||
settings.Show();
|
settings.Show();
|
||||||
|
info.Hide();
|
||||||
|
bottomRow.Hide();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
settings.Hide();
|
settings.Hide();
|
||||||
|
info.Show();
|
||||||
|
bottomRow.Show();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
chat.Exit += Exit;
|
chat.Exit += Exit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user