Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Mouse selection with picture

For general discussion related FlowStone

Re: Mouse selection with picture

Postby RJHollins » Thu Feb 13, 2014 7:42 am

That is a cool technique billv.

Thanks for doing that ... I just learned something new!
8-)
RJHollins
 
Posts: 1571
Joined: Thu Mar 08, 2012 7:58 pm

Re: Mouse selection with picture

Postby Nubeat7 » Thu Feb 13, 2014 9:49 am

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

Re: Mouse selection with picture

Postby stw » Thu Feb 13, 2014 10:47 am

...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 780 times
stw
 
Posts: 111
Joined: Tue Jul 13, 2010 11:09 am

Re: Mouse selection with picture

Postby Nubeat7 » Thu Feb 13, 2014 12:09 pm

really neat stw! :)
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Mouse selection with picture

Postby billv » Thu Feb 13, 2014 3:59 pm

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 764 times

I did try some ruby approaches....but got stuck controlling the mouse areas.
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Mouse selection with picture

Postby rustyou » Thu Feb 13, 2014 6:01 pm

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

Re: Mouse selection with picture

Postby Nubeat7 » Thu Feb 13, 2014 6:46 pm

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

Re: Mouse selection with picture

Postby rustyou » Tue Feb 18, 2014 9:03 pm

It's possible to change the color of picture before of clicked ?
rustyou
 
Posts: 93
Joined: Sat Jan 04, 2014 10:55 am
Location: France

Re: Mouse selection with picture

Postby billv » Tue Feb 18, 2014 10:47 pm

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 723 times
billv
 
Posts: 1157
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia

Re: Mouse selection with picture

Postby rustyou » Tue Feb 18, 2014 11:29 pm

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

PreviousNext

Return to General

Who is online

Users browsing this forum: Google [Bot] and 63 guests