Rename MonthPanel to MonthDropdown

This commit is contained in:
Andrei Zavatski 2021-05-11 15:42:40 +03:00
parent 0a9c3c9413
commit 705aad262a
3 changed files with 8 additions and 8 deletions

View File

@ -14,7 +14,7 @@ using osu.Game.Overlays.News.Sidebar;
namespace osu.Game.Tests.Visual.Online
{
public class TestSceneNewsMonthPanel : OsuTestScene
public class TestSceneNewsMonthDropdown : OsuTestScene
{
[Cached]
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Purple);
@ -34,7 +34,7 @@ namespace osu.Game.Tests.Visual.Online
RelativeSizeAxes = Axes.Both,
Colour = colourProvider.Background2,
},
new MonthPanel(posts),
new MonthDropdown(posts),
}
});
}
@ -54,7 +54,7 @@ namespace osu.Game.Tests.Visual.Online
RelativeSizeAxes = Axes.Both,
Colour = colourProvider.Background2,
},
new MonthPanel(posts)
new MonthDropdown(posts)
{
IsOpen = { Value = true }
},

View File

@ -17,7 +17,7 @@ using osu.Framework.Graphics.Sprites;
namespace osu.Game.Overlays.News.Sidebar
{
public class MonthPanel : CompositeDrawable
public class MonthDropdown : CompositeDrawable
{
private const int header_height = 15;
private const int animation_duration = 250;
@ -26,7 +26,7 @@ namespace osu.Game.Overlays.News.Sidebar
private readonly FillFlowContainer postsFlow;
public MonthPanel(IEnumerable<APINewsPost> posts)
public MonthDropdown(IEnumerable<APINewsPost> posts)
{
Width = 160;
Masking = true;

View File

@ -17,7 +17,7 @@ namespace osu.Game.Overlays.News.Sidebar
[Cached]
public readonly Bindable<APINewsSidebar> Metadata = new Bindable<APINewsSidebar>();
private FillFlowContainer<MonthPanel> monthsFlow;
private FillFlowContainer<MonthDropdown> monthsFlow;
[BackgroundDependencyLoader]
private void load(OverlayColourProvider colourProvider)
@ -50,7 +50,7 @@ namespace osu.Game.Overlays.News.Sidebar
Children = new Drawable[]
{
new YearsPanel(),
monthsFlow = new FillFlowContainer<MonthPanel>
monthsFlow = new FillFlowContainer<MonthDropdown>
{
AutoSizeAxes = Axes.Both,
Direction = FillDirection.Vertical,
@ -90,7 +90,7 @@ namespace osu.Game.Overlays.News.Sidebar
{
var posts = lookup[sortedKeys[i]];
monthsFlow.Add(new MonthPanel(posts)
monthsFlow.Add(new MonthDropdown(posts)
{
IsOpen = { Value = i == 0 }
});