mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 18:23:04 +08:00
Add basic song select setup for skinnability
This commit is contained in:
parent
8d85723a62
commit
c6aa32a003
@ -37,6 +37,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
using System.Diagnostics;
|
||||
using osu.Game.Screens.Play;
|
||||
using osu.Game.Database;
|
||||
using osu.Game.Skinning;
|
||||
|
||||
namespace osu.Game.Screens.Select
|
||||
{
|
||||
@ -235,6 +236,10 @@ namespace osu.Game.Screens.Select
|
||||
}
|
||||
}
|
||||
},
|
||||
new SkinnableTargetContainer(SkinnableTarget.SongSelect)
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
},
|
||||
});
|
||||
|
||||
if (ShowFooter)
|
||||
|
@ -70,6 +70,14 @@ namespace osu.Game.Skinning
|
||||
case SkinnableTargetComponent target:
|
||||
switch (target.Target)
|
||||
{
|
||||
case SkinnableTarget.SongSelect:
|
||||
var songSelectComponents = new SkinnableTargetComponentsContainer(container =>
|
||||
{
|
||||
// do stuff when we need to.
|
||||
});
|
||||
|
||||
return songSelectComponents;
|
||||
|
||||
case SkinnableTarget.MainHUDComponents:
|
||||
var skinnableTargetWrapper = new SkinnableTargetComponentsContainer(container =>
|
||||
{
|
||||
|
@ -5,6 +5,7 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
public enum SkinnableTarget
|
||||
{
|
||||
MainHUDComponents
|
||||
MainHUDComponents,
|
||||
SongSelect
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user