ok, here the correct code, is tested

Code:
#define PRAGMA_PATH "pic"

#include <acknex.h>
#include <default.c>

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

BMAP* menu_tga = "Menu.tga" ;
BMAP* LD_tga = "LD.tga" ;
BMAP* SG_tga = "SG.tga" ;
BMAP* NG_tga = "NG.tga" ;
BMAP* HM_tga = "HM.tga" ;
BMAP* CTM_tga = "CTM.tga" ;
BMAP* EX_tga = "EX.tga" ;

///////////////////////////////////////////////////////////////////////
function NGF ()
{
level_load("level_one.wmb");
beep();
}

PANEL* menu =
{
pos_x = 120 ;
pos_y = 10 ;
layer = 10 ;
bmap = menu_tga ;
button (250, 134, NG_tga, NG_tga, NG_tga, NGF, NULL, NULL);
flags = OVERLAY | SHOW;
}
function main ()
{
mouse_mode = 4 ;

video_mode = 7 ;
video_screen = 2 ;
}



use for the panel and button .bmp or .pcx
or .tga with a alpha-chanel (32bit)

Last edited by jane; 10/23/10 21:09.