mirror of
https://github.com/keharriso/love-nuklear.git
synced 2025-09-10 16:17:47 -04:00
Update for v2.5
parent
37bcd0f8e1
commit
597cccfd7b
1 changed files with 10 additions and 2 deletions
|
@ -17,12 +17,12 @@ Pass the given key release event to the UI, returning `true` if the event is con
|
|||
|
||||
See [love.keyreleased](https://love2d.org/wiki/love.keyreleased).
|
||||
|
||||
#### consumed = ui:mousepressed(x, y, button, istouch)
|
||||
#### consumed = ui:mousepressed(x, y, button, istouch, presses)
|
||||
Pass the given mouse press event to the UI, returning `true` if the event is consumed and `false` otherwise.
|
||||
|
||||
See [love.mousepressed](https://love2d.org/wiki/love.mousepressed).
|
||||
|
||||
#### consumed = ui:mousereleased(x, y, button, istouch)
|
||||
#### consumed = ui:mousereleased(x, y, button, istouch, presses)
|
||||
Pass the given mouse release event to the UI, returning `true` if the event is consumed and `false` otherwise.
|
||||
|
||||
See [love.mousereleased](https://love2d.org/wiki/love.mousereleased).
|
||||
|
@ -879,6 +879,14 @@ ui:stylePush {
|
|||
#### ui:stylePop()
|
||||
Pop the most recently pushed style.
|
||||
|
||||
#### ui:style(style, body)
|
||||
Equivalent to:
|
||||
```lua
|
||||
ui:stylePush(style)
|
||||
body(ui)
|
||||
ui:stylePop()
|
||||
```
|
||||
|
||||
### Style Items
|
||||
```lua
|
||||
local style = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue