Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

Commit

Permalink
Unstable support
Browse files Browse the repository at this point in the history
  • Loading branch information
Aceba1 committed Feb 8, 2019
1 parent 43459f4 commit 4f96a85
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 72 deletions.
Binary file modified Built/miscmods/Misc Mods.dll
Binary file not shown.
27 changes: 8 additions & 19 deletions Misc Mods/Class1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,18 @@ public class GUIConfig : MonoBehaviour

private int InputIDToChange = 0;

private KeyCode ForceGround = KeyCode.None, ForceGroundToggle = KeyCode.None, ForceAnchor = KeyCode.None,
ForceThrustToggle = KeyCode.None, ForceThrustAddForward = KeyCode.None, ForceThrustRemoveForward = KeyCode.None,
ForceThrustAddUpward = KeyCode.None, ForceThrustRemoveUpward = KeyCode.None;
private KeyCode ForceGround = KeyCode.None, ForceGroundToggle = KeyCode.None, ForceAnchor = KeyCode.None;

private bool ForceThrust = false;
private float ThrustChange = 0f, ForceThrustAmountForward = 0f, ForceThrustAmountUpward = 0f;

public void Start()
{
config = new ModConfig();

config.BindConfig(this, "ThrustChange");

config.BindConfig(this, "ForceGround", false);
config.BindConfig(this, "ForceGroundToggle", false);
config.BindConfig(this, "ForceAnchor", false);
config.BindConfig(this, "ForceThrustToggle", false);
config.BindConfig(this, "ForceThrustAddForward", false);
config.BindConfig(this, "ForceThrustRemoveForward", false);
config.BindConfig(this, "ForceThrustAddUpward", false);
config.BindConfig(this, "ForceThrustRemoveUpward", false);

config.UseRefList = false;
try
Expand All @@ -46,11 +38,6 @@ public void Start()
ForceGround = (KeyCode)(long)config["ForceGround"];
ForceGroundToggle = (KeyCode)(long)(config["ForceGroundToggle"]);
ForceAnchor = (KeyCode)(long)(config["ForceAnchor"]);
ForceThrustToggle = (KeyCode)(long)(config["ForceThrustToggle"]);
ForceThrustAddForward = (KeyCode)(long)(config["ForceThrustAddForward"]);
ForceThrustRemoveForward = (KeyCode)(long)(config["ForceThrustRemoveForward"]);
ForceThrustAddUpward = (KeyCode)(long)(config["ForceThrustAddUpward"]);
ForceThrustRemoveUpward = (KeyCode)(long)(config["ForceThrustRemoveUpward"]);
}
catch (Exception E)
{
Expand Down Expand Up @@ -127,7 +114,7 @@ private void Update()
this.TechGrounding = false;
}

if (Input.GetKeyDown(this.ForceThrustToggle))
/*if (Input.GetKeyDown(this.ForceThrustToggle))
{
this.ForceThrust = !this.ForceThrust;
if (!this.ForceThrust)
Expand Down Expand Up @@ -170,7 +157,7 @@ private void Update()
this.ForceThrustAmountUpward = -1f;
}
}
}
}*/

if (Input.GetKeyDown(this.ForceAnchor))
{
Expand All @@ -182,7 +169,7 @@ private void Update()
{
if (Singleton.playerTank.IsAnchored)
{
Singleton.playerTank.Anchors.UnanchorAll();
Singleton.playerTank.Anchors.UnanchorAll(false, false);
this.anchorcache = ((this.anchorcache == (Singleton.playerTank.IsAnchored ? 2 : 1)) ? 2 : 0);
}
else
Expand Down Expand Up @@ -328,7 +315,7 @@ private void ExportPage(int ID)

private void TurbinePage(int ID)
{
if (this.InputIDToChange != 0)
/*if (this.InputIDToChange != 0)
{
Event current = Event.current;
if (current.isKey)
Expand Down Expand Up @@ -379,6 +366,8 @@ private void TurbinePage(int ID)
this.InputIDToChange = 8;
}
GUI.EndScrollView();
*/
GUI.Label(new Rect(30f, 40f, 600f, 20f), "There is nothing to see here, anymore...");
}

private void FixedUpdate()
Expand Down
Loading

0 comments on commit 4f96a85

Please sign in to comment.