home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2000 March / maximum-cd-2000-03.iso / Quake3 Game Source / Q3AGameSource.exe / Main / ui_credits.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-18  |  3.6 KB  |  105 lines

  1. // Copyright (C) 1999-2000 Id Software, Inc.
  2. //
  3. /*
  4. =======================================================================
  5.  
  6. CREDITS
  7.  
  8. =======================================================================
  9. */
  10.  
  11.  
  12. #include "ui_local.h"
  13.  
  14.  
  15. typedef struct {
  16.     menuframework_s    menu;
  17. } creditsmenu_t;
  18.  
  19. static creditsmenu_t    s_credits;
  20.  
  21.  
  22. /*
  23. =================
  24. UI_CreditMenu_Key
  25. =================
  26. */
  27. static sfxHandle_t UI_CreditMenu_Key( int key ) {
  28.     if( key & K_CHAR_FLAG ) {
  29.         return 0;
  30.     }
  31.  
  32.     trap_Cmd_ExecuteText( EXEC_APPEND, "quit\n" );
  33.     return 0;
  34. }
  35.  
  36.  
  37. /*
  38. ===============
  39. UI_CreditMenu_Draw
  40. ===============
  41. */
  42. static void UI_CreditMenu_Draw( void ) {
  43.     int        y;
  44.  
  45.     y = 16;
  46.     UI_DrawProportionalString( 320, y, "id Software is:", UI_CENTER|UI_SMALLFONT, color_white );
  47.  
  48.     y += 1.65 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
  49.     UI_DrawProportionalString( 320, y, "Programming", UI_CENTER|UI_SMALLFONT, color_white );
  50.     y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
  51.     UI_DrawProportionalString( 320, y, "John Carmack, John Cash", UI_CENTER|UI_SMALLFONT, color_white );
  52.  
  53.     y += 1.65 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
  54.     UI_DrawProportionalString( 320, y, "Art", UI_CENTER|UI_SMALLFONT, color_white );
  55.     y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
  56.     UI_DrawProportionalString( 320, y, "Adrian Carmack, Kevin Cloud,", UI_CENTER|UI_SMALLFONT, color_white );
  57.     y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
  58.     UI_DrawProportionalString( 320, y, "Paul Steed, Kenneth Scott", UI_CENTER|UI_SMALLFONT, color_white );
  59.  
  60.     y += 1.65 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
  61.     UI_DrawProportionalString( 320, y, "Game Designer", UI_CENTER|UI_SMALLFONT, color_white );
  62.     y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
  63.     UI_DrawProportionalString( 320, y, "Graeme Devine", UI_CENTER|UI_SMALLFONT, color_white );
  64.  
  65.     y += 1.65 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
  66.     UI_DrawProportionalString( 320, y, "Level Design", UI_CENTER|UI_SMALLFONT, color_white );
  67.     y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
  68.     UI_DrawProportionalString( 320, y, "Tim Willits, Christian Antkow, Paul Jaquays", UI_CENTER|UI_SMALLFONT, color_white );
  69.  
  70.     y += 1.65 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
  71.     UI_DrawProportionalString( 320, y, "CEO", UI_CENTER|UI_SMALLFONT, color_white );
  72.     y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
  73.     UI_DrawProportionalString( 320, y, "Todd Hollenshead", UI_CENTER|UI_SMALLFONT, color_white );
  74.  
  75.     y += 1.65 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
  76.     UI_DrawProportionalString( 320, y, "Director of Business Development", UI_CENTER|UI_SMALLFONT, color_white );
  77.     y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
  78.     UI_DrawProportionalString( 320, y, "Katherine Anna Kang", UI_CENTER|UI_SMALLFONT, color_white );
  79.  
  80.     y += 1.65 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
  81.     UI_DrawProportionalString( 320, y, "Biz Assist and id Mom", UI_CENTER|UI_SMALLFONT, color_white );
  82.     y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
  83.     UI_DrawProportionalString( 320, y, "Donna Jackson", UI_CENTER|UI_SMALLFONT, color_white );
  84.  
  85.     y += 1.65 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
  86.     UI_DrawString( 320, y, "To order: 1-800-idgames     www.quake3arena.com     www.idsoftware.com", UI_CENTER|UI_SMALLFONT, color_red );
  87.     y += SMALLCHAR_HEIGHT;
  88.     UI_DrawString( 320, y, "Quake III Arena(c) 1999, Id Software, Inc.  All Rights Reserved", UI_CENTER|UI_SMALLFONT, color_red );
  89. }
  90.  
  91.  
  92. /*
  93. ===============
  94. UI_CreditMenu
  95. ===============
  96. */
  97. void UI_CreditMenu( void ) {
  98.     memset( &s_credits, 0 ,sizeof(s_credits) );
  99.  
  100.     s_credits.menu.draw = UI_CreditMenu_Draw;
  101.     s_credits.menu.key = UI_CreditMenu_Key;
  102.     s_credits.menu.fullscreen = qtrue;
  103.     UI_PushMenu ( &s_credits.menu );
  104. }
  105.