Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by NeoDumont. 11/14/25 16:32
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, NeoDumont, AndrewAMD), 15,766 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to make only one panel touchable #412724
12/02/12 03:10
12/02/12 03:10
Joined: Mar 2003
Posts: 1,524
Canada
Stansmedia Offline OP
Serious User
Stansmedia  Offline OP
Serious User

Joined: Mar 2003
Posts: 1,524
Canada
I'm wondering if it is possible to make only a specified panel touchable until the user selects and option or cancels. I'm thinking an invisible panel to cover the screen behind it... But maybe there is a better work around? I have clickable entities in the level and other panels so I cant have them being clicked on while this panel is open.


Decessus - 80% done. 100% abandoned.
GET MY ANDROID GAME! https://play.google.com/store/apps/details?id=com.lasertrain.zspinballfree&hl=en
Re: How to make only one panel touchable [Re: Stansmedia] #412725
12/02/12 03:33
12/02/12 03:33
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Set all panels' UNTOUCHABLE flag that should be ignored by the mouse. Reset the flag if necessary (f.i. options_active == 1 => reset(pnl_options,UNTOUCHABLE); ).


"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: How to make only one panel touchable [Re: Superku] #412729
12/02/12 04:57
12/02/12 04:57
Joined: Nov 2011
Posts: 139
India
Yashas Offline
Member
Yashas  Offline
Member

Joined: Nov 2011
Posts: 139
India
Code:
PANEL * a = 
{
    flags = UNTOUCHABLE | SHOW;
}
PANEL * b = 
{
   flags = SHOW;
}
void makeATouchable ()
{
   reset(a,UNTOUCHABLE);
}



Here PANEL * a is visible in the screen but not for the mouse.PANEL * b is visible in the screen as well as for the mouse.

MakeATouchable will reset the UNTOUCHABLE flag and make PANEL * a also visible for the mouse.

If u need to make it UNTOUCHABLE again use "set(PANEL,UNTOUCHABLE);".


Keep smiling laugh
http://translation.babylon.com/ - Translate many languages
Re: How to make only one panel touchable [Re: Yashas] #412750
12/02/12 13:42
12/02/12 13:42
Joined: Mar 2003
Posts: 1,524
Canada
Stansmedia Offline OP
Serious User
Stansmedia  Offline OP
Serious User

Joined: Mar 2003
Posts: 1,524
Canada
Ah. I don't know why I was stressing! All I had to do was add a variable comparison and a return to the functions called from clickable entities, and set the panels. I just made them invisible instead of untouchable. Ugh. I gotta stop crying wolf tongue Thanks guys lol


Decessus - 80% done. 100% abandoned.
GET MY ANDROID GAME! https://play.google.com/store/apps/details?id=com.lasertrain.zspinballfree&hl=en

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