2 registered members (TipmyPip, 1 invisible),
18,789
guests, and 8
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
how to disable the visibility of PANE...
#204676
04/30/08 18:19
04/30/08 18:19
|
Joined: Apr 2008
Posts: 28 India,Kolkata
ayan
OP
Newbie
|
OP
Newbie
Joined: Apr 2008
Posts: 28
India,Kolkata
|
ok now i have...
PANEL* some_panel =
{
bmap = "some_pic.pcx";
layer = 10;
pos_x = 0;
pos_y = 0;
flags = VISIBLE; // is it possible to flag it invisible here and makle visible
// later in my code
}
now what i need to do is make this PANEL "some_panel" invisible after some conditions are met and make other PANEL visible...
|
|
|
Re: how to disable the visibility of PANE...
[Re: ayan]
#204681
04/30/08 18:24
04/30/08 18:24
|
Joined: Oct 2007
Posts: 5,211 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
|
if you are usin lite-c its:
reset(some_panel,VISIBLE);
c-script:
some_panel.VISIBLE = off;
3333333333
|
|
|
Re: how to disable the visibility of PANE...
[Re: ayan]
#204689
04/30/08 18:42
04/30/08 18:42
|
Joined: Oct 2007
Posts: 5,211 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
|
use INVISIBLE flag while declaring or dont use any flags.
and as you defining panels like in your first post you are usin lite-c
3333333333
|
|
|
Re: how to disable the visibility of PANE...
[Re: Quad]
#204693
05/01/08 01:48
05/01/08 01:48
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Don't use INVISIBLE on panels. Simply ommit the VISIBLE flag.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: how to disable the visibility of PANE...
[Re: ayan]
#204735
05/01/08 12:58
05/01/08 12:58
|
Joined: Oct 2007
Posts: 5,211 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
|
Dont know which version you are using(a6/a7)
but afaik all a7 versions support both c-sctipt an lite-c [Lite-c versions only support lite-c]
and if you are able to use the panel in you first post, then you cn use lite-c.
And yes,checked the manual, panels doesnt have the INVISIBLE flag.
just dont use any flags , delete the flags = VISIBLE; line from definition and it will be invisible.
to make it visible at runtime you can use set(some_panel,VISIBLE);
toggle(some_panel,VISIBLE); toggles the visibility.
3333333333
|
|
|
|