1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 02:32:55 +08:00

Add basic song select setup for skinnability

This commit is contained in:
Dean Herbert 2022-03-07 23:26:27 +09:00
parent 8d85723a62
commit c6aa32a003
3 changed files with 15 additions and 1 deletions

View File

@ -37,6 +37,7 @@ using osu.Game.Graphics.UserInterface;
using System.Diagnostics; using System.Diagnostics;
using osu.Game.Screens.Play; using osu.Game.Screens.Play;
using osu.Game.Database; using osu.Game.Database;
using osu.Game.Skinning;
namespace osu.Game.Screens.Select namespace osu.Game.Screens.Select
{ {
@ -235,6 +236,10 @@ namespace osu.Game.Screens.Select
} }
} }
}, },
new SkinnableTargetContainer(SkinnableTarget.SongSelect)
{
RelativeSizeAxes = Axes.Both,
},
}); });
if (ShowFooter) if (ShowFooter)

View File

@ -70,6 +70,14 @@ namespace osu.Game.Skinning
case SkinnableTargetComponent target: case SkinnableTargetComponent target:
switch (target.Target) switch (target.Target)
{ {
case SkinnableTarget.SongSelect:
var songSelectComponents = new SkinnableTargetComponentsContainer(container =>
{
// do stuff when we need to.
});
return songSelectComponents;
case SkinnableTarget.MainHUDComponents: case SkinnableTarget.MainHUDComponents:
var skinnableTargetWrapper = new SkinnableTargetComponentsContainer(container => var skinnableTargetWrapper = new SkinnableTargetComponentsContainer(container =>
{ {

View File

@ -5,6 +5,7 @@ namespace osu.Game.Skinning
{ {
public enum SkinnableTarget public enum SkinnableTarget
{ {
MainHUDComponents MainHUDComponents,
SongSelect
} }
} }