Skip to content

Commit

Permalink
Yeet commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
XAce1337manX committed Jul 12, 2024
1 parent 7047008 commit 7410d14
Showing 1 changed file with 0 additions and 122 deletions.
122 changes: 0 additions & 122 deletions Assets/__Scripts/Beatmap/Appearances/EventAppearanceSO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,127 +240,5 @@ public void SetEventAppearance(EventContainer e, bool final = true, bool boost =

e.UpdateMaterials();
}

// private SetLightEventAppearance(EventContainer e)
// {
// var color = Color.white;
//
// if (e.EventData.Value >= ColourManager.RgbintOffset)
// {
// color = ColourManager.ColourFromInt(e.EventData.Value);
// e.UpdateAlpha(final ? 0.9f : 0.6f, false);
// }
// else if (e.EventData.IsOff)
// {
// color = offColor;
// }
// else if (e.EventData.IsBlue)
// {
// color = boost ? BlueBoostColor : BlueColor;
// }
// else if (e.EventData.IsRed)
// {
// color = boost ? RedBoostColor : RedColor;
// }
// else if (e.EventData.IsWhite)
// {
// color = boost ? WhiteBoostColor : WhiteColor;
// }
//
// if (Settings.Instance.EmulateChromaLite && e.EventData.CustomColor != null && !e.EventData.IsOff
// && !e.EventData.IsWhite) // White overrides Chroma
// {
// color = e.EventData.CustomColor.Value;
// }
//
// // Display floatValue only where used
// if (e.EventData.IsLightEvent(envName) && e.EventData.Value != 0)
// {
// if (Settings.Instance.DisplayFloatValueText)
// {
// var text = e.EventData.IsTransition
// ? $"T{Mathf.RoundToInt(e.EventData.FloatValue * 100)}"
// : $"{Mathf.RoundToInt(e.EventData.FloatValue * 100)}";
// e.UpdateTextDisplay(true, text);
// }
//
// // for clarity sake, we don't want this to be the same as off color
// var clampedOffColor = Color.Lerp(offColor, color, 0.25f);
// color = Color.Lerp(clampedOffColor, color, e.EventData.FloatValue);
// e.UpdateTextColor(color == Color.white
// ? Color.black
// : Color.white); // TODO: this messes with text color in unintended part, need to fix
// }
//
// e.EventModel = Settings.Instance.EventModel;
// e.ChangeColor(color, false);
// e.ChangeBaseColor(Color.black, false);
// switch (e.EventData.Value)
// {
// case (int)LightValue.Off:
// e.ChangeColor(offColor, false);
// e.ChangeBaseColor(offColor, false);
// e.UpdateOffset(Vector3.zero, false);
// break;
// case (int)LightValue.BlueOn:
// case (int)LightValue.RedOn:
// case (int)LightValue.WhiteOn:
// e.UpdateOffset(Vector3.zero, false);
// e.ChangeBaseColor(color, false);
// break;
// case (int)LightValue.BlueFlash:
// case (int)LightValue.RedFlash:
// case (int)LightValue.WhiteFlash:
// e.UpdateOffset(e.FlashShaderOffset, false);
// break;
// case (int)LightValue.BlueFade:
// case (int)LightValue.RedFade:
// case (int)LightValue.WhiteFade:
// e.UpdateOffset(e.FadeShaderOffset, false);
// break;
// case (int)LightValue.BlueTransition:
// case (int)LightValue.RedTransition:
// case (int)LightValue.WhiteTransition:
// e.ChangeBaseColor(color, false);
// break;
// }
//
// e.ChangeFadeSize(e.DefaultFadeSize, false);
//
// // At this point, next Event must be a light event.
// Color? nextColor = null;
// var nextEvent = e.EventData.Next;
// if (!e.EventData.IsFade && !e.EventData.IsFlash && nextEvent != null && nextEvent.IsTransition)
// {
// if (nextEvent.IsBlue)
// {
// nextColor = boost ? BlueBoostColor : BlueColor;
// }
// else if (nextEvent.IsRed)
// {
// nextColor = boost ? RedBoostColor : RedColor;
// }
// else if (nextEvent.IsWhite)
// {
// nextColor = boost ? WhiteBoostColor : WhiteColor;
// }
//
// if (Settings.Instance.EmulateChromaLite && nextEvent.CustomColor != null && !nextEvent.IsWhite) // White overrides Chroma
// {
// nextColor = nextEvent.CustomColor.Value;
// }
//
// // for clarity sake, we don't want this to be the same as off color
// var clampedOffColor = Color.Lerp(offColor, nextColor.Value, 0.25f);
// nextColor = Color.Lerp(clampedOffColor, nextColor.Value, nextEvent.FloatValue);
// }
//
// if (Settings.Instance.VisualizeChromaGradients)
// {
// e.UpdateGradientRendering(color, nextColor, nextEvent?.CustomEasing ?? "easeLinear");
// }
//
// e.UpdateMaterials();
// }
}
}

0 comments on commit 7410d14

Please sign in to comment.