About This File
A few improvements to the console.
On Steam: http://steamcommunity.com/sharedfiles/filedetails/?id=173892495
Major features
- Console log is scrollable
- Console log no longer prints file/line number information (but log.txt still does)
- Console keeps focus when you'd expect it to
- Console doesn't close after each line entered
- Added basic CTRL+A select all support (hitting backspace after CTRL+A will delete all the text)
- Added support for multi-line inputs
- Many general useability improvements, bugs that have been fixed, and small but useful tweaks
Minor features (the rest)
- Console always runs the "consolecommands" script when it is opened (no more having to do RunScript("consolecommands"))
- Console log gets hidden whenever the console closes
- Console history ignores consecutive duplicate lines
- Console log and console input text is slightly smaller
- Console log has word wrap enabled
- Fixed console history not properly resetting when you move up through the history and then back down to the start
- Modified the c_select command so that it will set the debug entity to whatever is under the mouse if it is called with no parameter (default c_select requires a parameter)
- Added c_nextday() command as a shortcut for GetClock():MakeNextDay()
- Console will automatically print back the value of any variable you enter (for example, if you do "test = 1" and then just "test" it will print back "1")
- If you use "return" it will print back the value that is returned (for example, "return GetPlayer()" would print something like "100009 - wilson"); basically return can be used as somewhat of an alias of print
- Console prints back any command you give it with "> " prefixed in front of it
- Console has a transparent black background
- Console can print multiple return values
- Console will auto-execute console commands (example: "c_nextday" would translate to "return c_nextday()")
- If the first character of an inputted line is '=', then it will be translated to 'return ' (example: "=test" becomes "return test")
- Better, more informative error handling for inputted lines
Things that are not currently possible with Lua:
- Moving the text input cursor (for example, moving the cursor based on mouse clicks)
- Any sort of real text selection
- Copy/paste support
Get involved:
What's New in Version 1.3.1 See changelog
Released
- Bumped API version to 6
- Made the new CTRL+V paste support enabled by default
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now