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

Rename UpdateStream components to ChangelogUpdateStream

This commit is contained in:
Andrei Zavatski 2020-03-03 16:20:36 +03:00
parent 740eb9ff53
commit 8dcdd6db6f
4 changed files with 11 additions and 11 deletions

View File

@ -17,8 +17,8 @@ namespace osu.Game.Tests.Visual.Online
public override IReadOnlyList<Type> RequiredTypes => new[] public override IReadOnlyList<Type> RequiredTypes => new[]
{ {
typeof(UpdateStreamBadgeArea), typeof(ChangelogUpdateStreamBadgeArea),
typeof(UpdateStreamBadge), typeof(ChangelogUpdateStreamBadge),
typeof(ChangelogHeader), typeof(ChangelogHeader),
typeof(ChangelogContent), typeof(ChangelogContent),
typeof(ChangelogListing), typeof(ChangelogListing),

View File

@ -20,7 +20,7 @@ namespace osu.Game.Overlays.Changelog
public Action ListingSelected; public Action ListingSelected;
public UpdateStreamBadgeArea Streams; public ChangelogUpdateStreamBadgeArea Streams;
private const string listing_string = "listing"; private const string listing_string = "listing";
@ -95,7 +95,7 @@ namespace osu.Game.Overlays.Changelog
Horizontal = 65, Horizontal = 65,
Vertical = 20 Vertical = 20
}, },
Child = Streams = new UpdateStreamBadgeArea() Child = Streams = new ChangelogUpdateStreamBadgeArea()
} }
} }
}; };

View File

@ -17,7 +17,7 @@ using osuTK;
namespace osu.Game.Overlays.Changelog namespace osu.Game.Overlays.Changelog
{ {
public class UpdateStreamBadge : TabItem<APIUpdateStream> public class ChangelogUpdateStreamBadge : TabItem<APIUpdateStream>
{ {
private const float badge_width = 100; private const float badge_width = 100;
private const float transition_duration = 100; private const float transition_duration = 100;
@ -29,7 +29,7 @@ namespace osu.Game.Overlays.Changelog
private FillFlowContainer<SpriteText> text; private FillFlowContainer<SpriteText> text;
private ExpandingBar expandingBar; private ExpandingBar expandingBar;
public UpdateStreamBadge(APIUpdateStream stream) public ChangelogUpdateStreamBadge(APIUpdateStream stream)
: base(stream) : base(stream)
{ {
this.stream = stream; this.stream = stream;

View File

@ -10,9 +10,9 @@ using osu.Framework.Graphics.UserInterface;
namespace osu.Game.Overlays.Changelog namespace osu.Game.Overlays.Changelog
{ {
public class UpdateStreamBadgeArea : TabControl<APIUpdateStream> public class ChangelogUpdateStreamBadgeArea : TabControl<APIUpdateStream>
{ {
public UpdateStreamBadgeArea() public ChangelogUpdateStreamBadgeArea()
{ {
RelativeSizeAxes = Axes.X; RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y; AutoSizeAxes = Axes.Y;
@ -26,7 +26,7 @@ namespace osu.Game.Overlays.Changelog
protected override bool OnHover(HoverEvent e) protected override bool OnHover(HoverEvent e)
{ {
foreach (var streamBadge in TabContainer.Children.OfType<UpdateStreamBadge>()) foreach (var streamBadge in TabContainer.Children.OfType<ChangelogUpdateStreamBadge>())
streamBadge.UserHoveringArea = true; streamBadge.UserHoveringArea = true;
return base.OnHover(e); return base.OnHover(e);
@ -34,7 +34,7 @@ namespace osu.Game.Overlays.Changelog
protected override void OnHoverLost(HoverLostEvent e) protected override void OnHoverLost(HoverLostEvent e)
{ {
foreach (var streamBadge in TabContainer.Children.OfType<UpdateStreamBadge>()) foreach (var streamBadge in TabContainer.Children.OfType<ChangelogUpdateStreamBadge>())
streamBadge.UserHoveringArea = false; streamBadge.UserHoveringArea = false;
base.OnHoverLost(e); base.OnHoverLost(e);
@ -50,6 +50,6 @@ namespace osu.Game.Overlays.Changelog
protected override Dropdown<APIUpdateStream> CreateDropdown() => null; protected override Dropdown<APIUpdateStream> CreateDropdown() => null;
protected override TabItem<APIUpdateStream> CreateTabItem(APIUpdateStream value) => protected override TabItem<APIUpdateStream> CreateTabItem(APIUpdateStream value) =>
new UpdateStreamBadge(value) { SelectedTab = { BindTarget = Current } }; new ChangelogUpdateStreamBadge(value) { SelectedTab = { BindTarget = Current } };
} }
} }