[RESOLVED] grrlib: elastic button December 13, 2009 01:10AM | Registered: 14 years ago Posts: 31 |
Re: grrlib: elastic button December 13, 2009 04:11AM | Registered: 15 years ago Posts: 175 |
Re: grrlib: elastic button December 13, 2009 06:37AM | Registered: 14 years ago Posts: 552 |
GRRLIB_InitTileSet(image, 24, 24, 0);where image is the name, 24 x 24 is the dimensions of each tile within the image (all your sprites would have to be laid out in a 24 x 24 grid (or whatever dimensions you wanted)
GRRLIB_DrawTile(x,y,image,rotate, zoomx, zoomy, color, TILE NUMBER)where tile number is what tile you want displaced (0 being the first)
if(GRRLIB_PtInRect(x, y, w, h, ir1.x, ir1.y) { do whatever you want to happen while hovering in rectangle (mouseover) if(a button is press) { do whatever you want to happen while in rectangle AND a button is pressed } }
Re: [RESOLVED] grrlib: elastic button December 19, 2009 02:55PM | Registered: 14 years ago Posts: 31 |