Skip to content

Commit

Permalink
fixing da pr
Browse files Browse the repository at this point in the history
#242
and also under @NeeEoo suggestion ive deleted that string part in mainmenustate
please tell me if you find another alpha message instead of beta😭
  • Loading branch information
NexIsDumb committed Feb 9, 2024
1 parent b46d816 commit 8cabf1e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
4 changes: 4 additions & 0 deletions source/funkin/backend/system/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ import funkin.backend.assets.ModsFolder;

class Main extends Sprite
{
// make this empty once you guys are done with the project.
// good luck /gen <3 @crowplexus
public static final releaseCycle:String = "Beta";

public static var instance:Main;

public static var modToLoad:String = null;
Expand Down
6 changes: 1 addition & 5 deletions source/funkin/backend/system/framerate/CodenameBuildField.hx
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@ import openfl.text.TextField;
import funkin.backend.system.macros.GitCommitMacro;

class CodenameBuildField extends TextField {
// make this empty once you guys are done with the project.
// good luck /gen <3 @crowplexus
public static final releaseCycle:String = " Beta";

public function new() {
super();
defaultTextFormat = Framerate.textFormat;
autoSize = LEFT;
multiline = wordWrap = false;
text = 'Codename Engine${releaseCycle}\nCommit ${GitCommitMacro.commitNumber} (${GitCommitMacro.commitHash})';
text = 'Codename Engine ${Main.releaseCycle}\nCommit ${GitCommitMacro.commitNumber} (${GitCommitMacro.commitHash})';
}
}
3 changes: 2 additions & 1 deletion source/funkin/import.hx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#if !macro
import funkin.backend.system.Main;
import funkin.backend.assets.Paths;
import funkin.backend.MusicBeatState;
import funkin.backend.MusicBeatSubstate;
Expand Down Expand Up @@ -27,4 +28,4 @@ import flixel.group.FlxSpriteGroup.FlxTypedSpriteGroup;

using StringTools;
using funkin.backend.utils.CoolUtil;
#end
#end
2 changes: 1 addition & 1 deletion source/funkin/menus/BetaWarningState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class BetaWarningState extends MusicBeatState {

disclaimer = new FunkinText(16, titleAlphabet.y + titleAlphabet.height + 10, FlxG.width - 32, "", 32);
disclaimer.alignment = CENTER;
disclaimer.applyMarkup("This engine is still in a beta state. That means *majority of the features* are either *buggy* or *non finished*. If you find any bugs, please report them to the Codename Engine GitHub.\n\nPress ENTER to continue",
disclaimer.applyMarkup('This engine is still in a *${Main.releaseCycle}* state. That means *majority of the features* are either *buggy* or *non finished*. If you find any bugs, please report them to the Codename Engine GitHub.\n\nPress ENTER to continue',
[
new FlxTextFormatMarkerPair(new FlxTextFormat(0xFFFF4444), "*")
]
Expand Down
2 changes: 1 addition & 1 deletion source/funkin/menus/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class MainMenuState extends MusicBeatState

FlxG.camera.follow(camFollow, null, 0.06);

var versionShit:FunkinText = new FunkinText(5, FlxG.height - 2, 0, 'Codename Engine v${Application.current.meta.get('version')}\nAlpha: Commit ${funkin.backend.system.macros.GitCommitMacro.commitNumber} (${funkin.backend.system.macros.GitCommitMacro.commitHash})\n[TAB] Open Mods menu\n');
var versionShit:FunkinText = new FunkinText(5, FlxG.height - 2, 0, 'Codename Engine v${Application.current.meta.get('version')}\nCommit ${funkin.backend.system.macros.GitCommitMacro.commitNumber} (${funkin.backend.system.macros.GitCommitMacro.commitHash})\n[TAB] Open Mods menu\n');
versionShit.y -= versionShit.height;
versionShit.scrollFactor.set();
add(versionShit);
Expand Down
1 change: 1 addition & 0 deletions source/openfl/utils/Assets.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package openfl.utils;

import funkin.backend.system.Main;
import funkin.options.Options;
import funkin.backend.system.OptimizedBitmapData;
import openfl.utils._internal.Log;
Expand Down

0 comments on commit 8cabf1e

Please sign in to comment.