//////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
//////////////////////////////////////////////////////////////////
BMAP* haupt_pan_bmp = "pan.bmp"; //Das erste Bild
BMAP* ende_pan_bmp = "pan2.bmp";
BMAP* maus_pcx = "mouse.pcx";
FONT* panelfont = "font.tga";
STRING* beenden = " Spiel beenden ?";
//////////////////////////////////////////////////////////////////
function main()
{
video_set(1280,720,32,2); // Bildauflösung
mouse_map = maus_pcx; // Mauszeiger
mouse_mode = 4; // Mausfunktion
}
function quit() // Beendet das Programm
{
sys_exit(NULL);
}
function neu(); // Sollte Level 1 Laden
{
level_load("project.wmb");
}
//////////////////////////////////////////////////////////////////
PANEL* haupt_pan = // Das Hauptmenü
{
pos_x = 0;
pos_y = 0;
layer = 1;
bmap = haupt_pan_bmp;
button_neu (40, 50, "neuc.bmp", "neu.bmp", "neuo.bmp", neu, NULL, NULL); // Dieser Button soll das Level Laden
button_ende (40, 100, "neuc.bmp", "neu.bmp", "neuo.bmp", ende_pan, NULL, NULL); // Dieser Button soll das Panel "ende_pan" und den Text "pantext" einbelden
flags = OVERLAY | VISIBLE;
}
PANEL* ende_pan = // Spiel Beenden ? JA - NEIN
{
pos_x = 200;
pos_y = 310;
layer = 1;
bmap = ende_pan_bmp;
button_ja (60, 50, "neuc.bmp", "neu.bmp", "neuo.bmp", quit, NULL, NULL); // Programm wird beendet
button_nein (280, 50, "neuc.bmp", "neu.bmp", "neuo.bmp", exit_ende_pan, NULL, NULL); // Soll das Panel "ende_pan" und den Text "pantext" schließen
flags = OVERLAY;
}
TEXT* pantext = // Dieser Text soll mit dem Panel "ende_pan" eingebeldet werden
{
pos_x = 300;
pos_y = 320;
font = (panelfont);
layer = 2;
string (beenden);
}