your animnation:
search the aums fot "animated panel"
but don't use a gif file, use png, tga, bmp, pcx instead!
your button and your main menu:
Use the manual, search for PANEL, button, Panel Flags
The description is very clear and you have good samples!
but one hint to you:
PANEL* pan_mainmenu =
{
flags = SHOW;
button(32,32,"button.bmp","button.bmp","button.bmp",ClickEvent,NULL,NULL);
}
function ClickEvent()
{
error("Button clicked!");
}
funtion mouse_startup()
{
mouse_mode = 1;
mouse_pointer = 3;
while(1)
{
vec_set(mouse_pos,mouse_cursor);
wait(1);
}
}
function main()
{
video_set(800,600,32,2);
}