Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (7th_zorro), 529 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
transparent panel not blocking mouse? #448929
02/25/15 18:36
02/25/15 18:36
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Howdy,

Why does a transparent panel not block the mouse cursor like a non-transparent panel? (I can select entities behind it which I don't want, I want only to be able to see the entities behind it)

Is there a quick fix for this?

tia

Last edited by Reconnoiter; 02/25/15 18:37.
Re: transparent panel not blocking mouse? [Re: Reconnoiter] #448930
02/25/15 20:07
02/25/15 20:07
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
if alpha is <= 0 it will automaticly set the INVISIBLE flag.
You can try alpha 1 or a panel with a complete transparent image (but 100% alpha in engine).

Re: transparent panel not blocking mouse? [Re: Ch40zzC0d3r] #448946
02/26/15 11:07
02/26/15 11:07
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Hi Ch40zzC0d3r,

Setting alpha to 1 or to 100 not seem to have any effect here (except visually ofcourse). I have tried tga with alpha channel (32 bit) and png with alpha layer. Have also tried setting translucent flag but that made no difference.

Code:
function interface_startup()
{
  ...
  mypan.alpha = 100;
  ...
}


Re: transparent panel not blocking mouse? [Re: Reconnoiter] #448947
02/26/15 11:35
02/26/15 11:35
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
does your panel has a size applied or is it just set with pos_x, pos_y?
just try manually setting a size and check if the UNTOUChABLE flag is set


Visit my site: www.masterq32.de
Re: transparent panel not blocking mouse? [Re: MasterQ32] #448960
02/26/15 14:02
02/26/15 14:02
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Just set with pos_x/pos_y. The size_x and _y are already correct (though to be certain I checked it by setting it manually). The buttons on the panel do work right and they do seem to block the mouse cursor. So its only the bmap of the panel that does not block the mouse cursor. UNTOUChABLE flag is not set.

Re: transparent panel not blocking mouse? [Re: Reconnoiter] #449053
03/02/15 16:14
03/02/15 16:14
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Does someone perhaps have a working example of of a panel with a transparent bmap blocking the mouse pointer?

Re: transparent panel not blocking mouse? [Re: Reconnoiter] #449054
03/02/15 17:01
03/02/15 17:01
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
As it apparently does not work you will have to find a workaround.
I suggest you create a new variable
var mouse_ent_clickable = 1;
which is set to 1 if and only if the mouse position is valid (which obviously includes being outside of the dimensions of the panel in question).

EDIT: Then use that variable in entity click events.

Last edited by Superku; 03/02/15 17:01.

"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: transparent panel not blocking mouse? [Re: Superku] #449083
03/03/15 14:52
03/03/15 14:52
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Hi Superku,

Yes I already have something like that for the bigger panels. I quess I could do it the hardway for the smaller ones too.

Re: transparent panel not blocking mouse? [Re: Reconnoiter] #449106
03/04/15 17:42
03/04/15 17:42

M
Malice
Unregistered
Malice
Unregistered
M



When I used to work on this stuff, I would build these "hardways" into libraries like Basic_panel_behaviors.h . As you might see from my like of projects-shared, I spent more time writing and fixing libraries than creating anything.

Re: transparent panel not blocking mouse? [Re: ] #449111
03/04/15 19:00
03/04/15 19:00
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
lol, I get what you mean though. Just since a few weeks I actually feel that my workflow and the tools I have are good enough.

ps do you perhaps know how to increase the size of that ctrl+space shortcut window within SED? (the one where you can quickly select function names & vars etc. to place in your script) I want to use that one but its so damn tiny and jcl ignored me when I asked him how >>.

Last edited by Reconnoiter; 03/04/15 19:01.
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