Why are none of the panels showing up? The following is the generated script: All I did was get rid of the menu code. I included this generated script from main...??
Code:
PANEL* pa_2 = 
{
bmap="simple_2.tga";
layer=3 ;
pos_x=120 ;
pos_y=300 ;
scale_x=9.665 ;
scale_y=7.176 ;
angle=153.104 ;
}
PANEL* pa_4 = 
{
bmap="simple_4.tga";
layer=5 ;
pos_x=220 ;
pos_y=120 ;
scale_x=2.825 ;
scale_y=2.825 ;
}
PANEL* pa_6 = 
{
bmap="simple_6.tga";
layer=7 ;
pos_x=240 ;
pos_y=140 ;
scale_x=1.497 ;
scale_y=0.286 ;
}
BMAP* roll_primary_0="roll_primary_0.tga";
BMAP* roll_primary_1="roll_primary_1.tga";
BMAP* roll_primary_2="roll_primary_2.tga";
PANEL* pa_7 = 
{
bmap=roll_primary_0;
button(0,0,roll_primary_2,roll_primary_0,roll_primary_1,NULL,NULL,NULL);
layer=8 ;
pos_x=280 ;
pos_y=140 ;
flags=OVERLAY;
}
void set_panels_startup()
{
while(1)
{
wait(5);
}
}


function roll_primary()
{
// Enter function content...
random(10);
} 



This is the simple main script which calls it:

Code:
////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
#include <panels.c>

var a = 1;
var b = 2;
var c = 0;

/////////////////////////////////////////////////////////////////////

/*PANEL* panDisplay =
{
	digits(35, 10, "a = %0.f", *, 1, a);
	digits(35, 19, "b = %0.f", *, 1, b);
	digits(35, 28, "c = %0.f", *, 1, c);
	flags = VISIBLE;
}*/

/////////////////////////////////////////////////////////////////////
function test()
{
	var counter = 1;
	while (counter > 0)
	{
		randomize();
      a=random(15)+3;
      b=random(15)+3;
		c=random(15)+3;
		wait (1);
		counter = counter -1;
	}
}
function main()
{
	video_mode = 8; // create a program window of 1024x768 pixels
	//screen_color.blue = 150; // and make its background dark blue
   test();
}