|
Re: Add view property for panel
[Re: capanno]
#65287
03/09/06 14:55
03/09/06 14:55
|
Joined: Aug 2005
Posts: 1,558 HK
vlau
OP
Serious User
|
OP
Serious User
Joined: Aug 2005
Posts: 1,558
HK
|
Quote:
Its 2 lines of scripting!
Yes, you're right , but if I have 10 or more panels shown on 1 view/camera only?
With this feature, you don't need to invisible panel 1, panel 2, panel 3.....while switch to another camera view.
Hope that it can be done!!!
|
|
|
Re: Add view property for panel
[Re: PHeMoX]
#65289
03/14/06 16:24
03/14/06 16:24
|
Joined: Mar 2003
Posts: 569
FRAJO
User
|
User
Joined: Mar 2003
Posts: 569
|
Could easily be done with a small pulg-in.
-------------------------------------------
ICQ: 242543712
Ich bin nicht hier und bin nicht da.
Wo bin ich dann?
".."
("")
^ ^
This is the evil vampire bunny. Copy and paste him into your signiture to help him achieve world domination. Yeah
|
|
|
Re: Add view property for panel
[Re: FRAJO]
#65290
03/14/06 17:02
03/14/06 17:02
|
Joined: Aug 2005
Posts: 1,558 HK
vlau
OP
Serious User
|
OP
Serious User
Joined: Aug 2005
Posts: 1,558
HK
|
Quote:
Well you could also try to merge some of the panels together, so you have 1 big background panel instead of several smaller ones, but I see your point ..
How can you do that?
|
|
|
Re: Add view property for panel
[Re: vlau]
#65291
03/14/06 18:02
03/14/06 18:02
|
Joined: Mar 2003
Posts: 569
FRAJO
User
|
User
Joined: Mar 2003
Posts: 569
|
smething like that: DLL_RegisterPanel(PANEL*,VIEW*); DLL_UnregisterPanel(PANEL*); DLL_SetVisibility(VIEW*);// set the visible flag for all registered panels If I have time I'll write that plug-in. EDIT: Took the time and wrote it: Here it is ( wasnt that fast ? ) It should work.
Last edited by FRAJO; 03/14/06 19:23.
|
|
|
Re: Add view property for panel
[Re: FRAJO]
#65292
03/15/06 03:49
03/15/06 03:49
|
Joined: Aug 2005
Posts: 1,558 HK
vlau
OP
Serious User
|
OP
Serious User
Joined: Aug 2005
Posts: 1,558
HK
|
Thank you, FRAJO. EDIT ---- Great! Work perfectly. You should put it into Wiki page. BTW, should I issue DLL_UnregisterPanel(_Panel), DLL_UnregisterAllPanelsOfView(_View) when exit the game or doing that when the panel/view are no longer necessary in the game? Thank you so much.
Last edited by vlau; 03/15/06 14:33.
|
|
|
Re: Add view property for panel
[Re: vlau]
#65293
03/15/06 15:55
03/15/06 15:55
|
Joined: Mar 2003
Posts: 569
FRAJO
User
|
User
Joined: Mar 2003
Posts: 569
|
On game exit all ressources are freed.
EDIT: you dont have to pass a valid view pointer. You can also use IDs except 0. So you can have many groups not bound to any view.
Ex:
#define ID_GROUP1,1;//dont use 0
DLL_RegisterPanel(MyPan,ID_GROUP1);
EDIT2: Added to wiki.
Last edited by FRAJO; 03/15/06 19:12.
-------------------------------------------
ICQ: 242543712
Ich bin nicht hier und bin nicht da.
Wo bin ich dann?
".."
("")
^ ^
This is the evil vampire bunny. Copy and paste him into your signiture to help him achieve world domination. Yeah
|
|
|
|