Below is code that adds a panel to a screen. It works!!
My problem is I can't add it to my project .wdl file.
I remove the main function
I have it saved in the template6/code folder with all the wdls.
I saved it as name.c
then i add include
include <script07_2.c>;
to my main wdl.
When i compile my main wdl it says it cannot open name.c
PLEASE ANYBODY HELP!!!
////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
////////////////////////////////////////////////////////////////////
BMAP* first_pcx = "first.pcx"; // my first bmap
PANEL* first_pan = // my first panel
{
pos_x = 0;
pos_y = 0;
layer = 1;
bmap = first_pcx;
flags = OVERLAY | VISIBLE;
}
/////////////////////////////////////////////////////////////////////
function main()
{
video_mode = 7;
screen_color.blue = 150;
}