Home > bitburner > UserInterface > setStyles
Sets the current styles
Signature:
setStyles(newStyles: IStyleSettings): void;
Parameter | Type | Description |
---|---|---|
newStyles | IStyleSettings |
Returns:
void
RAM cost: 0 GB
Usage example (NS2)
const styles = ns.ui.getStyles();
styles.fontFamily = 'Comic Sans Ms';
ns.ui.setStyles(styles);