Skip to content

Commit

Permalink
alright updating to 1.29.0
Browse files Browse the repository at this point in the history
final changes:

the change value speed is now more specific.. just felt there was an issue with that
the donate button now redirects you to the js engine github instead of the fnf itch.io page
  • Loading branch information
JordanSantiagoYT committed Jul 12, 2024
1 parent 21e7431 commit 412a333
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions source/GameplayChangersSubstate.hx
Original file line number Diff line number Diff line change
Expand Up @@ -370,16 +370,17 @@ class GameplayChangersSubstate extends MusicBeatSubstate
curOption.change();
FlxG.sound.play(Paths.sound('scrollMenu'));
} else if(curOption.type != 'string') {
holdValue = Math.max(curOption.minValue, Math.min(curOption.maxValue, holdValue + curOption.scrollSpeed * elapsed * (controls.UI_LEFT ? -1 : 1)));

holdValue += curOption.scrollSpeed * elapsed * (controls.UI_LEFT ? -1 : 1);
if (holdValue < curOption.minValue) holdValue = curOption.minValue;
if (holdValue > curOption.maxValue) holdValue = curOption.maxValue;

switch(curOption.type)
{
case 'int':
curOption.setValue(Math.round(holdValue));

case 'float' | 'percent':
var blah:Float = Math.max(curOption.minValue, Math.min(curOption.maxValue, holdValue + curOption.changeValue - (holdValue % curOption.changeValue)));
curOption.setValue(FlxMath.roundDecimal(blah, curOption.decimals));
curOption.setValue(FlxMath.roundDecimal(holdValue, curOption.decimals));
}
updateTextFrom(curOption);
curOption.change();
Expand Down
4 changes: 2 additions & 2 deletions source/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ using StringTools;

class MainMenuState extends MusicBeatState
{
public static var psychEngineJSVersion:String = '1.28.0'; //This is also used for Discord RPC
public static var psychEngineJSVersion:String = '1.29.0'; //This is also used for Discord RPC
public static var psychEngineVersion:String = '0.6.3'; //This is also used for Discord RPC
public static var curSelected:Int = 0;

Expand Down Expand Up @@ -293,7 +293,7 @@ class MainMenuState extends MusicBeatState
{
if (optionShit[curSelected] == 'donate')
{
CoolUtil.browserLoad('https://ninja-muffin24.itch.io/funkin');
CoolUtil.browserLoad('https://github.com/JordanSantiagoYT/FNF-PsychEngine-NoBotplayLag');
}
else
{
Expand Down

0 comments on commit 412a333

Please sign in to comment.