Giter VIP home page Giter VIP logo

terminalhistory's Introduction

Terminal History

Overview

Allows you to goto previously sent terminal commands using the up and down arrow keys.

Installation

Just drag and drop the BepInEx folder to your Lethal Company root folder(Where the Lethal Company.exe is). Or just use the ThunderStore mod loader.

Changelog

Version 1.0.0

  • Release

Version 1.0.1

  • Fixed an error if you input more than 20 different commands, credits: NickolasFleim

Version 1.0.2

  • Implemented LethalCompany InputUtils and reformed everything to support this new way of handling the keybinds. This now gives the mod functionality to change the keybinds in-game. credits: CTN-Originals

Version 1.0.3

  • Implemented the command draft functionality. If they user has typed out anything already without sending it and instead uses the (up) keybind to go back in command history, it will save the drafted command they typed out and if they return to index -1 with the (down) keybind it will be restored.in-game. credits: CTN-Originals
  • fixed a bug where if you go out of the terminal while already having used the back keys, the next time you use them it would not have been reset to the beginning. credits: CTN-Originals

Version 1.0.4

  • Added the terminal functionality for when a previous command is edited(whether added or deleting) it will set the current index to -1 and will be saved as a command draft

terminalhistory's People

Contributors

jax-drummond avatar ctnoriginals avatar nickolasfleim avatar

Watchers

 avatar

terminalhistory's Issues

[BUG]ArgumentException

After 20 entries an error appears and the terminal is blocked

[Error  : Unity Log] ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
Stack trace:
System.Collections.Generic.List`1[T].RemoveRange (System.Int32 index, System.Int32 count) (at <787acc3c9a4c471ba7d971300105af24>:IL_0020)
TerminalHistory.Plugin.OnTerminalSubmit (System.Object sender, TerminalApi.Events.Events+TerminalParseSentenceEventArgs e) (at <fc5b35beaf3e401ba211c2f66fb1975a>:IL_0064)
TerminalApi.Events.Events.ParsePlayerSentence (Terminal& __instance, TerminalNode __result) (at <cb393fe4e95a46eea61611279c027f11>:IL_0052)
(wrapper dynamic-method) Terminal.DMD<Terminal::ParsePlayerSentence>(Terminal)
(wrapper dynamic-method) Terminal.DMD<Terminal::OnSubmit>(Terminal)
UnityEngine.Events.InvokableCall.Invoke () (at <e27997765c1848b09d8073e5d642717a>:IL_0010)
UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) (at <e27997765c1848b09d8073e5d642717a>:IL_0049)
TMPro.TMP_InputField.SendOnEndEdit () (at <830d2f4cda924be69883be03cc68e010>:IL_000E)
TMPro.TMP_InputField.ReleaseSelection () (at <830d2f4cda924be69883be03cc68e010>:IL_001B)
TMPro.TMP_InputField.DeactivateInputField (System.Boolean clearSelection) (at <830d2f4cda924be69883be03cc68e010>:IL_00B0)
TMPro.TMP_InputField.OnUpdateSelected (UnityEngine.EventSystems.BaseEventData eventData) (at <830d2f4cda924be69883be03cc68e010>:IL_007C)
UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IUpdateSelectedHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at <281a675b48d344e28f9941b2777fd620>:IL_0000)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at <281a675b48d344e28f9941b2777fd620>:IL_0067)
UnityEngine.EventSystems.EventSystem:Update()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.