mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 20:22:55 +08:00
Remove reduntant .base and .this
This commit is contained in:
parent
9a84747fe6
commit
9e9d7a855d
@ -37,9 +37,9 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
|
|
||||||
public StreamBadge(APIChangelog latestBuild)
|
public StreamBadge(APIChangelog latestBuild)
|
||||||
{
|
{
|
||||||
this.LatestBuild = latestBuild;
|
LatestBuild = latestBuild;
|
||||||
Height = badge_height;
|
Height = badge_height;
|
||||||
base.Width = this.LatestBuild.IsFeatured ? badge_width * 2 : badge_width;
|
Width = LatestBuild.IsFeatured ? badge_width * 2 : badge_width;
|
||||||
Margin = new MarginPadding(5);
|
Margin = new MarginPadding(5);
|
||||||
isActivated = true;
|
isActivated = true;
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
@ -53,7 +53,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
{
|
{
|
||||||
new SpriteText
|
new SpriteText
|
||||||
{
|
{
|
||||||
Text = this.LatestBuild.UpdateStream.DisplayName,
|
Text = LatestBuild.UpdateStream.DisplayName,
|
||||||
Font = @"Exo2.0-Bold",
|
Font = @"Exo2.0-Bold",
|
||||||
TextSize = 16,
|
TextSize = 16,
|
||||||
Margin = new MarginPadding
|
Margin = new MarginPadding
|
||||||
@ -63,14 +63,14 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
},
|
},
|
||||||
new SpriteText
|
new SpriteText
|
||||||
{
|
{
|
||||||
Text = this.LatestBuild.DisplayVersion,
|
Text = LatestBuild.DisplayVersion,
|
||||||
Font = @"Exo2.0-Light",
|
Font = @"Exo2.0-Light",
|
||||||
TextSize = 21,
|
TextSize = 21,
|
||||||
},
|
},
|
||||||
new SpriteText
|
new SpriteText
|
||||||
{
|
{
|
||||||
Text = this.LatestBuild.Users > 0 ?
|
Text = LatestBuild.Users > 0 ?
|
||||||
$"{this.LatestBuild.Users:N0} users online" :
|
$"{LatestBuild.Users:N0} users online" :
|
||||||
null,
|
null,
|
||||||
TextSize = 12,
|
TextSize = 12,
|
||||||
Font = @"Exo2.0-Regular",
|
Font = @"Exo2.0-Regular",
|
||||||
@ -81,7 +81,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
lineBadge = new LineBadge(false)
|
lineBadge = new LineBadge(false)
|
||||||
{
|
{
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Colour = StreamColour.FromStreamName(this.LatestBuild.UpdateStream.Name),
|
Colour = StreamColour.FromStreamName(LatestBuild.UpdateStream.Name),
|
||||||
UncollapsedSize = 4,
|
UncollapsedSize = 4,
|
||||||
CollapsedSize = 2,
|
CollapsedSize = 2,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user