mirror of
https://github.com/keharriso/love-nuklear.git
synced 2025-09-11 00:27:48 -04:00
Add ui:treeState*
parent
870385bc63
commit
583922a615
1 changed files with 21 additions and 0 deletions
|
@ -371,6 +371,27 @@ if ui:treePush(...) then
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### open = ui:treeStatePush('node'/'tab', title)
|
||||||
|
#### open = ui:treeStatePush('node'/'tab', title, [image](#images))
|
||||||
|
#### open = ui:treeStatePush('node'/'tab', title, [image](#images), 'collapsed'/'expanded')
|
||||||
|
Same as [`ui:treePush`](#open--uitreepushnodetab-title), but the 'collapsed'/'expanded' argument sets the current state of the tree instead of just specifying the initial state.
|
||||||
|
|
||||||
|
Be sure to call `ui:treeStatePop` if the tree is open.
|
||||||
|
|
||||||
|
#### ui:treeStatePop()
|
||||||
|
Ends an open tree started with `ui:treeStatePush`. Call this at the end of every open treeState.
|
||||||
|
|
||||||
|
#### ui:treeState('node'/'tab', title, body)
|
||||||
|
#### ui:treeState('node'/'tab', title, [image](#images), body)
|
||||||
|
#### ui:treeState('node'/'tab', title, [image](#images), 'collapsed'/'expanded', body)
|
||||||
|
Equivalent to:
|
||||||
|
```lua
|
||||||
|
if ui:treeStatePush(...) then
|
||||||
|
body(ui)
|
||||||
|
ui:treeStatePop()
|
||||||
|
end
|
||||||
|
```
|
||||||
|
|
||||||
### Popups
|
### Popups
|
||||||
|
|
||||||
#### open = ui:popupBegin('dynamic'/'static', title, x, y, width, height, [flags](#flags)...)
|
#### open = ui:popupBegin('dynamic'/'static', title, x, y, width, height, [flags](#flags)...)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue