Skip to content

Commit

Permalink
1.9.4 pre-release 1
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealJake12 committed Apr 22, 2024
1 parent d3ea577 commit 2a90797
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion source/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ using StringTools;
class MainMenuState extends MusicBeatState
{
public static var nightly:String = "";
public static var kecVer:String = 'Kade Engine Community 1.9.3';
public static var kecVer:String = 'Kade Engine Community 1.9.4 PRE-RELEASE 1';
public static var keVer:String = "Kade Engine 1.8.1";
public static var curSelected:Int = 0;
public static var freakyPlaying:Bool = true;
Expand Down
10 changes: 2 additions & 8 deletions source/OutdatedSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class OutdatedSubState extends MusicBeatState
+ "\n\nPress Space to view the full changelog and update\nor ENTER to ignore this",
32);

if (MainMenuState.nightly != "")
if (MainMenuState.kecVer.contains("PRE-RELEASE"))
txt.text = "You are on\n"
+ MainMenuState.kecVer
+ "\nWhich is a PRE-RELEASE BUILD!"
Expand All @@ -65,12 +65,6 @@ class OutdatedSubState extends MusicBeatState
+ "\n\nPress Space to view the full changelog and update\nor ENTER to ignore this",
32);

if (MainMenuState.nightly != "")
txt.text = "You are on\n"
+ MainMenuState.kecVer
+ "\nWhich is a PRE-RELEASE BUILD!"
+ "\n\nReport all bugs to the author of the pre-release.\nSpace/Escape ignores this.";

mom.setFormat("VCR OSD Mono", 23, FlxColor.fromRGB(200, 200, 200), CENTER);
mom.borderColor = FlxColor.BLACK;
mom.borderSize = 3;
Expand Down Expand Up @@ -102,7 +96,7 @@ class OutdatedSubState extends MusicBeatState

override function update(elapsed:Float)
{
if (FlxG.keys.justPressed.SPACE && MainMenuState.nightly == "")
if (FlxG.keys.justPressed.SPACE && !MainMenuState.kecVer.contains("PRE-RELEASE"))
{
fancyOpenURL("https://therealjake12.github.io/Kade-Engine-Community/changelogs/changelog-" + needVer);
}
Expand Down
5 changes: 4 additions & 1 deletion source/TitleState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,10 @@ class TitleState extends MusicBeatState
returnedData[1] = data.substring(data.indexOf('-'), data.length);
if (!MainMenuState.kecVer.contains(returnedData[0].trim()) && !OutdatedSubState.leftState)
{
Debug.logTrace('The Latest Github Version Is ' + returnedData[0] + ' While Your Version Is ' + MainMenuState.kecVer);
if (!MainMenuState.kecVer.contains("PRE-RELEASE"))
Debug.logTrace('The Latest Github Version Is ' + returnedData[0] + ' While Your Version Is ' + MainMenuState.kecVer);
else
Debug.logTrace('You Are On A Pre-Release Build. Report Any Bugs You Encounter. Version : ${MainMenuState.kecVer}');
OutdatedSubState.needVer = returnedData[0];
OutdatedSubState.currChanges = returnedData[1];
MusicBeatState.switchState(new OutdatedSubState());
Expand Down
1 change: 1 addition & 0 deletions source/debug/ChartingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1422,6 +1422,7 @@ class ChartingState extends MusicBeatState
curRenderedNotes.remove(note, true);

curSelectedNote = null;
strumTime.text = "0";

if (note.sustainLength > 0)
curRenderedSustains.remove(note.noteCharterObject, true);
Expand Down

0 comments on commit 2a90797

Please sign in to comment.