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
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,346 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
Page 2 of 2 1 2
Re: Im having 2 problems to do with panels [Re: xbox] #372935
06/05/11 21:19
06/05/11 21:19
Joined: Apr 2009
Posts: 81
J
JakeBilbe Offline OP
Junior Member
JakeBilbe  Offline OP
Junior Member
J

Joined: Apr 2009
Posts: 81
Thanks a bunch buddy works perfect.

Re: Im having 2 problems to do with panels [Re: JakeBilbe] #372948
06/06/11 02:10
06/06/11 02:10
Joined: Nov 2006
Posts: 497
Ohio
xbox Offline
Senior Member
xbox  Offline
Senior Member

Joined: Nov 2006
Posts: 497
Ohio
Hey, no problem man!! Glad to hear it works. grin

Re: Im having 2 problems to do with panels [Re: xbox] #372974
06/06/11 11:21
06/06/11 11:21
Joined: May 2008
Posts: 257
D
djfeeler Offline
Member
djfeeler  Offline
Member
D

Joined: May 2008
Posts: 257
if you want know if a panel is visible the code is :

Code:
if(is(panel,SHOW))
{
//code here
}



or not visible

Code:
if(!is(panel,SHOW))
{
//code here
}



Last edited by djfeeler; 06/06/11 11:24.
Re: Im having 2 problems to do with panels [Re: xbox] #373085
06/07/11 12:29
06/07/11 12:29
Joined: Apr 2011
Posts: 75
Malta
E
Ercoles Offline
Junior Member
Ercoles  Offline
Junior Member
E

Joined: Apr 2011
Posts: 75
Malta
I use the following method and it always works without errors:

To show it I use:

inventory_main.flags = SHOW;

To hide it I use:

inventory_main.flags &= ~SHOW;

Re: Im having 2 problems to do with panels [Re: Ercoles] #373094
06/07/11 14:08
06/07/11 14:08
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
Originally Posted By: Ercoles
I use the following method and it always works without errors:

To show it I use:

inventory_main.flags = SHOW;

To hide it I use:

inventory_main.flags &= ~SHOW;
That's somewhat flawed

inventory_main.flags = SHOW; will reset all other flags set, you need to use inventory_main.flags |= SHOW; to set just this flag
if you're struggling with this you'd be better using the macros predefined set() and reset()

also look at toggle(), this will save checking if it's shown in the first place

Page 2 of 2 1 2

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