2022-10-21 17:16:00 +02:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [UserInterface](./bitburner.userinterface.md) > [setStyles](./bitburner.userinterface.setstyles.md)
|
|
|
|
|
|
|
|
## UserInterface.setStyles() method
|
|
|
|
|
|
|
|
Sets the current styles
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Signature:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
setStyles(newStyles: IStyleSettings): void;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| newStyles | [IStyleSettings](./bitburner.istylesettings.md) | |
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Returns:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
void
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
RAM cost: 0 GB
|
|
|
|
|
|
|
|
## Example
|
|
|
|
|
|
|
|
Usage example (NS2)
|
|
|
|
|
2024-05-27 23:42:31 +02:00
|
|
|
```js
|
2022-10-21 17:16:00 +02:00
|
|
|
const styles = ns.ui.getStyles();
|
|
|
|
styles.fontFamily = 'Comic Sans Ms';
|
|
|
|
ns.ui.setStyles(styles);
|
|
|
|
```
|
|
|
|
|