Skip to content

Commit 3f11334

Browse files
authored
Add descriptions
Signed-off-by: GitHub <noreply@github.com>
1 parent 510b4bb commit 3f11334

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

docs/api-reference.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,44 +6,60 @@
66
getEnabled(): boolean
77
```
88

9+
Gets if the backpack is enabled.
10+
911
### setEnabled
1012

1113
```
1214
setEnabled(enabled: boolean): ()
1315
```
1416

17+
Sets whether the backpack is enabled or not.
18+
1519
### getTheme
1620

1721
```
1822
getTheme(): StyleSheet
1923
```
2024

25+
Gets the active StyleSheet for the backpack theme.
26+
2127
### setTheme
2228

2329
```
2430
setTheme(theme: "DefaultTheme" | "LegacyTheme" | StyleSheet): ()
2531
```
2632

33+
Configures the backpack theme with a StyleSheet.
34+
2735
### getTopbarIcon
2836

2937
```
3038
getTopbarIcon(): TopbarPlus.Icon
3139
```
3240

41+
Gets the TopbarPlus icon used to toggle the backpack.
42+
3343
### openInventory
3444

3545
```
3646
openInventory(): ()
3747
```
3848

49+
Opens the inventory.
50+
3951
### closeInventory
4052

4153
```
4254
closeInventory(): ()
4355
```
4456

57+
Closes the inventory.
58+
4559
### isInventoryOpen
4660

4761
```
4862
isInventoryOpen(): boolean
4963
```
64+
65+
Returns `true` if the inventory is open.

0 commit comments

Comments
 (0)