From 1145ebe7f7412134abfd4ae3bf7ec866e475c3f5 Mon Sep 17 00:00:00 2001 From: NeeEoo Date: Sun, 24 Mar 2024 15:45:18 +0100 Subject: [PATCH] Added beta warning to rpc --- assets/data/discord.hx | 2 +- source/funkin/menus/BetaWarningState.hx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/data/discord.hx b/assets/data/discord.hx index 5aad1856..205f88d6 100644 --- a/assets/data/discord.hx +++ b/assets/data/discord.hx @@ -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); } diff --git a/source/funkin/menus/BetaWarningState.hx b/source/funkin/menus/BetaWarningState.hx index 08d60f39..16201454 100644 --- a/source/funkin/menus/BetaWarningState.hx +++ b/source/funkin/menus/BetaWarningState.hx @@ -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) {