-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathControlPlayer.cs
More file actions
27 lines (23 loc) · 807 Bytes
/
ControlPlayer.cs
File metadata and controls
27 lines (23 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using Terraria;
using Terraria.GameInput;
using Terraria.ModLoader;
namespace MechScope
{
internal class ControlPlayer : ModPlayer
{
public override void ProcessTriggers(TriggersSet triggersSet)
{
if (Main.netMode == 0)
{
if (MechScope.keyStep.JustPressed)
SuspendableWireManager.Resume();
if (MechScope.keyToggle.JustPressed)
SuspendableWireManager.Active = !SuspendableWireManager.Active;
if (MechScope.keyAutoStep.JustPressed)
AutoStepWorld.Active = !AutoStepWorld.Active;
if (MechScope.keySettings.JustPressed)
MechScope.settingsUI.Visible = !MechScope.settingsUI.Visible;
}
}
}
}