Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This displays a timer instead of the progress bar (use this for commands that run permanently)

Advanced Hotkeys

The hotkey system has been updated to allow customisation, 4 new script commands have been added:

Code Block
themeMidnight
<RetVar> register hotkey event script: script=<script>, type=<number/constant>, page id=<number>, text id=<number>
<RetVar> register hotkey: script=<script>, type=<number/constant>, page id=<number>, text id=<number>, menu=<boolean>
<RetVar> register hotkey event script: scriptname=<script/string>, type=<number/constant>, page id=<number>, text id=<number>
<RetVar> register hotkey: scriptname=<script/string>, type=<number/constant>, page id=<number>, text id=<number>, menu=<boolean>

The <type> argument is used to specify the type of hotkey it is, this determines where it will appear in the controls menu.
The <menu> boolean determines if its a menu hotkey. Menu hotkeys can be used in custom menus, but wont work while in space, setting it to FALSE will be a normal space hotkey
The event hotkeys work slightly differently, where they will send a number of events to the script, instead of just being run when the hotkey is pressed. For the event script, the first argument is the hotkey ID, and the second is a string which is the event.

The events can be:

"pressed" - This is sent when the hotkey is first pressed (doesn't repeat if you hold down the key)
"released" - This is sent when you release the hotkey
"short" - This is sent after "released" and indicates it was pressed for a short time
"long" - This is send after "released" and indicates it was pressed for a longer time
"double" - This is sent instead of a second "pressed" event when a hotkey is pressed twice in a short period of time

Script Commands

A large amount of new script commands has also been added, including some changes to existing ones