Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, NewbieZorro), 16,655 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Panel should "hide" entities but it does not... #290240
09/17/09 20:53
09/17/09 20:53
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Hi, I have some entities that react on a mouse over and mouse leave. Now I want to place a panel over the screen so that the entities are not touchable any more.

But when I put a panel over the entities I can still touch them... Is there any chance that I can avoid that?

Re: Panel should "hide" entities but it does not... [Re: PadMalcom] #290241
09/17/09 21:13
09/17/09 21:13
Joined: Sep 2009
Posts: 12
Z
zero_karma Offline
Newbie
zero_karma  Offline
Newbie
Z

Joined: Sep 2009
Posts: 12
Do you mean something like...

if(is(sweet_panel.SHOW)) {set(my,UNTOUCHABLE);} else {reset(my,UNTOUCHABLE);}

... and plunk it down in the while loop of your entities.

Re: Panel should "hide" entities but it does not... [Re: zero_karma] #290243
09/17/09 21:19
09/17/09 21:19
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
That might be a possibility but I thought about something easier like set(sweet_panel,HIDE_ENTITIES_BEHIND_ME);

wink

Re: Panel should "hide" entities but it does not... [Re: PadMalcom] #290246
09/17/09 22:07
09/17/09 22:07
Joined: Sep 2009
Posts: 12
Z
zero_karma Offline
Newbie
zero_karma  Offline
Newbie
Z

Joined: Sep 2009
Posts: 12
Do you want them actually hidden? As in objects are not rendered behind sweet panels?

Re: Panel should "hide" entities but it does not... [Re: zero_karma] #290247
09/17/09 22:33
09/17/09 22:33
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline OP
Serious User
PadMalcom  Offline OP
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
No just "unclickable" and "untouchable", but I implemented your solution. That will do it laugh Thanks!

Re: Panel should "hide" entities but it does not... [Re: PadMalcom] #290248
09/17/09 22:47
09/17/09 22:47
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
if(mouse_panel==NULL) trigger the event otherwise dont.

Last edited by Quadraxas; 09/17/09 22:47.

3333333333

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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