Skip to content

Commit

Permalink
Merge pull request #7 from raziell74/v1.3.5
Browse files Browse the repository at this point in the history
AMPED v1.3.5
  • Loading branch information
raziell74 committed Jan 23, 2023
2 parents 1cdaa42 + 9c2f515 commit 20759f2
Show file tree
Hide file tree
Showing 14 changed files with 789 additions and 1,170 deletions.
694 changes: 0 additions & 694 deletions Auto Map Pins Configurable/AMP_Configurable.Commands.cs

This file was deleted.

14 changes: 2 additions & 12 deletions Auto Map Pins Configurable/AMP_Configurable.Modules.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using AMP_Configurable.Commands;
using AMP_Configurable.Patches;
using AMP_Configurable.Patches;
using System.Collections.Generic;
using UnityEngine;
using Utilities;
Expand All @@ -20,7 +19,6 @@ public ModConsoleOpt()

public void Start()
{
AMP_Commands.ConsoleOpt = this;
Ready();
}

Expand All @@ -38,7 +36,6 @@ public void HandleConsole()
if (Input.GetKeyDown(KeyCode.Return) && text.Equals(string.Empty) && !consoleLastMessage.Equals(string.Empty))
{
consoleHistory.Add(consoleLastMessage);
AMP_Commands.ProcessCommands(consoleLastMessage);
this.consoleLastMessage = string.Empty;
}
if (Input.GetKeyDown(KeyCode.UpArrow))
Expand All @@ -55,23 +52,16 @@ public void HandleConsole()
Console.instance.m_input.caretPosition = Console.instance.m_input.text.Length;
}



private void Update()
{
HandleConsole();

}

private void OnDestroy()
{
if (AMPCommandPatcher.Harmony == null)
return;
AMPCommandPatcher.Harmony.UnpatchSelf();

}



private class History
{
private List<string> history = new List<string>();
Expand Down
Loading

0 comments on commit 20759f2

Please sign in to comment.