mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 10:33:22 +08:00
Move non-legacy conditional reasoning to migration code
This commit is contained in:
parent
0e920a61da
commit
01f3a2dd14
@ -199,13 +199,6 @@ namespace osu.Game.Tests.Skins
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// One may argue that if a LegacyHealthDisplay exists in a non-legacy skin,
|
|
||||||
// then it should be swapped with the mania variant similar to legacy skins.
|
|
||||||
// This is not simple to achieve as we have to be aware of the presence of
|
|
||||||
// the health display in the HUD layout while migrating the Playfield layout,
|
|
||||||
// which is impossible with the current structure of skin layout migration.
|
|
||||||
// Instead, don't touch any non-legacy skin and call it a day.
|
|
||||||
|
|
||||||
// HUD
|
// HUD
|
||||||
AddAssert("health display still in global HUD", () =>
|
AddAssert("health display still in global HUD", () =>
|
||||||
{
|
{
|
||||||
|
@ -343,7 +343,15 @@ namespace osu.Game.Skinning
|
|||||||
|
|
||||||
case GlobalSkinnableContainers.Playfield:
|
case GlobalSkinnableContainers.Playfield:
|
||||||
if (!isLegacySkin)
|
if (!isLegacySkin)
|
||||||
|
{
|
||||||
|
// One may argue that if a LegacyHealthDisplay exists in a non-legacy skin,
|
||||||
|
// then it should be swapped with the mania variant similar to legacy skins.
|
||||||
|
// This is not simple to achieve as we have to be aware of the presence of
|
||||||
|
// the health display in the HUD layout while migrating the Playfield layout,
|
||||||
|
// which is impossible with the current structure of skin layout migration.
|
||||||
|
// Instead, don't touch any non-legacy skin and call it a day.
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
resources.RealmAccess.Run(r =>
|
resources.RealmAccess.Run(r =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user