Mouse selection with picture

For general discussion related FlowStone
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: Mouse selection with picture

Post by RJHollins »

That is a cool technique billv.

Thanks for doing that ... I just learned something new!
8-)
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: Mouse selection with picture

Post 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...
Attachments
mousearea_bmpsize.fsm
(6.82 KiB) Downloaded 877 times
stw
Posts: 111
Joined: Tue Jul 13, 2010 11:09 am
Contact:

Re: Mouse selection with picture

Post 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

picarray.fsm
(105.66 KiB) Downloaded 918 times
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: Mouse selection with picture

Post by Nubeat7 »

really neat stw! :)
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Mouse selection with picture

Post 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.
mousearea_bmpsize-2.fsm
(4.98 KiB) Downloaded 911 times

I did try some ruby approaches....but got stuck controlling the mouse areas.
rustyou
Posts: 93
Joined: Sat Jan 04, 2014 10:55 am
Location: France

Re: Mouse selection with picture

Post 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 ?
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: Mouse selection with picture

Post 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)
rustyou
Posts: 93
Joined: Sat Jan 04, 2014 10:55 am
Location: France

Re: Mouse selection with picture

Post by rustyou »

It's possible to change the color of picture before of clicked ?
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Mouse selection with picture

Post 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.
Bitmap color change.fsm
(32.17 KiB) Downloaded 869 times
rustyou
Posts: 93
Joined: Sat Jan 04, 2014 10:55 am
Location: France

Re: Mouse selection with picture

Post 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...?
Attachments
test color buttoninvisible.fsm
(155.93 KiB) Downloaded 869 times
Post Reply