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 Nov 25, 2024
2 parents 2ec4332 + a2a12f1 commit ef0a2c0
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ latest/windows/haxe/
.haxelib/
pages/
docs/doc.xml
mods/Baldi's Basics in Funkin'/
mods/*
!mods/readme.txt
4 changes: 3 additions & 1 deletion source/funkin/backend/scripting/HScript.hx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ class HScript extends Script {
var code = Assets.getText(p);
var expr:Expr = null;
try {
if (code != null && code.trim() != "")
if (code != null && code.trim() != "") {
parser.line = 1; // fun fact: this is all you need to reuse a parser without issues. all the other vars get reset on parse.
expr = parser.parseString(code, cl.join("/") + "." + hxExt);
}
} catch(e:Error) {
_errorHandler(e);
} catch(e) {
Expand Down
1 change: 1 addition & 0 deletions source/funkin/editors/charter/ChartDataScreen.hx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class ChartDataScreen extends UISubstateWindow {
public override function create() {
FlxG.sound.music.pause();
Charter.instance.vocals.pause();
for (strumLine in Charter.instance.strumLines.members) strumLine.vocals.pause();

winTitle = 'Chart Properties';
winWidth = 420; winHeight = 230; // guys look, the funny numbers!
Expand Down
1 change: 1 addition & 0 deletions source/funkin/editors/charter/CharterEventScreen.hx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class CharterEventScreen extends UISubstateWindow {

FlxG.sound.music.pause(); // prevent the song from continuing
Charter.instance.vocals.pause();
for (strumLine in Charter.instance.strumLines.members) strumLine.vocals.pause();

events = chartEvent.events.copy();

Expand Down
1 change: 1 addition & 0 deletions source/funkin/editors/charter/CharterMetaDataScreen.hx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class CharterMetaDataScreen extends UISubstateWindow {

FlxG.sound.music.pause();
Charter.instance.vocals.pause();
for (strumLine in Charter.instance.strumLines.members) strumLine.vocals.pause();

function addLabelOn(ui:UISprite, text:String)
add(new UIText(ui.x, ui.y - 24, 0, text));
Expand Down
1 change: 1 addition & 0 deletions source/funkin/editors/charter/CharterNoteTypesList.hx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class CharterNoteTypesList extends UISubstateWindow {
public override function create() {
FlxG.sound.music.pause();
Charter.instance.vocals.pause();
for (strumLine in Charter.instance.strumLines.members) strumLine.vocals.pause();

winTitle = 'Note Types List Editor';
winWidth = 380; winHeight = 390;
Expand Down
1 change: 1 addition & 0 deletions source/funkin/editors/charter/CharterStrumlineScreen.hx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class CharterStrumlineScreen extends UISubstateWindow {

FlxG.sound.music.pause();
Charter.instance.vocals.pause();
for (strumLine in Charter.instance.strumLines.members) strumLine.vocals.pause();

super.create();

Expand Down
2 changes: 1 addition & 1 deletion source/funkin/game/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ class PlayState extends MusicBeatState
startingPos,
strumLine.strumScale == null ? 1 : strumLine.strumScale,
strumLine.type == 2 || (!coopMode && !((strumLine.type == 1 && !opponentMode) || (strumLine.type == 0 && opponentMode))),
strumLine.type != 1, coopMode ? (strumLine.type == 1 ? controlsP1 : controlsP2) : controls,
strumLine.type != 1, coopMode ? ((strumLine.type == 1) != opponentMode ? controlsP1 : controlsP2) : controls,
strumLine.vocalsSuffix
);
strLine.cameras = [camHUD];
Expand Down

0 comments on commit ef0a2c0

Please sign in to comment.