Ive got an image that has 2 layers, the backgound and foreground. Im trying to add a button to the top of the picture, and the code ive got doesnt show the button. Any advice?
////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
////////////////////////////////////////////////////////////////////
BMAP* firebackground = "awesome-fire-dragon-ablaze.jpg"; // dragon fire background with button on it
PANEL* first_pan = // my first panel
{
pos_x = -40;
pos_y = 0;
layer = 1;
bmap = firebackground;
button(-270, -100, "stopclicked.jpg", "stopnormal.jpg", "stopnormal.jpg", quit_program, NULL, NULL);
flags = OVERLAY | VISIBLE;
}
BMAP* pngRobot = "LDDScreenShot1.png"; // robot in foreground
PANEL* second_panel =
{
pos_x = -270;
pos_y = -100;
layer = 2;
bmap = pngRobot;
flags = OVERLAY | VISIBLE;
}
/////////////////////////////////////////////////////////////////////
function main ()
{
video_mode = 7;
screen_color.red = 100;
}
function quit_program()
{
while (key_any) {wait (1);}
sys_exit(NULL);
}