Gamestudio Links
Zorro Links
Newest Posts
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
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (VoroneTZ, TipmyPip), 1,333 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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 | 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