Change some strings to comply with the newest version (#242)

* Update README.md

* Update CodenameBuildField.hx

* Update MainMenuState.hx

* Update CodenameBuildField.hx

* Delete unused Main.hx file
This commit is contained in:
crowplexus
2024-02-09 13:05:45 +01:00
committed by GitHub
parent 6d73a9ef4b
commit b46d816e00
4 changed files with 12 additions and 19 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
## PLEASE NOTE - THIS IS STILL IN A BETA STATE
### Mods created with beta versions of Codename may not be compatible with the release version
Known issues in the alpha:
Known issues in the beta:
- Some options are missing
- Week 6 still have no dialogue
-1
View File
@@ -1 +0,0 @@
typedef Main = funkin.backend.system.Main;
@@ -6,11 +6,15 @@ 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 Beta\nCommit ${GitCommitMacro.commitNumber} (${GitCommitMacro.commitHash})';
text = 'Codename Engine${releaseCycle}\nCommit ${GitCommitMacro.commitNumber} (${GitCommitMacro.commitHash})';
}
}
}
+5 -15
View File
@@ -77,8 +77,8 @@ 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');
versionShit.scrollFactor.set();
versionShit.y -= versionShit.height;
versionShit.scrollFactor.set();
add(versionShit);
changeItem();
@@ -165,20 +165,10 @@ class MainMenuState extends MusicBeatState
if (event.cancelled) return;
switch (daChoice)
{
case 'story mode':
FlxG.switchState(new StoryMenuState());
trace("Story Menu Selected");
case 'freeplay':
FlxG.switchState(new FreeplayState());
trace("Freeplay Menu Selected");
case 'donate':
FlxG.switchState(new CreditsMain());
trace("Credits Menu Selected");
case 'options':
FlxG.switchState(new OptionsMenu());
case 'story mode': FlxG.switchState(new StoryMenuState());
case 'freeplay': FlxG.switchState(new FreeplayState());
case 'donate': FlxG.switchState(new CreditsMain());
case 'options': FlxG.switchState(new OptionsMenu());
}
});
}