diff --git a/button.lua b/button.lua index c063ffa..7f5d365 100644 --- a/button.lua +++ b/button.lua @@ -18,6 +18,10 @@ return function(core, text, ...) hit = core:mouseReleasedOn(opt.id), hovered = core:isHovered(opt.id), entered = core:isHovered(opt.id) and not core:wasHovered(opt.id), - left = not core:isHovered(opt.id) and core:wasHovered(opt.id) + left = not core:isHovered(opt.id) and core:wasHovered(opt.id), + x = x, + y = y, + w = w, + h = h } end