mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Rename MonthPanel to MonthDropdown
This commit is contained in:
parent
0a9c3c9413
commit
705aad262a
@ -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 }
|
||||
},
|
@ -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;
|
@ -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 }
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user