From 597cccfd7b6d3d945744e1533642f705f672c514 Mon Sep 17 00:00:00 2001 From: Kevin Harrison Date: Thu, 3 Jan 2019 13:21:15 -0500 Subject: [PATCH] Update for v2.5 --- Documentation.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 = {