Skip to content

Commit

Permalink
i forgot
Browse files Browse the repository at this point in the history
  • Loading branch information
grape-lol committed Nov 15, 2024
1 parent 213643a commit ed62fb3
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions SpookPanel/Cheats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ internal class Cheats : MonoBehaviour
private Color backgroundColor = new Color(0.12f, 0.12f, 0.12f);
private Color tabActiveColor = new Color(0.25f, 0.25f, 0.25f);
private Color textColor = Color.white;

public bool staminaBool = false;
public bool oxygenBool = false;

Expand Down Expand Up @@ -83,16 +84,6 @@ private void DrawWorldTab()

private void DrawPlayerTab()
{
if (GUILayout.Button("Unlock All Hats", GUILayout.Height(30)))
{
MetaProgressionHandler.UnlockAllHats();
}

if (GUILayout.Button("Clear All Hats", GUILayout.Height(30)))
{
MetaProgressionHandler.ClearAllUnlockedHatsHats();
}

oxygenBool = GUILayout.Toggle(oxygenBool, "Infinite Oxygen", GUILayout.Height(30));
{
if (oxygenBool == true)
Expand All @@ -115,13 +106,23 @@ private void DrawPlayerTab()
}
else
{
if(Player.localPlayer != null)
if (Player.localPlayer != null)
{
Player.localPlayer.data.staminaDepleated = true;
}
}
}
}

if (GUILayout.Button("Unlock All Hats", GUILayout.Height(30)))
{
MetaProgressionHandler.UnlockAllHats();
}

if (GUILayout.Button("Clear All Hats", GUILayout.Height(30)))
{
MetaProgressionHandler.ClearAllUnlockedHatsHats();
}
}

private void DrawMiscTab()
Expand All @@ -139,4 +140,4 @@ private void DrawMiscTab()
}
}
}
}
}

0 comments on commit ed62fb3

Please sign in to comment.