I will no longer be maintaining Command Terminal Plus. In my personal projects, I have replaced it with a frontend for LICC called Fancy Pants Console. You can see FPC in action here. I do plan on open sourcing FPC eventually, but it relies on a lot of custom UI code so that will happen after we open source our custom UI library.
If you would like to take ownership of this repo, hit me up.
This is a fork of stillwwater/command_terminal with a bunch more features. Here's a list of them so far:
- added
binddefault command, which allows you to bind any command to a keyboard key. There can be multiple commands bound to a single key. - added
unbinddefault command, to reset bindings of a key - added
scheduledefault command, to schedule a command to execute in the future - added
scheduleunscaleddefault command, which is likeschedulebut it uses unscaled time - added
screenshotdefault command, which can be used with custom values for supersize, file name and file path - removed the (IMO pointless) variable system from the original. Now you use the
setcommand to modify or read properties in your game. Use the[RegisterVariable]attribute for this. - added
timescaledefault variable, for modifyingUnityEngine.Time.timeScale - added
handleunitylogdefault variable, which can be used to disable unity console output in the terminal - added user-editable file StartupCommands.txt. When the terminal starts up, each line of this file is read. Each line which is not empty and does not start with the character
#(used for comments) is run as a command. - cursor is now automatically unlocked when the terminal is opened. It is set back to its previous state (locked or unlocked) when the terminal is closed.
- pressing enter on the numpad can also be used to input a command. This is thanks to @bgr's pull request on the orginal repo.
- terminal font size is customizable
- you can now get a CommandArg as any enum type
- commands (and variables) are registered in ALL assemblies, not just the main assembly
- added events when the terminal opens and closes. This is useful if you have a player controller you want to disable while the terminal is open.
- commands now accept yes/no/y/n/on/off as values for booleans
- added
Secretbool to RegisterCommandAttribute. If it's true, the command won't show up with thehelpcommand. This is intended for easter eggs. - added secret
exitcommand which does the same thing asquit Terminal.cs.metais part of version control, so if you use CTP as a submodule, it doesn't break when loaded on somebody else's computer- added the necessary files (
package.jsonandCommandTerminalPlus.asmdef) so that it can be used as a Unity package via the package manager - tweaked some help messages on default commands
- tweaked some variable names to be more self-explanatory
- fixed default commands having the incorrect names in WebGL
- generally improved a bunch of code