Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (PeroPero, 1 invisible), 858 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to call items from another file? #236408
11/14/08 02:02
11/14/08 02:02
Joined: Jul 2007
Posts: 48
M
MattyTheG Offline OP
Newbie
MattyTheG  Offline OP
Newbie
M

Joined: Jul 2007
Posts: 48
Alright so I was having trouble displaying text on the screen and realized that using PANEL* and digits() had to be a .c file, so I put that into a .c file and used #include <panel.c> at the top of my main.wdl script.

The problem is that everything builds fine, but my panel still doesn't show up. Do I have to call this panel some how in my other script file? I am currently learning C++ for school but it doesn't seem to help much here haha.

Thanks for any help.

Re: How to call items from another file? [Re: MattyTheG] #236409
11/14/08 02:05
11/14/08 02:05
Joined: Aug 2003
Posts: 7,439
Red Dwarf
Michael_Schwarz Offline
Senior Expert
Michael_Schwarz  Offline
Senior Expert

Joined: Aug 2003
Posts: 7,439
Red Dwarf
yourpanelname.flags |= VISIBLE;


"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku
Re: How to call items from another file? [Re: Michael_Schwarz] #236410
11/14/08 02:13
11/14/08 02:13
Joined: Jul 2007
Posts: 48
M
MattyTheG Offline OP
Newbie
MattyTheG  Offline OP
Newbie
M

Joined: Jul 2007
Posts: 48
This is my panel script:

PANEL* scorePan =
{
digits(300,10,"Score %f",Arial#15,1,score);
flags = VISIBLE;
}

When I did scorePan.flags |= VISIBLE; instead of flags = visible; I get an error saying scorePan is not a valid keyword.

I tried scorePan.flags |= VISIBLE; in my main function but i also got the same error.

Re: How to call items from another file? [Re: MattyTheG] #236412
11/14/08 03:03
11/14/08 03:03
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Try #include "panel.c" instead of #include <panel.c>.


Always learn from history, to be sure you make the same mistakes again...
Re: How to call items from another file? [Re: Uhrwerk] #236413
11/14/08 03:14
11/14/08 03:14
Joined: Jul 2007
Posts: 48
M
MattyTheG Offline OP
Newbie
MattyTheG  Offline OP
Newbie
M

Joined: Jul 2007
Posts: 48
Alright I changed it to quotations and no more build errors yet the panel still does not show.

Is using the #include enough or do I need to like define/call it in my main.wdl?

PS: Thanks for that attempts at helping so far smile

Last edited by MattyTheG; 11/14/08 03:14.

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