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 edb71d1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ 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;
infoAlpha = alpha;
}

Draw.SpriteBatch.Begin();
Expand Down

0 comments on commit edb71d1

Please sign in to comment.