mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 14:28:36 +02:00
* API: Move tail-related APIs to another namespace * Add missing RAM cost config * Remove setTailFontSize from NS namespace
2.0 KiB
2.0 KiB
Home > bitburner > UserInterface
UserInterface interface
User Interface API.
Signature:
interface UserInterface
Methods
| Method | Description |
|---|---|
| clearTerminal() | Clear the Terminal window, as if the player ran clear in the terminal |
| closeTail(pid) | Close the tail window of a script. |
| getGameInfo() | Gets the current game information (version, commit, ...) |
| getStyles() | Get the current styles |
| getTheme() | Get the current theme |
| moveTail(x, y, pid) | Move a tail window. |
| openTail(fn, host, args) | Open the tail window of a script. |
| renderTail(pid) | Render a tail window. |
| resetStyles() | Resets the player's styles to the default values |
| resetTheme() | Resets the player's theme to the default values |
| resizeTail(width, height, pid) | Resize a tail window. |
| setStyles(newStyles) | Sets the current styles |
| setTailFontSize(pixel, fn, host, args) | Set the font size of the tail window of a script. |
| setTailTitle(title, pid) | Set the title of the tail window of a script. |
| setTheme(newTheme) | Sets the current theme |
| windowSize() | Get the current window size |