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
1 registered members (TipmyPip), 18,606 guests, and 5 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 buttons #143541
07/26/07 12:59
07/26/07 12:59
Joined: Aug 2005
Posts: 199
houston
S
seneca Offline OP
Member
seneca  Offline OP
Member
S

Joined: Aug 2005
Posts: 199
houston
is it possible to dynamically change whether a button is visible or not during run-time.

i need something similar to this:
http://www.coniserver.net/ubbthreads/showflat.php/Cat/0/Number/770585/an/0/page/0#Post770585

I have a panel that displays buttons (names) of previously visited locations. the player can bring up the menu and select the location and teleport there, but only places that he has already visited. I don't want the player to see places that he has NOT already visited.

i am having problems programming this. The manual says i can use the dot modifier, but not to access the indivisual buttons.

Can someone help me? Any suggestions would be appreciated or perhaps maybe there is a different method?


a8 commercial
Re: panel buttons [Re: seneca] #143542
07/26/07 13:23
07/26/07 13:23
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
You should take a look at "pan_setbmap"
Here: http://manual.conitec.net/pan_setbmap.htm

The idea:
Set the buttons which should be invisible to a completly black bitmap.
This way they are "hidden", of course you might need to add an if statement to the function of the button to check if it is visible (=> proceed) or not.

Re: panel buttons [Re: Xarthor] #143543
07/26/07 22:47
07/26/07 22:47
Joined: Aug 2005
Posts: 199
houston
S
seneca Offline OP
Member
seneca  Offline OP
Member
S

Joined: Aug 2005
Posts: 199
houston
thank you, i do believe this will work well.


a8 commercial
Re: panel buttons [Re: seneca] #143544
07/26/07 23:27
07/26/07 23:27
Joined: Aug 2005
Posts: 199
houston
S
seneca Offline OP
Member
seneca  Offline OP
Member
S

Joined: Aug 2005
Posts: 199
houston
well, i thought it would, but it seems that's an lite-c function. I'm still using c-script. Is there, perhaps, similar function in c-script. I really am not ready to convert all those pages of code just yet.

i think, maybe i should create several panels to cover each button, and as the player goes to each location have the script turn off that particular panel.

i will see how that works out.

Last edited by seneca; 07/26/07 23:38.

a8 commercial
Re: panel buttons [Re: seneca] #143545
07/27/07 08:22
07/27/07 08:22
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
No that one is definatly c-script.


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