2020-03-30 22:21:10 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
namespace osu.Game.Skinning
|
|
|
|
{
|
2022-10-06 13:19:00 +08:00
|
|
|
/// <summary>
|
|
|
|
/// This class exists for the explicit purpose of ferrying information from ManiaBeatmap in a way LegacySkin can use it.
|
|
|
|
/// This is because half of the mania legacy skin implementation is in LegacySkin (osu.Game project) which doesn't have visibility
|
|
|
|
/// over ManiaBeatmap / StageDefinition.
|
|
|
|
/// </summary>
|
2020-03-30 22:21:10 +08:00
|
|
|
public class LegacyManiaSkinConfigurationLookup
|
|
|
|
{
|
2022-10-05 18:21:38 +08:00
|
|
|
/// <summary>
|
|
|
|
/// Total columns across all stages.
|
|
|
|
/// </summary>
|
|
|
|
public readonly int TotalColumns;
|
|
|
|
|
2022-10-06 13:26:29 +08:00
|
|
|
/// <summary>
|
|
|
|
/// The column which is being looked up.
|
|
|
|
/// May be null if the configuration does not apply to a specific column.
|
|
|
|
/// Note that this is the absolute index across all stages.
|
|
|
|
/// </summary>
|
|
|
|
public readonly int? ColumnIndex;
|
2020-03-30 22:21:10 +08:00
|
|
|
|
2022-10-06 13:19:00 +08:00
|
|
|
public readonly LegacyManiaSkinConfigurationLookups Lookup;
|
|
|
|
|
2022-10-06 13:26:29 +08:00
|
|
|
public LegacyManiaSkinConfigurationLookup(int totalColumns, LegacyManiaSkinConfigurationLookups lookup, int? columnIndex = null)
|
2020-03-30 22:21:10 +08:00
|
|
|
{
|
2022-10-05 18:21:38 +08:00
|
|
|
TotalColumns = totalColumns;
|
2020-03-30 22:21:10 +08:00
|
|
|
Lookup = lookup;
|
2022-10-06 13:26:29 +08:00
|
|
|
ColumnIndex = columnIndex;
|
2020-03-30 22:21:10 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public enum LegacyManiaSkinConfigurationLookups
|
|
|
|
{
|
2020-04-01 12:38:03 +08:00
|
|
|
ColumnWidth,
|
|
|
|
ColumnSpacing,
|
2020-03-30 22:14:30 +08:00
|
|
|
LightImage,
|
|
|
|
LeftLineWidth,
|
2020-03-31 14:23:59 +08:00
|
|
|
RightLineWidth,
|
2020-03-31 11:17:44 +08:00
|
|
|
HitPosition,
|
2020-12-10 22:11:08 +08:00
|
|
|
ScorePosition,
|
2020-04-01 15:05:52 +08:00
|
|
|
LightPosition,
|
2022-10-06 17:03:48 +08:00
|
|
|
StagePaddingTop,
|
|
|
|
StagePaddingBottom,
|
2020-03-31 11:26:31 +08:00
|
|
|
HitTargetImage,
|
2020-03-31 14:23:59 +08:00
|
|
|
ShowJudgementLine,
|
2020-03-31 10:23:33 +08:00
|
|
|
KeyImage,
|
2020-03-31 14:29:25 +08:00
|
|
|
KeyImageDown,
|
|
|
|
NoteImage,
|
|
|
|
HoldNoteHeadImage,
|
2020-03-31 15:42:35 +08:00
|
|
|
HoldNoteTailImage,
|
|
|
|
HoldNoteBodyImage,
|
2020-08-26 19:21:41 +08:00
|
|
|
HoldNoteLightImage,
|
|
|
|
HoldNoteLightScale,
|
2020-04-02 13:29:16 +08:00
|
|
|
ExplosionImage,
|
2020-04-02 22:59:53 +08:00
|
|
|
ExplosionScale,
|
2020-04-07 15:50:08 +08:00
|
|
|
ColumnLineColour,
|
|
|
|
JudgementLineColour,
|
2020-04-07 15:53:29 +08:00
|
|
|
ColumnBackgroundColour,
|
2020-04-07 22:37:30 +08:00
|
|
|
ColumnLightColour,
|
2020-04-08 14:36:07 +08:00
|
|
|
MinimumColumnWidth,
|
|
|
|
LeftStageImage,
|
|
|
|
RightStageImage,
|
2020-06-12 21:22:22 +08:00
|
|
|
BottomStageImage,
|
|
|
|
Hit300g,
|
|
|
|
Hit300,
|
|
|
|
Hit200,
|
|
|
|
Hit100,
|
|
|
|
Hit50,
|
|
|
|
Hit0,
|
2020-08-26 14:37:16 +08:00
|
|
|
KeysUnderNotes,
|
2020-03-30 22:21:10 +08:00
|
|
|
}
|
|
|
|
}
|