From 6ff3887f51a8288d7b2e6218947c01c31a831af6 Mon Sep 17 00:00:00 2001 From: bigkahuna443 <13278973+bigkahuna443@users.noreply.github.com> Date: Thu, 26 Dec 2024 16:04:11 -0500 Subject: [PATCH] Use new Everest photosensitivity optionsq Edit dash code controller to check for the new text highlighting setting instead of the general photosensitivity setting. Requires latest stable Everest --- Code/DashCodeDisplay.cs | 3 ++- everest.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Code/DashCodeDisplay.cs b/Code/DashCodeDisplay.cs index a324fe9..3ae1930 100644 --- a/Code/DashCodeDisplay.cs +++ b/Code/DashCodeDisplay.cs @@ -1,5 +1,6 @@ using Celeste; using Celeste.Mod; +using Celeste.Mod.Core; using Celeste.Mod.Entities; using Microsoft.Xna.Framework; using Monocle; @@ -121,7 +122,7 @@ public override void Render() { float s = Ease.ExpoInOut(currentCodeArrowsAnim[i]) * 0.75f, r = 0; if (i < codePosition) { - c = Settings.Instance.DisableFlashes ? correctA : Color.Lerp(correctA, correctB, Calc.SineMap(Scene.RawTimeActive * 20f - i / 2f, 0f, 1f)); + c = CoreModule.Settings.AllowTextHighlight ? Color.Lerp(correctA, correctB, Calc.SineMap(Scene.RawTimeActive * 20f - i / 2f, 0f, 1f)) : correctA; } if (i + 1 == codePosition) { s += wiggler.Value * 0.25f; diff --git a/everest.yaml b/everest.yaml index ba5792c..8abd3fa 100644 --- a/everest.yaml +++ b/everest.yaml @@ -3,7 +3,7 @@ DLL: Code/bin/vitmod.dll Dependencies: - Name: EverestCore - Version: 1.4607.0 + Version: 1.5184.0 OptionalDependencies: - Name: FrostHelper Version: 1.21.2