1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:07:25 +08:00

Naming adjustments

This commit is contained in:
Andrei Zavatski 2020-08-12 11:24:26 +03:00
parent 9b112baa88
commit f3202fb123
5 changed files with 13 additions and 13 deletions

View File

@ -30,7 +30,7 @@ namespace osu.Game.Tests.Visual.Online
Spacing = new Vector2(0, 5),
Children = new Drawable[]
{
new HomeNewsPanel(new APINewsPost
new FeaturedNewsItemPanel(new APINewsPost
{
Title = "This post has an image which starts with \"/\" and has many authors!",
Preview = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
@ -38,7 +38,7 @@ namespace osu.Game.Tests.Visual.Online
PublishedAt = DateTimeOffset.Now,
Slug = "2020-07-16-summer-theme-park-2020-voting-open"
}),
new HomeNewsGroupPanel(new List<APINewsPost>
new NewsItemGroupPanel(new List<APINewsPost>
{
new APINewsPost
{
@ -53,7 +53,7 @@ namespace osu.Game.Tests.Visual.Online
PublishedAt = DateTimeOffset.Now,
}
}),
new HomeShowMoreNewsPanel()
new ShowMoreNewsPanel()
}
});
}

View File

@ -18,11 +18,11 @@ using osuTK.Graphics;
namespace osu.Game.Overlays.Dashboard.Home.News
{
public class HomeNewsPanel : HomePanel
public class FeaturedNewsItemPanel : HomePanel
{
private readonly APINewsPost post;
public HomeNewsPanel(APINewsPost post)
public FeaturedNewsItemPanel(APINewsPost post)
{
this.post = post;
}

View File

@ -12,11 +12,11 @@ using osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Overlays.Dashboard.Home.News
{
public class CollapsedNewsPanel : CompositeDrawable
public class NewsGroupItem : CompositeDrawable
{
private readonly APINewsPost post;
public CollapsedNewsPanel(APINewsPost post)
public NewsGroupItem(APINewsPost post)
{
this.post = post;
}

View File

@ -10,11 +10,11 @@ using osu.Game.Online.API.Requests.Responses;
namespace osu.Game.Overlays.Dashboard.Home.News
{
public class HomeNewsGroupPanel : HomePanel
public class NewsItemGroupPanel : HomePanel
{
private readonly List<APINewsPost> posts;
public HomeNewsGroupPanel(List<APINewsPost> posts)
public NewsItemGroupPanel(List<APINewsPost> posts)
{
this.posts = posts;
}
@ -24,12 +24,12 @@ namespace osu.Game.Overlays.Dashboard.Home.News
{
Content.Padding = new MarginPadding { Vertical = 5 };
Child = new FillFlowContainer<CollapsedNewsPanel>
Child = new FillFlowContainer<NewsGroupItem>
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Direction = FillDirection.Vertical,
Children = posts.Select(p => new CollapsedNewsPanel(p)).ToArray()
Children = posts.Select(p => new NewsGroupItem(p)).ToArray()
};
}
}

View File

@ -10,7 +10,7 @@ using osuTK.Graphics;
namespace osu.Game.Overlays.Dashboard.Home.News
{
public class HomeShowMoreNewsPanel : OsuHoverContainer
public class ShowMoreNewsPanel : OsuHoverContainer
{
protected override IEnumerable<Drawable> EffectTargets => new[] { text };
@ -19,7 +19,7 @@ namespace osu.Game.Overlays.Dashboard.Home.News
private OsuSpriteText text;
public HomeShowMoreNewsPanel()
public ShowMoreNewsPanel()
{
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;