Page 2 of 4
Re: Mouse selection with picture
Posted: Thu Feb 13, 2014 7:42 am
by RJHollins
That is a cool technique billv.
Thanks for doing that ... I just learned something new!

Re: Mouse selection with picture
Posted: Thu Feb 13, 2014 9:49 am
by Nubeat7
nice one billv, but when resizing the bitmaps you always need to fit the móuse areas which is not needed when you use the bitmapareas for mouseareas, like this you just load ( or rezize ) a bitmap and you automaticly get the mousearea for it...
Re: Mouse selection with picture
Posted: Thu Feb 13, 2014 10:47 am
by stw
...and here a ruby approach for a picture array.
Edit: Sorry there was an little error in the first attempt. Upped a new version
Re: Mouse selection with picture
Posted: Thu Feb 13, 2014 12:09 pm
by Nubeat7
really neat stw!

Re: Mouse selection with picture
Posted: Thu Feb 13, 2014 3:59 pm
by billv
Nubeat7 wrote: load ( or rezize ) a bitmap and you automaticly get the mousearea for it...
Yeh..much better...
Note in your example this dosn't work cause I've got the area floats dis-connected
in the bitmap loaders.
Here's a quick adjustment.
Also an option(via properties) to resize bitmaps to view area of module.
I did try some ruby approaches....but got stuck controlling the mouse areas.
Re: Mouse selection with picture
Posted: Thu Feb 13, 2014 6:01 pm
by rustyou
Hello !
Thank you for your help guys !! It's perfect

If i use the first picture for the background and the second picture for to be in front all (button etc...)
It's difficult ?
Re: Mouse selection with picture
Posted: Thu Feb 13, 2014 6:46 pm
by Nubeat7
billv wrote:Note in your example this dosn't work cause I've got the area floats dis-connected
in the bitmap loaders.
oh yes i just used your example to show the mouse logic and because the pictures have same size i let like it was... (with your hack to get different picture size)
Re: Mouse selection with picture
Posted: Tue Feb 18, 2014 9:03 pm
by rustyou
It's possible to change the color of picture before of clicked ?
Re: Mouse selection with picture
Posted: Tue Feb 18, 2014 10:47 pm
by billv
Yeh,bitmap colour changes can be made with the colour matrix prim.
Inside the bitmap, replace the 'draw prim' with the 'draw transform prim' and add
a 'redraw' prim. Then add colour matrix prim.
The tricky part is all the math needed, to change the hue, saturation and brightness.
This has all been done by someone back at SM, so it's real easy.
Re: Mouse selection with picture
Posted: Tue Feb 18, 2014 11:29 pm
by rustyou
Hi !
Great thanks you,
And in the example joint, if i to want changed the color of guitar logo to white before click...?