diff --git a/include/ui.bm b/include/ui.bm index 4240564..096ab6f 100644 --- a/include/ui.bm +++ b/include/ui.bm @@ -103,6 +103,13 @@ function min(a,b) if a<=b then min=a else min=b end function +function clickregion(x as integer, y as integer, w as integer, h as integer) + if _mousex>x and _mousey>y and _mousexx and _mousey>y and _mousex