home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 5.14 / 2000-11_-_Disc_5.14.iso / Goodies / 3DGameStudio / Adeptus / debug.wdl < prev    next >
Text File  |  2000-04-25  |  1KB  |  48 lines

  1. /////////////////////////////////////////////////////////
  2. // Debug panel - to display fps*10, nexus and error skill
  3. /////////////////////////////////////////////////////////
  4. SKILL fps {VAL 1;}
  5. ///////////////////////////////////////////////
  6. #FONT   standard_font,<panfont.bbm>,8,10;
  7. SKILL debug_val {}
  8. STRING debug_labels_1, "fps";
  9. // res_x res_y x   y";
  10. #       "fps nx mdist  vx cl slc drw buf ob ac  clp  max  m";
  11. TEXT debug_text
  12. {
  13.     POS_X 0;
  14.     POS_Y 2;
  15.     FONT standard_font;
  16.     STRING debug_labels_1;
  17.     LAYER 16;
  18. }
  19. //BMAP panmap,<pan_vga.pcx>;
  20. PANEL debug_panel
  21. {
  22.     //      PAN_MAP panmap;
  23.     POS_X 0;
  24.     POS_Y 2;
  25.     DIGITS 0, 0, 3, standard_font, 160, fps;
  26.     DIGITS 20, 0, 5, standard_font, 1, testvar.X;
  27.     DIGITS 50, 0, 5, standard_font, 100, temp_normal.Y;
  28.     DIGITS 130, 0, 5, standard_font, 1, intro_counter;
  29.     DIGITS 170, 0, 5, standard_font, 1, intro_l_move;
  30.     DIGITS 210, 0, 5, standard_font, 1, scantest;
  31.    DIGITS 120, -10, 3, standard_font, 1, VIDEO_DEPTH;
  32.     LAYER 16;
  33.     FLAGS REFRESH;
  34. }
  35. ///////////////////////////////////////////////
  36. ACTION set_debug
  37. {
  38.     SET debug_panel.VISIBLE, 1;
  39.     SET debug_text.VISIBLE, 1;
  40.     WHILE (1)
  41.     {
  42.         // forever
  43.         debug_panel.POS_Y = SCREEN_SIZE.Y - 15;
  44.         debug_text.POS_Y = SCREEN_SIZE.Y - 29;
  45.         fps = 0.9 * fps + 0.1 * TIME_FAC;
  46.         WAIT 1;
  47.     }
  48. }