Added beta warning to rpc

This commit is contained in:
NeeEoo
2024-03-24 15:45:23 +01:00
parent d6201f3df5
commit 1145ebe7f7
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ function onPlayStateUpdate() {
}
function onMenuLoaded(name:String) {
// Name is either "Main Menu", "Freeplay", "Title Screen", "Options Menu", "Credits Menu"
// Name is either "Main Menu", "Freeplay", "Title Screen", "Options Menu", "Credits Menu", "Beta Warning"
DiscordUtil.changePresenceSince("In the Menus", null);
}
+2
View File
@@ -29,6 +29,8 @@ class BetaWarningState extends MusicBeatState {
var off = Std.int((FlxG.height - (disclaimer.y + disclaimer.height)) / 2);
disclaimer.y += off;
titleAlphabet.y += off;
DiscordUtil.call("onMenuLoaded", ["Beta Warning"]);
}
public override function update(elapsed:Float) {