added berry.ui.createWindow
18
berry.ui.md
18
berry.ui.md
@@ -55,3 +55,21 @@ Forcefully change the theme of the UI.
|
|||||||
| Name | Type | Description | Default |
|
| Name | Type | Description | Default |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| `theme` | `string` | The name of the theme. | *required* |
|
| `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"` |
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user