This commit is contained in:
Aria 2025-03-21 22:23:30 +11:00
commit 9c94d113d3
Signed by untrusted user who does not match committer: aria
GPG key ID: 19AB7AA462B8AB3B
10260 changed files with 1237388 additions and 0 deletions

49
doc/lua/scriptpane.md Normal file
View file

@ -0,0 +1,49 @@
These pane bindings are available to scripted interface panes and include functions not specifically related to widgets within the pane.
---
#### `EntityId` pane.sourceEntity()
Returns the entity id of the pane's source entity.
---
#### `void` pane.dismiss()
Closes the pane.
---
#### `void` pane.playSound(`String` sound, [`int` loops], [`float` volume])
Plays the specified sound asset, optionally looping the specified number of times or at the specified volume.
---
#### `bool` pane.stopAllSounds(`String` sound)
Stops all instances of the given sound asset, and returns `true` if any sounds were stopped and `false` otherwise.
---
#### `void` pane.setTitle(`String` title, `String` subtitle)
Sets the window title and subtitle.
---
#### `void` pane.setTitleIcon(`String` image)
Sets the window icon.
---
#### `void` pane.addWidget(`Json` widgetConfig, [`String` widgetName])
Creates a new widget with the specified config and adds it to the pane, optionally with the specified name.
---
#### `void` pane.removeWidget(`String` widgetName)
Removes the specified widget from the pane.