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,633 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
showing and hiding panels question #360160
02/22/11 15:02
02/22/11 15:02
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
Hi guys,

I was seeing NHA RPG template 2.0 mainmenu script, and found a code which shows and hides panels, but it doesn't work in my script.

Code:
mainmenu_pan.visible = true;



I got an error saying that visible is not a member of panel.

Than I looked in the GSmanual and found that visible is now a obsolete keyword, 'show' is now used for it.

So I changed the code to this;

Code:
mainmenu_pan.show = true;



But I get he same error saying that show is not a member of panel.

Anyone knowing what I'm doing wrong? Thanks in advance.

Re: showing and hiding panels question [Re: reknak] #360168
02/22/11 16:06
02/22/11 16:06
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
maybe you shouldn't use c-script...
instead i would use the lite-c flag system:
Code:
set(mainmenu_pan,SHOW);




Visit my site: www.masterq32.de
Re: showing and hiding panels question [Re: MasterQ32] #360242
02/22/11 21:27
02/22/11 21:27
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
and if I want to the hide the panel? Should I than use this for showing and hiding the panel?:

Code:
toggle(mainmenu_pan,SHOW);



Re: showing and hiding panels question [Re: reknak] #360244
02/22/11 21:34
02/22/11 21:34
Joined: Apr 2005
Posts: 274
austria
Ascalon Offline
Member
Ascalon  Offline
Member

Joined: Apr 2005
Posts: 274
austria
use set(mainmenue_pan,SHOW); to show your panel and use
reset(mainmenue_pan,SHOW); to hide a panel
with toggle(mainmenue_pan,SHOW); you can switch always between showing and hiding. it depends on what yo just need


my webside : www.ascalon.jimdo.de
Re: showing and hiding panels question [Re: Ascalon] #360249
02/22/11 21:49
02/22/11 21:49
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
Thanks for the clarification!


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