1 registered members (7th_zorro),
529
guests, and 2
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
transparent panel not blocking mouse?
#448929
02/25/15 18:36
02/25/15 18:36
|
Joined: Dec 2011
Posts: 1,823 Netherlands
Reconnoiter
OP
Serious User
|
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: Ch40zzC0d3r]
#448946
02/26/15 11:07
02/26/15 11:07
|
Joined: Dec 2011
Posts: 1,823 Netherlands
Reconnoiter
OP
Serious User
|
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.
function interface_startup()
{
...
mypan.alpha = 100;
...
}
|
|
|
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
Senior Expert
|
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: Reconnoiter]
#449106
03/04/15 17:42
03/04/15 17:42
|
Malice
Unregistered
|
Malice
Unregistered
|
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
OP
Serious User
|
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.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|