Skip to content

Latest commit

 

History

History
260 lines (120 loc) · 3.21 KB

File metadata and controls

260 lines (120 loc) · 3.21 KB

Home > bitburner > UserInterface

UserInterface interface

User Interface API.

Signature:

interface UserInterface 

Methods

Method

Description

alias(alias, substitution, global)

Programmatically sets an alias.

clearTerminal()

Clear the Terminal window, as if the player ran clear in the terminal

closeTail(pid)

Close the tail window of a script.

getAllAliases()

Returns a list of every alias that's been set.

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.

openCodeEditor(files, editorOptions)

Opens the specified file(s) in the code editor.

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.

setTailMinimized(minimized, pid)

Minimize or expand 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

unalias(alias)

Clears an existing alias.

windowSize()

Get the current window size