diff --git a/osu.Game/Online/Multiplayer/GameTypes/GameTypeTimeshift.cs b/osu.Game/Online/Multiplayer/GameTypes/GameTypeTimeshift.cs index e8aa82d022..e87f8a9696 100644 --- a/osu.Game/Online/Multiplayer/GameTypes/GameTypeTimeshift.cs +++ b/osu.Game/Online/Multiplayer/GameTypes/GameTypeTimeshift.cs @@ -13,10 +13,9 @@ namespace osu.Game.Online.Multiplayer.GameTypes Anchor = Anchor.Centre, Origin = Anchor.Centre, Icon = FontAwesome.fa_clock_o, - X = -2, // The icon is off-centre Size = new Vector2(size), Colour = colours.Blue, Shadow = false }; } -} \ No newline at end of file +} diff --git a/osu.Game/Online/Multiplayer/VersusRow.cs b/osu.Game/Online/Multiplayer/GameTypes/VersusRow.cs similarity index 97% rename from osu.Game/Online/Multiplayer/VersusRow.cs rename to osu.Game/Online/Multiplayer/GameTypes/VersusRow.cs index 3c7ebd936e..2b150fc6f0 100644 --- a/osu.Game/Online/Multiplayer/VersusRow.cs +++ b/osu.Game/Online/Multiplayer/GameTypes/VersusRow.cs @@ -4,7 +4,7 @@ using osu.Framework.Graphics.Shapes; using osuTK; using osuTK.Graphics; -namespace osu.Game.Online.Multiplayer +namespace osu.Game.Online.Multiplayer.GameTypes { public class VersusRow : FillFlowContainer { diff --git a/osu.Game/Screens/Multi/Components/BeatmapTitle.cs b/osu.Game/Screens/Multi/Components/BeatmapTitle.cs index d609f7a70d..b58af398ca 100644 --- a/osu.Game/Screens/Multi/Components/BeatmapTitle.cs +++ b/osu.Game/Screens/Multi/Components/BeatmapTitle.cs @@ -1,11 +1,13 @@ // Copyright (c) 2007-2018 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE +using osu.Framework.Allocation; using osu.Framework.Configuration; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Localisation; using osu.Game.Beatmaps; +using osu.Game.Graphics; using osu.Game.Graphics.Containers; using osu.Game.Graphics.Sprites; using osu.Game.Online.Chat; @@ -23,14 +25,12 @@ namespace osu.Game.Screens.Multi.Components AutoSizeAxes = Axes.Both; InternalChild = textFlow = new LinkFlowContainer { AutoSizeAxes = Axes.Both }; - - Beatmap.BindValueChanged(v => updateText()); } protected override void LoadComplete() { base.LoadComplete(); - updateText(); + Beatmap.BindValueChanged(v => updateText(), true); } private float textSize = OsuSpriteText.FONT_SIZE; @@ -48,6 +48,9 @@ namespace osu.Game.Screens.Multi.Components } } + [Resolved] + private OsuColour colours { get; set; } + private void updateText() { if (!IsLoaded) @@ -56,7 +59,11 @@ namespace osu.Game.Screens.Multi.Components textFlow.Clear(); if (Beatmap.Value == null) - textFlow.AddText("Changing map", s => s.TextSize = TextSize); + textFlow.AddText("No beatmap selected", s => + { + s.TextSize = TextSize; + s.Colour = colours.PinkLight; + }); else { textFlow.AddLink(new[]