Skip to content

Commit aedd954

Browse files
committed
remove random loading screens, add performance metrics toggle
1 parent 5c53277 commit aedd954

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Threading.Tasks;
66
using MelonLoader;
77
using UnityEngine;
8-
[assembly: MelonInfo(typeof(SuperliminalPracticeMod.Main), "Superliminal Practice Mod", "0.1.3", "Micrologist#2351")]
8+
[assembly: MelonInfo(typeof(SuperliminalPracticeMod.Main), "Superliminal Practice Mod", "0.1.4", "Micrologist#2351")]
99
[assembly: MelonGame("PillowCastle", null)]
1010

1111
namespace SuperliminalPracticeMod

PracticeModManager.cs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ void Awake()
4949
storedMap = -1;
5050
GameManager.GM.enableDebugFunctions = true;
5151
debugFunctions = false;
52+
GameManager.GM.GetComponent<LevelInformation>().LevelInfo.RandomLoadingScreens = new SceneReference[1] { GameManager.GM.GetComponent<LevelInformation>().LevelInfo.NormalLoadingScreen };
5253

5354
}
5455

@@ -58,17 +59,16 @@ void Awake()
5859
void Update()
5960
{
6061

61-
62-
if (Input.GetKeyDown(KeyCode.K))
62+
if (Input.GetKeyDown(KeyCode.F12))
6363
{
64-
noClip = !noClip;
65-
noClipSpeed = 10.0f;
64+
Transform performanceGraph = GameManager.GM.transform.Find("[Graphy]");
65+
if (performanceGraph != null)
66+
performanceGraph.gameObject.SetActive(!performanceGraph.gameObject.activeSelf);
6667
}
6768

6869
if (GameManager.GM.player == null)
6970
return;
7071

71-
7272
if (player != GameManager.GM.player)
7373
{
7474
player = GameManager.GM.player;
@@ -104,7 +104,13 @@ void Update()
104104
GameManager.GM.enableDebugFunctions = debugFunctions;
105105
}
106106

107-
107+
108+
if (Input.GetKeyDown(KeyCode.K))
109+
{
110+
noClip = !noClip;
111+
noClipSpeed = 10.0f;
112+
}
113+
108114
playerMotor.enabled = !noClip;
109115

110116
if (Input.GetKeyDown(KeyCode.F))

0 commit comments

Comments
 (0)