Skip to content

Commit

Permalink
Merge branch 'FNF-CNE-Devs:main' into cne-pr
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 authored Oct 14, 2024
2 parents cd479b1 + 0db0022 commit 03043fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions assets/data/dialogue/characters/senpai.hx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function postHide() {
if(curTween != null) {
if(animation.curAnim?.name == 'angry-show') curTween.cancel();
if(getAnimName() == 'angry-show') curTween.cancel();
else curTween.percent = 1;
}
}
}
8 changes: 5 additions & 3 deletions source/funkin/menus/credits/CreditsCodename.hx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ using StringTools;
class CreditsCodename extends funkin.options.OptionsScreen {
public var error:Bool = false;
public var author:String = "FNF-CNE-Devs";
public var totalContributions:Int = 0;

public var mainDevCol:FlxColor = 0xFF9C35D5;
public var minContrCol:FlxColor = 0xFFB4A7DA;
public var totalContributions:Int = 0;
public var contribFormats:Array<FlxTextFormatMarkerPair> = [];

public override function new()
{
Expand Down Expand Up @@ -58,15 +60,15 @@ class CreditsCodename extends funkin.options.OptionsScreen {
if(parent == null || parent.treeParent == null) return;
var text:String = parent.treeParent.pathDesc.text;
parent.treeParent.pathDesc.text = "";
parent.treeParent.pathDesc.applyMarkup(text, [
parent.treeParent.pathDesc.applyMarkup(text, contribFormats = [
new FlxTextFormatMarkerPair(new FlxTextFormat(mainDevCol), '*'),
new FlxTextFormatMarkerPair(new FlxTextFormat(FlxColor.interpolate(minContrCol, mainDevCol, Options.contributors[curSelected].contributions / totalContributions)), '~')
]);
}

override function close() {
super.close();
parent.treeParent.pathDesc.clearFormats();
for (frmt in contribFormats) parent.treeParent.pathDesc.removeFormat(frmt.format);
}

public function checkUpdate():Bool {
Expand Down

0 comments on commit 03043fc

Please sign in to comment.