Skip to content

Commit

Permalink
Change some strings to comply with the newest version (#242)
Browse files Browse the repository at this point in the history
* Update README.md

* Update CodenameBuildField.hx

* Update MainMenuState.hx

* Update CodenameBuildField.hx

* Delete unused Main.hx file
  • Loading branch information
crowplexus authored Feb 9, 2024
1 parent 6d73a9e commit b46d816
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion source/Main.hx

This file was deleted.

8 changes: 6 additions & 2 deletions source/funkin/backend/system/framerate/CodenameBuildField.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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})';
}
}
}
20 changes: 5 additions & 15 deletions source/funkin/menus/MainMenuState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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());
}
});
}
Expand Down

0 comments on commit b46d816

Please sign in to comment.