Skip to content

Commit

Permalink
feat: don't change the info text color if 'Masked Opacity' is 10 when…
Browse files Browse the repository at this point in the history
… colliding
  • Loading branch information
DemoJameson committed Jan 18, 2024
1 parent c9f5d77 commit 99fa600
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private static void DrawInfo(Scene scene) {

Rectangle bgRect = new((int) x, (int) y, (int) (Size.X + padding * 2), (int) (Size.Y + padding * 2));

if (!Hotkeys.InfoHud.Check && (scene.Paused && !Celeste.Input.MenuJournal.Check || scene is Level level && CollidePlayer(level, bgRect))) {
if (TasSettings.InfoMaskedOpacity < 10 && !Hotkeys.InfoHud.Check && (scene.Paused && !Celeste.Input.MenuJournal.Check || scene is Level level && CollidePlayer(level, bgRect))) {
alpha *= TasSettings.InfoMaskedOpacity / 10f;
infoAlpha *= alpha;
}
Expand Down

0 comments on commit 99fa600

Please sign in to comment.