home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / spezial / 19 / wesp / wesped.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1990-06-21  |  6.2 KB  |  143 lines

  1. {$A+,B-,D-,E-,F-,I-,L-,N-,O-,R-,S-,V-}
  2. {
  3.   ╓─────────────────────────────────────────────────────────────────────╖
  4.   ║ Generiert durch MASKEDIT PLUS Vers. 5.0 am 20.06.90 um 16:17:29 Uhr ║
  5.   ║                 Autor: Alfonso José Sanz Alonso                     ║
  6.   ╙─────────────────────────────────────────────────────────────────────╜
  7. }
  8.  
  9. UNIT WESPED;
  10. INTERFACE
  11. Uses crt,Masktur4;
  12. Procedure MainMenu__;
  13. Procedure MainMenu(
  14.       VAR w1:Byte;
  15.       VAR w2:Str80;
  16.       VAR w3:Str80;
  17.       VAR w4:Str80;
  18.       VAR w5:Byte;
  19.       VAR w6:Str80;
  20.       VAR w7:Byte;
  21.       VAR w8:Str80;
  22.       VAR w9:Str80;
  23.       neu:Boolean);
  24.  
  25. IMPLEMENTATION
  26.  
  27. Procedure MainMenu__;
  28. Begin
  29.  MP_Initbuffer(TRUE);
  30.  write_fast(1,'░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░');
  31.  write_fast(81,'░░░░░█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█░░░░░░░░░░░░░░█▀▀▀▀▀▀▀▀▀▀▀▀▀▀█░░░░░░');
  32.  write_fast(161,'░░░░░▌  W E S P +   L E V E L E D I T O R  ▐░░░░░░░░░░░░░░█ (c) 1990     █░░░░░░');
  33.  write_fast(241,'░░░░░█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█░░░░░░░░░░░░░░█ Gerald Arend █░░░░░░');
  34.  write_fast(321,'░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█ & toolbox    █░░░░░░');
  35.  write_fast(401,'░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█▄▄▄▄▄▄▄▄▄▄▄▄▄▄█░░░░░░');
  36.  write_fast(481,'░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░');
  37.  write_fast(561,'░░▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒▒░░');
  38.  write_fast(641,'░░▒▒▓╔═ A U S W A H L ═══  ═╗▓▓▓╔═ I N F O ═════════════════════════════╗▓▓▒▒░░');
  39.  write_fast(721,'░░▒▒▓║                       ║▓▓▓║                                       ║▓▓▒▒░░');
  40.  write_fast(801,'░░▒▒▓║  1  EDITIEREN         ║▓▓▓║  Aktuelle Datei:          ║▓▓▒▒░░');
  41.  write_fast(881,'░░▒▒▓║  2  TAUSCHEN          ║▓▓▓║                                       ║▓▓▒▒░░');
  42.  write_fast(961,'░░▒▒▓║  3  EINFÜGEN          ║▓▓▓║    ║▓▓▒▒░░');
  43.  write_fast(1041,'░░▒▒▓║  4  LÖSCHEN           ║▓▓▓║    ║▓▓▒▒░░');
  44.  write_fast(1121,'░░▒▒▓║  5  LADEN             ║▓▓▓║                                       ║▓▓▒▒░░');
  45.  write_fast(1201,'░░▒▒▓║  6  SPEICHERN         ║▓▓▓║                     ║▓▓▒▒░░');
  46.  write_fast(1281,'░░▒▒▓║  7  SPEICHERN & ENDE  ║▓▓▓║                                       ║▓▓▒▒░░');
  47.  write_fast(1361,'░░▒▒▓║                       ║▓▓▓║    ║▓▓▒▒░░');
  48.  write_fast(1441,'░░▒▒▓║ ESC PROGRAMMABBRUCH   ║▓▓▓║    ║▓▓▒▒░░');
  49.  write_fast(1521,'░░▒▒▓║                       ║▓▓▓║                                       ║▓▓▒▒░░');
  50.  write_fast(1601,'░░▒▒▓╚═══════════════════════╝▓▓▓╚═══════════════════════════════════════╝▓▓▒▒░░');
  51.  write_fast(1681,'░░▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒▒░░');
  52.  write_fast(1761,'░░▒▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▒▒░░');
  53.  write_fast(1841,'░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░');
  54.  write_fast(1921,'░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░');
  55.  MP_Setcolor(86,39,13); MP_Setcolor(139,16,2); MP_Setcolor(166,2,13);
  56.  MP_Setcolor(203,2,13); MP_Setcolor(205,2,8); MP_Setcolor(219,1,2);
  57.  MP_Setcolor(234,1,2); MP_Setcolor(235,2,8); MP_Setcolor(246,39,13);
  58.  MP_Setcolor(285,2,8); MP_Setcolor(299,1,2); MP_Setcolor(314,1,2);
  59.  MP_Setcolor(315,2,8); MP_Setcolor(328,39,8); MP_Setcolor(379,1,2);
  60.  MP_Setcolor(394,1,2); MP_Setcolor(395,2,8); MP_Setcolor(459,16,2);
  61.  MP_Setcolor(475,2,8); MP_Setcolor(541,16,8); MP_Setcolor(649,14,11);
  62.  MP_Setcolor(677,7,11); MP_Setcolor(751,2,8); MP_Setcolor(795,2,8);
  63.  MP_Setcolor(809,12,14); MP_Setcolor(831,2,8); MP_Setcolor(837,15,12);
  64.  MP_Setcolor(875,2,8); MP_Setcolor(889,12,10); MP_Setcolor(911,2,8);
  65.  MP_Setcolor(955,2,8); MP_Setcolor(969,12,10); MP_Setcolor(991,2,8);
  66.  MP_Setcolor(1035,2,8); MP_Setcolor(1049,12,10); MP_Setcolor(1071,2,8);
  67.  MP_Setcolor(1115,2,8); MP_Setcolor(1129,19,12); MP_Setcolor(1151,2,8);
  68.  MP_Setcolor(1195,2,8); MP_Setcolor(1209,19,12); MP_Setcolor(1231,2,8);
  69.  MP_Setcolor(1275,2,8); MP_Setcolor(1289,19,12); MP_Setcolor(1311,2,8);
  70.  MP_Setcolor(1355,2,8); MP_Setcolor(1391,2,8); MP_Setcolor(1435,2,8);
  71.  MP_Setcolor(1471,2,8); MP_Setcolor(1515,2,8); MP_Setcolor(1551,2,8);
  72.  MP_Setcolor(1595,2,8); MP_Setcolor(1631,2,8); MP_Setcolor(1675,2,8);
  73.  MP_Setcolor(1688,25,8); MP_Setcolor(1716,41,8);
  74.  MP_BufferToScreen;
  75. End;
  76.  
  77. Procedure MainMenu;
  78. Var c:integer;
  79.  
  80. Begin
  81.  if (neu) then MainMenu__;
  82.  MP_Eingabefeldzeichen:=' ';
  83.  MP_Felder[1].Xpos:=27;
  84.  MP_Felder[1].Ypos:=9;
  85.  MP_Felder[1].Laenge:=1;
  86.  MP_Felder[1].Typ:='B';
  87.  if (w1<>0) then str(w1, MP_Felder[1].Text)
  88.   else MP_Felder[1].Text[0]:=#0;
  89.  MP_Felder[2].Xpos:=54;
  90.  MP_Felder[2].Ypos:=11;
  91.  MP_Felder[2].Laenge:=12;
  92.  MP_Felder[2].Typ:='S';
  93.   MP_Felder[2].Text:=w2;
  94.  MP_Felder[3].Xpos:=37;
  95.  MP_Felder[3].Ypos:=13;
  96.  MP_Felder[3].Laenge:=35;
  97.  MP_Felder[3].Typ:='S';
  98.   MP_Felder[3].Text:=w3;
  99.  MP_Felder[4].Xpos:=37;
  100.  MP_Felder[4].Ypos:=14;
  101.  MP_Felder[4].Laenge:=35;
  102.  MP_Felder[4].Typ:='S';
  103.   MP_Felder[4].Text:=w4;
  104.  MP_Felder[5].Xpos:=37;
  105.  MP_Felder[5].Ypos:=16;
  106.  MP_Felder[5].Laenge:=2;
  107.  MP_Felder[5].Typ:='B';
  108.  if (w5<>0) then str(w5, MP_Felder[5].Text)
  109.   else MP_Felder[5].Text[0]:=#0;
  110.  MP_Felder[6].Xpos:=40;
  111.  MP_Felder[6].Ypos:=16;
  112.  MP_Felder[6].Laenge:=14;
  113.  MP_Felder[6].Typ:='S';
  114.   MP_Felder[6].Text:=w6;
  115.  MP_Felder[7].Xpos:=55;
  116.  MP_Felder[7].Ypos:=16;
  117.  MP_Felder[7].Laenge:=2;
  118.  MP_Felder[7].Typ:='B';
  119.  if (w7<>0) then str(w7, MP_Felder[7].Text)
  120.   else MP_Felder[7].Text[0]:=#0;
  121.  MP_Felder[8].Xpos:=37;
  122.  MP_Felder[8].Ypos:=18;
  123.  MP_Felder[8].Laenge:=35;
  124.  MP_Felder[8].Typ:='S';
  125.   MP_Felder[8].Text:=w8;
  126.  MP_Felder[9].Xpos:=37;
  127.  MP_Felder[9].Ypos:=19;
  128.  MP_Felder[9].Laenge:=35;
  129.  MP_Felder[9].Typ:='S';
  130.   MP_Felder[9].Text:=w9;
  131.  MP_Lesefeld(9);
  132.  val( MP_Felder[1].text,w1,c);
  133.  w2:= MP_Felder[2].Text;
  134.  w3:= MP_Felder[3].Text;
  135.  w4:= MP_Felder[4].Text;
  136.  val( MP_Felder[5].text,w5,c);
  137.  w6:= MP_Felder[6].Text;
  138.  val( MP_Felder[7].text,w7,c);
  139.  w8:= MP_Felder[8].Text;
  140.  w9:= MP_Felder[9].Text;
  141. End;
  142. END.
  143.