Add back Discord RPC

This commit is contained in:
2026-01-31 22:19:38 -07:00
parent e8bac521f7
commit d928fff45e
18 changed files with 809 additions and 309 deletions

View File

@@ -40,6 +40,8 @@ public class PlayMenu : MonoBehaviour
{
selectionMenu.SetActive(false);
customMenu.SetActive(true);
if (DiscordRPCHandler.Instance != null)
DiscordRPCHandler.Instance.UpdateRPC("Customizing to play the custom mode", "");
});
customBackButton.onClick.AddListener(() =>
{
@@ -55,6 +57,8 @@ public class PlayMenu : MonoBehaviour
antiBerryChance.text = defaultAntiBerryChance.ToString();
nothingBerryChance.text = defaultNothingBerryChance.ToString();
ValidateTotal();
if (DiscordRPCHandler.Instance != null)
DiscordRPCHandler.Instance.UpdateRPC("Picking what mode they want to play", "");
});
customNormalizeButton.onClick.AddListener(() =>
{
@@ -189,6 +193,12 @@ public class PlayMenu : MonoBehaviour
nothingBerryChance.onDeselect.AddListener((value) => OnDeselect(value, nothingBerryChance));
}
void Start()
{
if (DiscordRPCHandler.Instance != null)
DiscordRPCHandler.Instance.UpdateRPC("Picking what mode they want to play", "");
}
void ValidateTotal()
{
customBackButton.interactable = false;