bitburner-src/markdown/bitburner.userinterface.setstyles.md
omuretsu 06a985bdf8 Revert "Remove markdown from git tracking (#139)"
This reverts commit bbb6e3f309935aebac74ddb1fbeec12dfb7540b1.
2022-10-21 11:16:00 -04:00

719 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: 0 GB

Example

Usage example (NS2)

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