home *** CD-ROM | disk | FTP | other *** search
- (*
- * ALERT.PAS
- *)
-
- unit alert;
-
- interface
-
- uses gem;
-
- const
-
- macnote_data : array[0..63] of word =
- (
- $FFFF, $FFFF, $807F, $FFFF, $807F, $FFFF, $807F, $FFFF,
- $807F, $FFFF, $807F, $C0FF, $887F, $003F, $887E, $001F,
- $887C, $000F, $8078, $0C07, $8078, $0C07, $8070, $CCC3,
- $8070, $EDC3, $8070, $7F83, $8070, $3F03, $8073, $FFF3,
- $8073, $FFF3, $8070, $3F03, $8070, $7F83, $8070, $EDC3,
- $87F0, $CCC3, $81F0, $0C03, $81F0, $0C07, $81F0, $0007,
- $81F0, $000F, $81E0, $001F, $8F80, $007F, $81FF, $FFFF,
- $81FF, $FFFF, $81FF, $FFFF, $81FF, $FFFF, $FFFF, $FFFF
- );
-
- macwait_data : array[0..63] of word =
- (
- $FFFF, $FFFF, $807F, $FFFF, $807F, $FFFF, $807F, $FFFF,
- $807F, $FFFF, $807F, $C0FF, $887F, $003F, $887E, $001F,
- $887C, $000F, $8078, $3F07, $8078, $7F87, $8070, $FFC3,
- $8070, $E1C3, $8070, $E1C3, $8070, $03C3, $8070, $0783,
- $8070, $0F03, $8070, $1E03, $8070, $1C03, $8070, $1C03,
- $87F0, $0003, $81F0, $1C03, $81F0, $1C07, $81F0, $1C07,
- $81F0, $000F, $81E0, $001F, $8F80, $007F, $81FF, $FFFF,
- $81FF, $FFFF, $81FF, $FFFF, $81FF, $FFFF, $FFFF, $FFFF
- );
-
- macstop_data : array[0..63] of word =
- (
- $FFFF, $FFFF, $807F, $FFFF, $807F, $FFFF, $807F, $FFFF,
- $807F, $FFFF, $807F, $C0FF, $887F, $003F, $887E, $001F,
- $887C, $000F, $8078, $1C07, $8078, $1C07, $8070, $1C03,
- $8070, $1C03, $8070, $1C03, $8070, $1C03, $8070, $1C03,
- $8070, $1C03, $8070, $1C03, $8070, $1C03, $8070, $1C03,
- $87F0, $0003, $81F0, $1C03, $81F0, $1C07, $81F0, $1C07,
- $81F0, $000F, $81E0, $001F, $8F80, $007F, $81FF, $FFFF,
- $81FF, $FFFF, $81FF, $FFFF, $81FF, $FFFF, $FFFF, $FFFF
- );
-
- calc_data : array[0..63] of word =
- (
- $1fff, $ffe0, $7fff, $fff0, $6000, $0038, $dfff, $ffd8,
- $dfff, $ffdc, $dfff, $ffde, $dfff, $ffdf, $c000, $001f,
- $df7d, $f7df, $d145, $145f, $d145, $145f, $df7d, $f7df,
- $c000, $001f, $df7d, $f7df, $d145, $145f, $d145, $145f,
- $df7d, $f7df, $c000, $001f, $df7d, $f7df, $d145, $145f,
- $d145, $145f, $df7d, $f7df, $c000, $001f, $df7d, $f7df,
- $d145, $145f, $d145, $145f, $df7d, $f7df, $6000, $003f,
- $7fff, $ffff, $1fff, $ffff, $07ff, $fffe, $03ff, $fff8
- );
-
- gem2note_data : array[0..63] of word =
- (
- $0000, $0000, $0000, $0000, $0000, $0700, $0000, $0F80,
- $0000, $0F80, $0000, $0F80, $0000, $0F80, $0000, $0F80,
- $0000, $0F80, $0000, $0F80, $0000, $0F80, $0000, $0F80,
- $0079, $EF9C, $0EFB, $EFBC, $1EFB, $EFBC, $1EFB, $EF7C,
- $16AA, $AF7C, $1EFB, $EF7C, $0D75, $DCBC, $038E, $37F8,
- $1FFF, $DFF8, $1FFF, $7FF0, $1FFF, $FFF0, $1FFD, $FFE0,
- $1FFF, $FFC0, $0FFD, $FF80, $07FF, $FE00, $01FF, $F400,
- $015F, $FC00, $01FF, $FC00, $01FF, $FC00, $0000, $0000
- );
-
- gem2wait_data : array[0..63] of word =
- (
- $0000, $0000, $001F, $FE00, $007F, $FF80, $00FF, $FFC0,
- $01FF, $FFE0, $01F8, $07E0, $01F0, $03E0, $01F0, $03E0,
- $00E0, $03E0, $0000, $07C0, $0000, $0FC0, $0000, $1F80,
- $0000, $3F00, $0000, $7E00, $0000, $FC00, $0001, $F800,
- $0003, $F000, $0003, $E000, $0007, $C000, $0007, $C000,
- $0007, $C000, $0007, $C000, $0007, $C000, $0003, $8000,
- $0000, $0000, $0000, $0000, $0000, $0000, $0007, $C000,
- $000F, $E000, $000F, $E000, $0007, $C000, $0000, $0000
- );
-
- gem2stop_data : array[0..63] of word =
- (
- $0000, $0000, $0001, $C000, $0073, $E000, $00FB, $E700,
- $00FB, $EF80, $1CFB, $EF80, $3EFB, $EF80, $3EFB, $EF80,
- $3EFB, $EF80, $3EFB, $EF80, $3EFB, $EF80, $3EFB, $EF80,
- $3EFB, $EF9C, $3EFB, $EFBC, $3EFB, $EFBC, $3FFF, $FF7C,
- $3FFF, $FF7C, $3FFF, $FF7C, $3FFF, $FEFC, $3FFF, $F7F8,
- $3FFF, $DFF8, $3FFF, $7FF0, $3FFF, $FFF0, $3FFD, $FFE0,
- $1FFD, $FFC0, $0FFF, $FF80, $07FF, $FF00, $03FF, $FE00,
- $03FF, $FE00, $03FF, $FE00, $03FF, $FE00, $0000, $0000
- );
-
- gem1note_data : array[0..63] of word =
- (
- $0003, $C000, $0006, $6000, $000D, $B000, $001B, $D800,
- $0037, $EC00, $006F, $F600, $00DC, $3B00, $01BC, $3D80,
- $037C, $3EC0, $06FC, $3F60, $0DFC, $3FB0, $1BFC, $3FD8,
- $37FC, $3FEC, $6FFC, $3FF6, $DFFC, $3FFB, $BFFC, $3FFD,
- $BFFC, $3FFD, $DFFC, $3FFB, $6FFC, $3FF6, $37FC, $3FEC,
- $1BFF, $FFD8, $0DFF, $FFB0, $06FC, $3F60, $037C, $3EC0,
- $01BC, $3D80, $00DC, $3B00, $006F, $F600, $0037, $EC00,
- $001B, $D800, $000D, $B000, $0006, $6000, $0003, $C000
- );
-
- gem1wait_data : array[0..63] of word =
- (
- $3FFF, $FFFC, $C000, $0003, $9FFF, $FFF9, $BFFF, $FFFD,
- $DFF8, $3FFB, $5FE0, $0FFA, $6FC0, $07F6, $2F83, $83F4,
- $3787, $C3EC, $1787, $C3E8, $1BFF, $83D8, $0BFF, $07D0,
- $0DFE, $0FB0, $05FC, $1FA0, $06FC, $3F60, $02FC, $3F40,
- $037C, $3EC0, $017C, $3E80, $01BF, $FD80, $00BF, $FD00,
- $00DC, $3B00, $005C, $3A00, $006C, $3600, $002F, $F400,
- $0037, $EC00, $0017, $E800, $001B, $D800, $000B, $D000,
- $000D, $B000, $0005, $A000, $0006, $6000, $0003, $C000
- );
-
- gem1stop_data : array[0..63] of word =
- (
- $007F, $FE00, $00C0, $0300, $01BF, $FD80, $037F, $FEC0,
- $06FF, $FF60, $0DFF, $FFB0, $1BFF, $FFD8, $37FF, $FFEC,
- $6FFF, $FFF6, $DFFF, $FFFB, $B181, $860D, $A081, $0205,
- $A4E7, $3265, $A7E7, $3265, $A3E7, $3265, $B1E7, $3205,
- $B8E7, $320D, $BCE7, $327D, $A4E7, $327D, $A0E7, $027D,
- $B1E7, $867D, $BFFF, $FFFD, $DFFF, $FFFB, $6FFF, $FFF6,
- $37FF, $FFEC, $1BFF, $FFD8, $0DFF, $FFB0, $06FF, $FF60,
- $037F, $FEC0, $01BF, $FD80, $00C0, $0300, $007F, $FE00
- );
-
- happy_data : array[0..63] of word =
- (
- $7FFF, $FFFE, $FFFF, $FFFF, $FFE0, $07FF, $FF80, $01FF,
- $FE00, $007F, $FC00, $003F, $F800, $001F, $F000, $000F,
- $F000, $000F, $E030, $0C07, $E078, $1E07, $C078, $1E03,
- $C078, $1E03, $C030, $0C03, $C000, $0003, $C000, $0003,
- $C000, $0003, $C000, $0003, $C080, $0103, $C0C0, $0303,
- $C040, $0203, $E060, $0607, $E038, $1C07, $F01F, $F80F,
- $F007, $E00F, $F800, $001F, $FC00, $003F, $FE00, $007F,
- $FF80, $01FF, $FFE0, $07FF, $FFFF, $FFFF, $7FFF, $FFFE
- );
- sad_data : array[0..63] of word =
- (
- $7FFF, $FFFE, $FFFF, $FFFF, $FFE0, $07FF, $FF80, $01FF,
- $FE00, $007F, $FC00, $003F, $F800, $001F, $F000, $000F,
- $F000, $000F, $E030, $0C07, $E078, $1E07, $C078, $1E03,
- $C078, $1E03, $C030, $0C03, $C000, $0003, $C000, $0003,
- $C000, $0003, $C000, $0003, $C003, $E003, $C00F, $F803,
- $C01C, $1C03, $E030, $0607, $E020, $0207, $F060, $030F,
- $F040, $010F, $F800, $001F, $FC00, $003F, $FE00, $007F,
- $FF80, $01FF, $FFE0, $07FF, $FFFF, $FFFF, $7FFF, $FFFE
- );
-
- bomb_data : array[0..63] of word =
- (
- $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000,
- $0000, $C790, $0000, $F844, $003D, $F830, $01FF, $FCB2,
- $07FF, $FC00, $0FFF, $F848, $1F3F, $F800, $1E67, $F800,
- $3FCF, $FC00, $3CFF, $FC00, $3C9F, $FC00, $7F9F, $FE00,
- $7FFF, $FE00, $7FFF, $FE00, $7FFF, $FE00, $3FFF, $FC00,
- $3FFF, $FC00, $3FFF, $FC00, $1FFF, $F800, $1FFF, $F800,
- $0FFF, $F000, $07FF, $E000, $01FF, $8000, $003C, $0000,
- $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000
- );
- info_data : array[0..63] of word =
- (
- $3FFF, $FFFC, $7FFF, $FFFE, $FFFC, $3FFF, $FFF8, $1FFF,
- $FFF0, $0FFF, $FFF0, $0FFF, $FFF0, $0FFF, $FFF0, $0FFF,
- $FFF8, $1FFF, $FFFC, $3FFF, $FFFF, $FFFF, $FFFF, $FFFF,
- $FF80, $0FFF, $FF80, $0FFF, $FFF0, $0FFF, $FFF0, $0FFF,
- $FFF0, $0FFF, $FFF0, $0FFF, $FFF0, $0FFF, $FFF0, $0FFF,
- $FFF0, $0FFF, $FFF0, $0FFF, $FFF0, $0FFF, $FFF0, $0FFF,
- $FFF0, $0FFF, $FFF0, $0FFF, $FFF0, $0FFF, $FF80, $01FF,
- $FF80, $01FF, $FFFF, $FFFF, $7FFF, $FFFE, $3FFF, $FFFC
- );
-
- inversnote_data : array[0..63] of word =
- (
- $7FFF, $FFFE, $FFFF, $F8FF, $FFFF, $F07F, $FFFF, $F07F,
- $FFFF, $F07F, $FFFF, $F07F, $FFFF, $F07F, $FFFF, $F07F,
- $FFFF, $F07F, $FFFF, $F07F, $FFFF, $F07F, $FF86, $1063,
- $F104, $1043, $E104, $1043, $E104, $1083, $E955, $5083,
- $E104, $1083, $F28A, $2343, $FC71, $C807, $E000, $2007,
- $E000, $800F, $E000, $000F, $E002, $001F, $E000, $003F,
- $F002, $007F, $F800, $01FF, $FE00, $0BFF, $FEA0, $03FF,
- $FE00, $03FF, $FE00, $03FF, $FFFF, $FFFF, $7FFF, $FFFE
- );
-
- inverswait_data : array[0..63] of word =
- (
- $7FFF, $FFFE, $FFC0, $03FF, $FF00, $00FF, $FE00, $007F,
- $FC00, $003F, $FC0F, $F03F, $FC1F, $F83F, $FC1F, $F83F,
- $FE3F, $F83F, $FFFF, $F07F, $FFFF, $E07F, $FFFF, $C0FF,
- $FFFF, $81FF, $FFFF, $03FF, $FFFE, $07FF, $FFFC, $0FFF,
- $FFF8, $1FFF, $FFF8, $3FFF, $FFF0, $7FFF, $FFF0, $7FFF,
- $FFF0, $7FFF, $FFF0, $7FFF, $FFF0, $7FFF, $FFF8, $FFFF,
- $FFFF, $FFFF, $FFFF, $FFFF, $FFFF, $FFFF, $FFF0, $7FFF,
- $FFE0, $3FFF, $FFE0, $3FFF, $FFF0, $7FFF, $7FFF, $FFFE
- );
- inversstop_data : array[0..63] of word =
- (
- $7FFF, $FFFE, $FFFE, $3FFF, $FF8C, $1FFF, $FF04, $18FF,
- $FF04, $107F, $E304, $107F, $C104, $107F, $C104, $107F,
- $C104, $107F, $C104, $107F, $C104, $107F, $C104, $107F,
- $C104, $1063, $C104, $1043, $C104, $1043, $C000, $0083,
- $C000, $0083, $C000, $0083, $C000, $0103, $C000, $0807,
- $C000, $2007, $C000, $800F, $C000, $000F, $C002, $001F,
- $E002, $003F, $F000, $007F, $F800, $00FF, $FC00, $01FF,
- $FC00, $01FF, $FC00, $01FF, $FC00, $01FF, $7FFF, $FFFE
- );
-
- macnote : BITBLK =
- (
- bi_pdata : @macnote_data;
- bi_wb : 4;
- bi_hl : 32;
- bi_x : 0;
- bi_y : 0;
- bi_color : $0001;
- );
-
- macwait : BITBLK =
- (
- bi_pdata : @macwait_data;
- bi_wb : 4;
- bi_hl : 32;
- bi_x : 0;
- bi_y : 0;
- bi_color : $0001;
- );
-
- macstop : BITBLK =
- (
- bi_pdata : @macstop_data;
- bi_wb : 4;
- bi_hl : 32;
- bi_x : 0;
- bi_y : 0;
- bi_color : $0001;
- );
-
- calc : BITBLK =
- (
- bi_pdata : @calc_data;
- bi_wb : 4;
- bi_hl : 32;
- bi_x : 0;
- bi_y : 0;
- bi_color : $0001;
- );
-
- gem2note : BITBLK =
- (
- bi_pdata : @gem2note_data;
- bi_wb : 4;
- bi_hl : 32;
- bi_x : 0;
- bi_y : 0;
- bi_color : $0001;
- );
-
- gem2wait : BITBLK =
- (
- bi_pdata : @gem2wait_data;
- bi_wb : 4;
- bi_hl : 32;
- bi_x : 0;
- bi_y : 0;
- bi_color : $0001;
- );
-
- gem2stop : BITBLK =
- (
- bi_pdata : @gem2stop_data;
- bi_wb : 4;
- bi_hl : 32;
- bi_x : 0;
- bi_y : 0;
- bi_color : $0001;
- );
-
- gem1note : BITBLK =
- (
- bi_pdata : @gem1note_data;
- bi_wb : 4;
- bi_hl : 32;
- bi_x : 0;
- bi_y : 0;
- bi_color : $0001;
- );
-
-
- gem1wait : BITBLK =
- (
- bi_pdata : @gem1wait_data;
- bi_wb : 4;
- bi_hl : 32;
- bi_x : 0;
- bi_y : 0;
- bi_color : $0001;
- );
-
- gem1stop : BITBLK =
- (
- bi_pdata : @gem1stop_data;
- bi_wb : 4;
- bi_hl : 32;
- bi_x : 0;
- bi_y : 0;
- bi_color : $0001;
- );
-
- happy : BITBLK =
- (
- bi_pdata : @happy_data;
- bi_wb : 4;
- bi_hl : 32;
- bi_x : 0;
- bi_y : 0;
- bi_color : $0001;
- );
-
- sad : BITBLK =
- (
- bi_pdata : @sad_data;
- bi_wb : 4;
- bi_hl : 32;
- bi_x : 0;
- bi_y : 0;
- bi_color : $0001;
- );
-
- bomb : BITBLK =
- (
- bi_pdata : @bomb_data;
- bi_wb : 4;
- bi_hl : 32;
- bi_x : 0;
- bi_y : 0;
- bi_color : $0001;
- );
-
- info : BITBLK =
- (
- bi_pdata : @info_data;
- bi_wb : 4;
- bi_hl : 32;
- bi_x : 0;
- bi_y : 0;
- bi_color : $0001;
- );
-
- inversnote : BITBLK =
- (
- bi_pdata : @inversnote_data;
- bi_wb : 4;
- bi_hl : 32;
- bi_x : 0;
- bi_y : 0;
- bi_color : $0001;
- );
-
- inverswait : BITBLK =
- (
- bi_pdata : @inverswait_data;
- bi_wb : 4;
- bi_hl : 32;
- bi_x : 0;
- bi_y : 0;
- bi_color : $0001;
- );
-
- inversstop : BITBLK =
- (
- bi_pdata : @inversstop_data;
- bi_wb : 4;
- bi_hl : 32;
- bi_x : 0;
- bi_y : 0;
- bi_color : $0001;
- );
-
-
- function do_alert(bitblock: BITBLKPtr; otext, obuttons: pchar;
- bdefault, bundo: integer): integer;
-
-
-