1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-21 03:32:54 +08:00

Adjust properties naming

This commit is contained in:
Andrei Zavatski 2020-03-04 23:06:16 +03:00
parent 55a0586b13
commit 63219a2357
3 changed files with 11 additions and 11 deletions

View File

@ -17,11 +17,11 @@ namespace osu.Game.Overlays.Changelog
Width *= 2;
}
protected override string GetMainText => Value.DisplayName;
protected override string MainText => Value.DisplayName;
protected override string GetAdditionalText => Value.LatestBuild.DisplayVersion;
protected override string AdditionalText => Value.LatestBuild.DisplayVersion;
protected override string GetInfoText => Value.LatestBuild.Users > 0 ? $"{"user".ToQuantity(Value.LatestBuild.Users, "N0")} online" : null;
protected override string InfoText => Value.LatestBuild.Users > 0 ? $"{"user".ToQuantity(Value.LatestBuild.Users, "N0")} online" : null;
protected override Color4 GetBarColour(OsuColour colours) => Value.Colour;
}

View File

@ -14,9 +14,9 @@ namespace osu.Game.Overlays.Home.Friends
{
}
protected override string GetMainText => Value.Status.ToString();
protected override string MainText => Value.Status.ToString();
protected override string GetAdditionalText => Value.Count.ToString();
protected override string AdditionalText => Value.Count.ToString();
protected override Color4 GetBarColour(OsuColour colours)
{

View File

@ -58,17 +58,17 @@ namespace osu.Game.Overlays
{
new OsuSpriteText
{
Text = GetMainText,
Text = MainText,
Font = OsuFont.GetFont(size: 12, weight: FontWeight.Black),
},
new OsuSpriteText
{
Text = GetAdditionalText,
Text = AdditionalText,
Font = OsuFont.GetFont(size: 16, weight: FontWeight.Regular),
},
new OsuSpriteText
{
Text = GetInfoText,
Text = InfoText,
Font = OsuFont.GetFont(size: 10),
Colour = colourProvider.Foreground1
},
@ -88,11 +88,11 @@ namespace osu.Game.Overlays
SelectedItem.BindValueChanged(_ => updateState(), true);
}
protected abstract string GetMainText { get; }
protected abstract string MainText { get; }
protected abstract string GetAdditionalText { get; }
protected abstract string AdditionalText { get; }
protected virtual string GetInfoText => string.Empty;
protected virtual string InfoText => string.Empty;
protected abstract Color4 GetBarColour(OsuColour colours);