Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 1,086 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Add view property for panel #65285
03/01/06 17:17
03/01/06 17:17
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline OP
Serious User
vlau  Offline OP
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
It'll be nice to add a "view" property for panel,
for example :

view myNewCamera
{
...
...
}

panel myPanel
{
view = myNewCamera;
...
...
}

then myPanel only shown on myNewCamera,
if I change back to default camera,
myPanel will disappear automatically.

Re: Add view property for panel [Re: vlau] #65286
03/09/06 09:49
03/09/06 09:49
Joined: Nov 2004
Posts: 1,011
South Africa
capanno Offline
Serious User
capanno  Offline
Serious User

Joined: Nov 2004
Posts: 1,011
South Africa
Its 2 lines of scripting!

myPanel.visible = on/off; wherever you make your view visible/invisible.



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
V
vlau Offline OP
Serious User
vlau  Offline OP
Serious User
V

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: vlau] #65288
03/14/06 14:53
03/14/06 14:53
Joined: Sep 2002
Posts: 8,177
Netherlands
PHeMoX Offline
Senior Expert
PHeMoX  Offline
Senior Expert

Joined: Sep 2002
Posts: 8,177
Netherlands
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 ..

Cheers


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software
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 Offline
User
FRAJO  Offline
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
V
vlau Offline OP
Serious User
vlau  Offline OP
Serious User
V

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 Offline
User
FRAJO  Offline
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
V
vlau Offline OP
Serious User
vlau  Offline OP
Serious User
V

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 Offline
User
FRAJO  Offline
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

Moderated by  aztec, Spirit 

Gamestudio download | chip programmers | 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