osu/osu.Game/Skinning/LegacyManiaSkinConfigurationLookup.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

78 lines
2.3 KiB
C#
Raw Normal View History

// 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
{
/// <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>
public class LegacyManiaSkinConfigurationLookup
{
/// <summary>
/// Total columns across all stages.
/// </summary>
public readonly int TotalColumns;
/// <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;
public readonly LegacyManiaSkinConfigurationLookups Lookup;
public LegacyManiaSkinConfigurationLookup(int totalColumns, LegacyManiaSkinConfigurationLookups lookup, int? columnIndex = null)
{
TotalColumns = totalColumns;
Lookup = lookup;
ColumnIndex = columnIndex;
}
}
public enum LegacyManiaSkinConfigurationLookups
{
ColumnWidth,
ColumnSpacing,
2020-03-30 14:14:30 +00:00
LightImage,
LeftLineWidth,
RightLineWidth,
2020-03-31 03:17:44 +00:00
HitPosition,
ScorePosition,
LightPosition,
2022-10-06 09:03:48 +00:00
StagePaddingTop,
StagePaddingBottom,
2020-03-31 03:26:31 +00:00
HitTargetImage,
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,
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,
ColumnBackgroundColour,
2020-04-07 14:37:30 +00:00
ColumnLightColour,
2020-04-08 06:36:07 +00:00
MinimumColumnWidth,
LeftStageImage,
RightStageImage,
BottomStageImage,
Hit300g,
Hit300,
Hit200,
Hit100,
Hit50,
Hit0,
KeysUnderNotes,
NoteBodyStyle
}
}