2020-03-30 14:21:10 +00: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 05:19:00 +00: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 14:21:10 +00:00
|
|
|
public class LegacyManiaSkinConfigurationLookup
|
|
|
|
{
|
2022-10-05 10:21:38 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Total columns across all stages.
|
|
|
|
/// </summary>
|
|
|
|
public readonly int TotalColumns;
|
|
|
|
|
2022-10-06 05:26:29 +00: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 14:21:10 +00:00
|
|
|
|
2022-10-06 05:19:00 +00:00
|
|
|
public readonly LegacyManiaSkinConfigurationLookups Lookup;
|
|
|
|
|
2022-10-06 05:26:29 +00:00
|
|
|
public LegacyManiaSkinConfigurationLookup(int totalColumns, LegacyManiaSkinConfigurationLookups lookup, int? columnIndex = null)
|
2020-03-30 14:21:10 +00:00
|
|
|
{
|
2022-10-05 10:21:38 +00:00
|
|
|
TotalColumns = totalColumns;
|
2020-03-30 14:21:10 +00:00
|
|
|
Lookup = lookup;
|
2022-10-06 05:26:29 +00:00
|
|
|
ColumnIndex = columnIndex;
|
2020-03-30 14:21:10 +00:00
|
|
|
}
|
2023-09-06 08:37:17 +00:00
|
|
|
|
|
|
|
public override string ToString() => $"[{nameof(LegacyManiaSkinConfigurationLookup)} lookup:{Lookup} col:{ColumnIndex} totalcols:{TotalColumns}]";
|
2020-03-30 14:21:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public enum LegacyManiaSkinConfigurationLookups
|
|
|
|
{
|
2020-04-01 04:38:03 +00:00
|
|
|
ColumnWidth,
|
|
|
|
ColumnSpacing,
|
2020-03-30 14:14:30 +00:00
|
|
|
LightImage,
|
|
|
|
LeftLineWidth,
|
2020-03-31 06:23:59 +00:00
|
|
|
RightLineWidth,
|
2020-03-31 03:17:44 +00:00
|
|
|
HitPosition,
|
2020-12-10 14:11:08 +00:00
|
|
|
ScorePosition,
|
2020-04-01 07:05:52 +00:00
|
|
|
LightPosition,
|
2022-10-06 09:03:48 +00:00
|
|
|
StagePaddingTop,
|
|
|
|
StagePaddingBottom,
|
2020-03-31 03:26:31 +00:00
|
|
|
HitTargetImage,
|
2020-03-31 06:23:59 +00:00
|
|
|
ShowJudgementLine,
|
2020-03-31 02:23:33 +00:00
|
|
|
KeyImage,
|
2020-03-31 06:29:25 +00:00
|
|
|
KeyImageDown,
|
|
|
|
NoteImage,
|
|
|
|
HoldNoteHeadImage,
|
2020-03-31 07:42:35 +00:00
|
|
|
HoldNoteTailImage,
|
|
|
|
HoldNoteBodyImage,
|
2020-08-26 11:21:41 +00:00
|
|
|
HoldNoteLightImage,
|
|
|
|
HoldNoteLightScale,
|
2023-02-10 10:18:41 +00:00
|
|
|
WidthForNoteHeightScale,
|
2020-04-02 05:29:16 +00:00
|
|
|
ExplosionImage,
|
2020-04-02 14:59:53 +00:00
|
|
|
ExplosionScale,
|
2020-04-07 07:50:08 +00:00
|
|
|
ColumnLineColour,
|
|
|
|
JudgementLineColour,
|
2020-04-07 07:53:29 +00:00
|
|
|
ColumnBackgroundColour,
|
2020-04-07 14:37:30 +00:00
|
|
|
ColumnLightColour,
|
2020-04-08 06:36:07 +00:00
|
|
|
MinimumColumnWidth,
|
|
|
|
LeftStageImage,
|
|
|
|
RightStageImage,
|
2020-06-12 13:22:22 +00:00
|
|
|
BottomStageImage,
|
|
|
|
Hit300g,
|
|
|
|
Hit300,
|
|
|
|
Hit200,
|
|
|
|
Hit100,
|
|
|
|
Hit50,
|
|
|
|
Hit0,
|
2020-08-26 06:37:16 +00:00
|
|
|
KeysUnderNotes,
|
2023-10-18 17:56:17 +00:00
|
|
|
NoteBodyStyle,
|
|
|
|
LightFramePerSecond
|
2020-03-30 14:21:10 +00:00
|
|
|
}
|
|
|
|
}
|