Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/19/24 18:45
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, AndrewAMD, TedMar), 837 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
"shape sensitive" panel buttons... #203013
04/18/08 20:59
04/18/08 20:59
Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
cro_games Offline OP
User
cro_games  Offline OP
User

Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
Hello everyone.
While i was walking to the scool today i came on idea how to make a "shape sensitive" panel buttons i 3dgs..
I think that you will see the difference between these and standard panel buttons:


click to dowload (1.73 MB)

p.s.
(sorry for my english)

Last edited by cro_games; 04/18/08 21:00.

Hello everyone my name is Ivan Mandic from "Frozen pixel studio". wink
-----------------------------------
Homepage: www.fpx-studio.com
e-mail: emu_hunter_1990@hotmail.com
(working on a game engine)
Re: "shape sensitive" panel buttons... [Re: cro_games] #203016
04/18/08 21:19
04/18/08 21:19

F
Fear411
Unregistered
Fear411
Unregistered
F



very cool!

How you did it?

Re: "shape sensitive" panel buttons... [Re: ] #203018
04/18/08 21:32
04/18/08 21:32
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
Nice \:\) I succeeded as well. What was your solution?

I Used perpixel check for alpha values... but it wasn't really a solution for antialiased images aligned right aside eachother, since it then was possible to select multiple buttons at the same time. But I guess there is something to think about that as well.

Thread where I asked it, (credits for Scorpion \:D ):
http://www.coniserver.net/ubb7/ubbthread...true#Post182145

Last edited by Joozey; 04/18/08 21:33.

Click and join the 3dgs irc community!
Room: #3dgs
Re: "shape sensitive" panel buttons... [Re: Joozey] #203019
04/18/08 21:43
04/18/08 21:43
Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
cro_games Offline OP
User
cro_games  Offline OP
User

Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
It is simple..I used a pixel color scan..(pixel_for_bmap)


Hello everyone my name is Ivan Mandic from "Frozen pixel studio". wink
-----------------------------------
Homepage: www.fpx-studio.com
e-mail: emu_hunter_1990@hotmail.com
(working on a game engine)
Re: "shape sensitive" panel buttons... [Re: cro_games] #203021
04/18/08 21:56
04/18/08 21:56
Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Puppeteer Offline
Expert
Puppeteer  Offline
Expert

Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Uhmmm i have done this once via overlay...
But it was an earlier version of A6..


Formally known as Omega
Avatar randomness by Quadraxas & Blade
http://omegapuppeteer.mybrute.com
Re: "shape sensitive" panel buttons... [Re: Puppeteer] #203029
04/18/08 23:26
04/18/08 23:26
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
 Originally Posted By: cro_games
It is simple..I used a pixel color scan..(pixel_for_bmap)
Yeah I did the same except checked the alpha instead of color ;\) .

 Originally Posted By: Puppeteer
Uhmmm i have done this once via overlay...
But it was an earlier version of A6..
Did the mouse not react when the overlay flag was on or something the like?


Click and join the 3dgs irc community!
Room: #3dgs
Re: "shape sensitive" panel buttons... [Re: Puppeteer] #203051
04/19/08 06:59
04/19/08 06:59
Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
cro_games Offline OP
User
cro_games  Offline OP
User

Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
 Originally Posted By: Puppeteer
Yeah I did the same except checked the alpha instead of color

I think that this system works better..


Hello everyone my name is Ivan Mandic from "Frozen pixel studio". wink
-----------------------------------
Homepage: www.fpx-studio.com
e-mail: emu_hunter_1990@hotmail.com
(working on a game engine)
Re: "shape sensitive" panel buttons... [Re: Joozey] #203188
04/20/08 09:44
04/20/08 09:44
Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Puppeteer Offline
Expert
Puppeteer  Offline
Expert

Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
 Originally Posted By: Joozey
 Originally Posted By: cro_games
It is simple..I used a pixel color scan..(pixel_for_bmap)
Yeah I did the same except checked the alpha instead of color ;\) .

 Originally Posted By: Puppeteer
Uhmmm i have done this once via overlay...
But it was an earlier version of A6..
Did the mouse not react when the overlay flag was on or something the like?

Well it worked fine...


Formally known as Omega
Avatar randomness by Quadraxas & Blade
http://omegapuppeteer.mybrute.com
Re: "shape sensitive" panel buttons... [Re: Puppeteer] #203192
04/20/08 10:15
04/20/08 10:15
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline
User
DavidLancaster  Offline
User

Joined: Nov 2004
Posts: 862
Australia
Did you do the pixel_for_bmap checks in a button functionOver? I'm curious as to how you handled the overlapping, ie a panel with a rectangular bounding box over laps another bounding box, how do you determine which one the mouse is over if it's over both bounding boxes at once??? Thanks!

Re: "shape sensitive" panel buttons... [Re: DavidLancaster] #203208
04/20/08 13:05
04/20/08 13:05
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
frazzle Offline
Expert
frazzle  Offline
Expert

Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
Hehe this is a pretty nice and smart solution ;\) ;\)
Very salutary \:\) \:\)

Cheers

Frazzle


Antec® Case
Intel® X58 Chipset
Intel® i7 975 Quad Core
8 GB RAM DDR3
SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB
NVIDIA® GeForce GTX 295 Memory 1795GB
Page 1 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1