Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 686 Bytes

bitburner.userinterface.setstyles.md

File metadata and controls

38 lines (23 loc) · 686 Bytes

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);