Пример #1
0
        private NoteSideData LoadNoteSideData(NoteSideDataSpec spec, NoteSideData fallback)
        {
            if (spec == null)
            {
                return(fallback);
            }
            NoteSideData noteSideData = new NoteSideData();

            noteSideData.TapNote = LoadLabelledWithFallback <Sprite>(Path.Combine(SkinFolderPath, "Playfield", "Note", "TapNote"), spec.tapnote, ".png", (path) =>
            {
                return(LoadPivotSprite(path, new Vector2(0.5f, 0.0f), externalSkinDataObjects));
            }, fallback.TapNote);
            noteSideData.HoldNote = LoadLabelledWithFallback <Sprite>(Path.Combine(SkinFolderPath, "Playfield", "Note", "HoldNote"), spec.holdnote, ".png", (path) =>
            {
                return(LoadPivotSprite(path, new Vector2(0.5f, 0.0f), externalSkinDataObjects));
            }, fallback.HoldNote);
            noteSideData.HoldNoteHighlight = LoadLabelledWithFallback <Sprite>(Path.Combine(SkinFolderPath, "Playfield", "Note", "HoldNote"), spec.holdnoteHighlight, ".png", (path) =>
            {
                return(LoadPivotSprite(path, new Vector2(0.5f, 0.0f), externalSkinDataObjects));
            }, fallback.HoldNoteHighlight);
            noteSideData.ArcTap = LoadLabelledWithFallback <Texture2D>(Path.Combine(SkinFolderPath, "Playfield", "Note", "ArcTap"), spec.arctap, ".png", (path) =>
            {
                return(LoadTexture2D(path, externalSkinDataObjects));
            }, fallback.ArcTap);
            noteSideData.ConnectionLineColor = LoadColor(spec.connectionLineColor, fallback.ConnectionLineColor);
            noteSideData.ArcRedLow           = LoadColor(spec.arcRedLow, fallback.ArcRedLow);
            noteSideData.ArcBlueLow          = LoadColor(spec.arcBlueLow, fallback.ArcBlueLow);
            noteSideData.ArcGreenLow         = LoadColor(spec.arcGreenLow, fallback.ArcGreenLow);
            noteSideData.ArcRedHigh          = LoadColor(spec.arcRedHigh, fallback.ArcRedHigh);
            noteSideData.ArcBlueHigh         = LoadColor(spec.arcBlueHigh, fallback.ArcBlueHigh);
            noteSideData.ArcGreenHigh        = LoadColor(spec.arcGreenHigh, fallback.ArcGreenHigh);
            noteSideData.ArcVoid             = LoadColor(spec.arcVoid, fallback.ArcVoid);

            return(noteSideData);
        }
 private void ShowNoteSideData(NoteSideData data)
 {
     GUILayout.Label($"      TapNote:{data.TapNote.label}");
     GUILayout.Label($"      HoldNote:{data.HoldNote.label}");
     GUILayout.Label($"      HoldNoteHighlight:{data.HoldNoteHighlight.label}");
     GUILayout.Label($"      ArcTap:{data.ArcTap.label}");
     GUILayout.Label($"      ConnectionLineColor:{data.ConnectionLineColor}");
     GUILayout.Label($"      ArcRedLow:{data.ArcRedLow}");
     GUILayout.Label($"      ArcBlueLow:{data.ArcBlueLow}");
     GUILayout.Label($"      ArcGreenLow:{data.ArcGreenLow}");
     GUILayout.Label($"      ArcRedHigh:{data.ArcRedHigh}");
     GUILayout.Label($"      ArcBlueHigh:{data.ArcBlueHigh}");
     GUILayout.Label($"      ArcGreenHigh:{data.ArcGreenHigh}");
     GUILayout.Label($"      ArcVoid:{data.ArcVoid}");
 }