Files
bitburner-src/markdown/bitburner.userinterface.md

2.7 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.

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

windowSize()

Get the current window size