1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-08 06:57:25 +08:00
osu-lazer/osu.Game/Skinning/LegacyManiaSkinConfigurationLookup.cs

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

77 lines
2.2 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 22:14:30 +08:00
LightImage,
LeftLineWidth,
RightLineWidth,
2020-03-31 11:17:44 +08:00
HitPosition,
ScorePosition,
LightPosition,
2022-10-06 17:03:48 +08:00
StagePaddingTop,
StagePaddingBottom,
2020-03-31 11:26:31 +08:00
HitTargetImage,
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,
WidthForNoteHeightScale,
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,
ColumnBackgroundColour,
2020-04-07 22:37:30 +08:00
ColumnLightColour,
2020-04-08 14:36:07 +08:00
MinimumColumnWidth,
LeftStageImage,
RightStageImage,
BottomStageImage,
Hit300g,
Hit300,
Hit200,
Hit100,
Hit50,
Hit0,
KeysUnderNotes,
}
}