HI, first of all, I'm new to this.
well, as you might guess, I'm here to ask you to help me.
I'm going through the workshop and made some panels and tried to add a button, but I can't seem to get to press the button.
well, here's the code:
#include <acknex.h>
#include <default.c>
function main ()
{
video_mode = 7;
screen_color.blue = 150;
mouse_mode = 4;
}
BMAP* background = "second.bmp";
BMAP* gras = "gress.bmp";
PANEL* new_background =
{
pos_x = 0;
pos_y = 0;
bmap = background;
layer = 1;
flags = VISIBLE;
}
PANEL* new_ground =
{
pos_x = 0;
pos_y = 0;
bmap = gras;
button (10, 10, "button_clicked.bmp", "button_unpressed.bmp", "button_pressed.bmp", quit_program, NULL, NULL);
layer = 2;
flags = OVERLAY | VISIBLE;
}
function quit_program()
{
while (key_any) {wait (1);}
sys_exit (NULL);
}