bitburner-src/markdown/bitburner.userinterface.setstyles.md
Martin Fournier 9b638b911f Add ns.ui.[getStyles, setStyles, resetStyles]
Adds three Netscript functions to manipulate the user's styles like the
player can with theme.
2022-01-12 18:34:05 -05:00

692 B

Home > bitburner > UserInterface > setStyles

UserInterface.setStyles() method

Sets the current styles

Signature:

setStyles(newStyles: IStyleSettings): void;

Parameters

Parameter Type Description
newStyles IStyleSettings

Returns:

void

Remarks

RAM cost: cost: 0 GB

Example

Usage example (NS2)

const styles = ns.ui.getStyles();
styles.fontFamily = 'Comic Sans Ms';
ns.ui.setStyles(styles);