added colors

This commit is contained in:
visionmercer 2026-04-29 12:36:31 +02:00
commit d156b060a8
Notes: visionmercer 2026-04-29 12:39:55 +02:00
This also adds right button mouse click to imagebutton function, and resize functionality.
2 changed files with 71 additions and 4 deletions

View file

@ -21,6 +21,7 @@ function imagebutton (x as integer,y as integer,w as integer,h as integer,iconha
if _mousex>x and _mousey>y and _mousex<x+w and _mousey<y+h then
drawimagebutton x,y,w,h,iconhandle,1
if mouseclicked then imagebutton=-1
if rmouseclicked then imagebutton=-2
else
drawimagebutton x,y,w,h,iconhandle,0
end if