Skip to content

Commit cf024d7

Browse files
committed
add grab object scaling
1 parent b253f51 commit cf024d7

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

Main.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using UnityEngine;
88
using Harmony;
99

10-
[assembly: MelonInfo(typeof(SuperliminalPracticeMod.Main), "Superliminal Practice Mod", "0.3.5", "Micrologist#2351")]
10+
[assembly: MelonInfo(typeof(SuperliminalPracticeMod.Main), "Superliminal Practice Mod", "0.4.0", "Micrologist#2351")]
1111
[assembly: MelonGame("PillowCastle", "Superliminal")]
1212
[assembly: MelonGame("PillowCastle", "SuperliminalSteam")]
1313
[assembly: MelonGame("PillowCastle", "SuperliminalGOG")]

PracticeModManager.cs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class PracticeModManager : MonoBehaviour
1717
public Camera playerCamera;
1818
public ResizeScript resizeScript;
1919
public Text playerText;
20-
public Text grabbedObejctText;
20+
public Text grabbedObjectText;
2121
public PauseMenu pauseMenu;
2222

2323
Vector3 storedPosition;
@@ -122,7 +122,7 @@ void Update()
122122

123123
if (GameObject.Find("GrabbedObjectText") == null && GameObject.Find("UI_PAUSE_MENU") != null)
124124
{
125-
grabbedObejctText = NewGrabbedObjectText();
125+
grabbedObjectText = NewGrabbedObjectText();
126126
}
127127

128128
SLPMod_Console.instance.active = false;
@@ -176,9 +176,9 @@ void Update()
176176
playerText.text = GetPlayerTextString();
177177
}
178178

179-
if(grabbedObejctText != null)
179+
if(grabbedObjectText != null)
180180
{
181-
grabbedObejctText.text = GetGrabbedObjectTextString();
181+
grabbedObjectText.text = GetGrabbedObjectTextString();
182182
}
183183

184184
if (Input.GetKey(KeyCode.F1))
@@ -218,6 +218,14 @@ void Update()
218218
debugFunctions = !debugFunctions;
219219
GameManager.GM.enableDebugFunctions = debugFunctions;
220220
}
221+
222+
if(resizeScript.isGrabbing && Input.GetKey(KeyCode.LeftShift))
223+
{
224+
resizeScript.ScaleObject(1f + (Input.mouseScrollDelta.y * 0.05f));
225+
}
226+
227+
228+
221229
}
222230

223231
public void SetMouseMinY(float mouseMinY)

0 commit comments

Comments
 (0)