added berry.ui.createWindow

2025-10-27 20:16:00 +11:00
parent c8723d2a63
commit 983204f1ab

@@ -55,3 +55,21 @@ Forcefully change the theme of the UI.
| Name | Type | Description | Default |
| --- | --- | --- | --- |
| `theme` | `string` | The name of the theme. | *required* |
## createWindow
```lua
berry.ui.createWindow(title, icon?, showTitle?, canClose?, canMaximize?, canResize?, startHorizontal?, startVertical?)
```
Create a draggable window.
#### Parameters:
| Name | Type | Description | Default |
| --- | --- | --- | --- |
| `title` | `string` | The title of the window. | *required* |
| `icon` | `string` | The icon of the window. | `""` |
| `showTitle` | `boolean` | Should the title of the window be visible? | `true` |
| `canClose` | `boolean` | Should the window be closable? | `true` |
| `canMaximize` | `boolean` | Should the window be maximizable? | `true` |
| `canResize` | `boolean` | Should you be able to resize the window? | `true` |
| `startHorizontal` | `string` | Where on the screen horizontally should the window start? Options: `left`, `centerleft`, `center`, `centerright`, `right` | `"center"` |
| `startVertical` | `string` | Where on the screen vertically should the window start? Options: `bottom`, `lowermiddle`, `middle`, `uppermiddle`, `top` | `"middle"` |