diff --git a/Documentation.md b/Documentation.md index 4a8e226..a034531 100644 --- a/Documentation.md +++ b/Documentation.md @@ -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 = {