mirror of
https://github.com/keharriso/love-nuklear.git
synced 2025-09-11 00:27:48 -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).
|
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.
|
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).
|
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.
|
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).
|
See [love.mousereleased](https://love2d.org/wiki/love.mousereleased).
|
||||||
|
@ -879,6 +879,14 @@ ui:stylePush {
|
||||||
#### ui:stylePop()
|
#### ui:stylePop()
|
||||||
Pop the most recently pushed style.
|
Pop the most recently pushed style.
|
||||||
|
|
||||||
|
#### ui:style(style, body)
|
||||||
|
Equivalent to:
|
||||||
|
```lua
|
||||||
|
ui:stylePush(style)
|
||||||
|
body(ui)
|
||||||
|
ui:stylePop()
|
||||||
|
```
|
||||||
|
|
||||||
### Style Items
|
### Style Items
|
||||||
```lua
|
```lua
|
||||||
local style = {
|
local style = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue