Remove stats button from pause menu on custom mode

This commit is contained in:
2026-02-13 20:39:36 -07:00
parent b7d444324b
commit 4070526e14
3 changed files with 3 additions and 1019 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -731,11 +731,6 @@ public class CustomGamePlayer : MonoBehaviour
internal void DisablePause()
{
if (CustomGamePlayerPauseMenu.Instance.statsMenu.activeSelf)
{
CustomGamePlayerPauseMenu.Instance.statsMenuExitButton.onClick.Invoke();
return;
}
if (CustomGamePlayerPauseMenu.Instance.editingUI == true)
{
CustomGamePlayerPauseMenu.Instance.ToggleEditingUI();

View File

@@ -1,4 +1,3 @@
using System.Text;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
@@ -21,10 +20,6 @@ public class CustomGamePlayerPauseMenu : MonoBehaviour
[SerializeField] private Button leftButton;
internal bool editingUI = false;
public GameObject statsMenu;
public Button statsMenuExitButton;
[SerializeField] private TMP_Text statsText;
[SerializeField] private Toggle settingFullscreenToggle;
[SerializeField] private Toggle settingVSyncToggle;
[SerializeField] private Toggle settingRandomMusicToggle;
@@ -70,26 +65,6 @@ public class CustomGamePlayerPauseMenu : MonoBehaviour
PlayerPrefs.DeleteKey("DraggedUILeftButton");
}
});
statsButton.onClick.AddListener(() =>
{
statsMenu.SetActive(true);
var text = new StringBuilder();
text.AppendLine("High Score: " + Tools.FormatWithCommas(BazookaManager.Instance.GetGameStoreHighScore()));
text.AppendLine("Total Normal Berries: " + Tools.FormatWithCommas(BazookaManager.Instance.GetGameStoreTotalNormalBerries()));
text.AppendLine("Total Poison Berries: " + Tools.FormatWithCommas(BazookaManager.Instance.GetGameStoreTotalPoisonBerries()));
text.AppendLine("Total Slow Berries: " + Tools.FormatWithCommas(BazookaManager.Instance.GetGameStoreTotalSlowBerries()));
text.AppendLine("Total Ultra Berries: " + Tools.FormatWithCommas(BazookaManager.Instance.GetGameStoreTotalUltraBerries()));
text.AppendLine("Total Speedy Berries: " + Tools.FormatWithCommas(BazookaManager.Instance.GetGameStoreTotalSpeedyBerries()));
text.AppendLine("Total Random Berries: " + Tools.FormatWithCommas(BazookaManager.Instance.GetGameStoreTotalRandomBerries()));
text.AppendLine("Total Anti Berries: " + Tools.FormatWithCommas(BazookaManager.Instance.GetGameStoreTotalAntiBerries()));
text.AppendLine("Total Attempts: " + Tools.FormatWithCommas(BazookaManager.Instance.GetGameStoreTotalAttepts()));
statsText.text = text.ToString();
});
statsMenuExitButton.onClick.AddListener(() =>
{
statsMenu.SetActive(false);
statsText.text = string.Empty;
});
musicSlider.value = BazookaManager.Instance.GetSettingMusicVolume();
sfxSlider.value = BazookaManager.Instance.GetSettingSFXVolume();