Skip to content

Commit

Permalink
Redar13 update
Browse files Browse the repository at this point in the history
  • Loading branch information
PurSnake committed Sep 12, 2024
1 parent be47d28 commit 9cdc0bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions source/flixel/FlxCamera.hx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class FlxCamera extends FlxBasic
public var scrollAngle(default, set):Float;

/**
* Fixes camera's flashSprite fully shaking, if Main.hx extends FlxGame
* Fixes camera's flashSprite fully shaking, if Main.hx extends FlxGame
*/
public var shakeFix:Bool = true;

Expand Down Expand Up @@ -1872,12 +1872,13 @@ class FlxCamera extends FlxBasic
if (FxAlpha == 0)
return;

var targetGraphics:Graphics = (graphics == null) ? canvas.graphics : graphics;

final bounds = __get__bounds();
final targetGraphics = graphics == null ? canvas.graphics : graphics;
targetGraphics.overrideBlendMode(null); // https://github.com/richTrash21/fade-bug-test // thx
targetGraphics.beginFill(Color, FxAlpha);
// i'm drawing rect with these parameters to avoid light lines at the top and left of the camera,
// which could appear while cameras fading
targetGraphics.drawRect(viewMarginLeft - 1, viewMarginTop - 1, viewWidth + 2, viewHeight + 2);
targetGraphics.drawRect(bounds.x - 1, bounds.y - 1, bounds.width + 2, bounds.height + 2);
targetGraphics.endFill();
}
}
Expand Down
2 changes: 1 addition & 1 deletion source/funkin/play/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1854,7 +1854,7 @@ class PlayState extends MusicBeatSubState
}

// String that contains the mode defined here so it isn't necessary to call changePresence for each mode
detailsText = PlayStatePlaylist.isStoryMode ? 'Story Mode: Week ${PlayStatePlaylist.campaignId}' : 'Freeplay';
detailsText = PlayStatePlaylist.isStoryMode ? 'Story Mode: Level ${PlayStatePlaylist.campaignId}' : 'Freeplay';
detailsPausedText = 'Paused - $detailsText';

// Updating Discord Rich Presence.
Expand Down

0 comments on commit 9cdc0bb

Please sign in to comment.