Quake-III-Arena

Quake III Arena GPL Source Release
Log | Files | Refs

ui_credits.c (4764B)


      1 /*
      2 ===========================================================================
      3 Copyright (C) 1999-2005 Id Software, Inc.
      4 
      5 This file is part of Quake III Arena source code.
      6 
      7 Quake III Arena source code is free software; you can redistribute it
      8 and/or modify it under the terms of the GNU General Public License as
      9 published by the Free Software Foundation; either version 2 of the License,
     10 or (at your option) any later version.
     11 
     12 Quake III Arena source code is distributed in the hope that it will be
     13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 GNU General Public License for more details.
     16 
     17 You should have received a copy of the GNU General Public License
     18 along with Foobar; if not, write to the Free Software
     19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     20 ===========================================================================
     21 */
     22 //
     23 /*
     24 =======================================================================
     25 
     26 CREDITS
     27 
     28 =======================================================================
     29 */
     30 
     31 
     32 #include "ui_local.h"
     33 
     34 
     35 typedef struct {
     36 	menuframework_s	menu;
     37 } creditsmenu_t;
     38 
     39 static creditsmenu_t	s_credits;
     40 
     41 
     42 /*
     43 =================
     44 UI_CreditMenu_Key
     45 =================
     46 */
     47 static sfxHandle_t UI_CreditMenu_Key( int key ) {
     48 	if( key & K_CHAR_FLAG ) {
     49 		return 0;
     50 	}
     51 
     52 	trap_Cmd_ExecuteText( EXEC_APPEND, "quit\n" );
     53 	return 0;
     54 }
     55 
     56 
     57 /*
     58 ===============
     59 UI_CreditMenu_Draw
     60 ===============
     61 */
     62 static void UI_CreditMenu_Draw( void ) {
     63 	int		y;
     64 
     65 	y = 12;
     66 	UI_DrawProportionalString( 320, y, "id Software is:", UI_CENTER|UI_SMALLFONT, color_white );
     67 
     68 	y += 1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
     69 	UI_DrawProportionalString( 320, y, "Programming", UI_CENTER|UI_SMALLFONT, color_white );
     70 	y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
     71 	UI_DrawProportionalString( 320, y, "John Carmack, Robert A. Duffy, Jim Dose'", UI_CENTER|UI_SMALLFONT, color_white );
     72 
     73 	y += 1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
     74 	UI_DrawProportionalString( 320, y, "Art", UI_CENTER|UI_SMALLFONT, color_white );
     75 	y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
     76 	UI_DrawProportionalString( 320, y, "Adrian Carmack, Kevin Cloud,", UI_CENTER|UI_SMALLFONT, color_white );
     77 	y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
     78 	UI_DrawProportionalString( 320, y, "Kenneth Scott, Seneca Menard, Fred Nilsson", UI_CENTER|UI_SMALLFONT, color_white );
     79 
     80 	y += 1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
     81 	UI_DrawProportionalString( 320, y, "Game Designer", UI_CENTER|UI_SMALLFONT, color_white );
     82 	y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
     83 	UI_DrawProportionalString( 320, y, "Graeme Devine", UI_CENTER|UI_SMALLFONT, color_white );
     84 
     85 	y += 1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
     86 	UI_DrawProportionalString( 320, y, "Level Design", UI_CENTER|UI_SMALLFONT, color_white );
     87 	y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
     88 	UI_DrawProportionalString( 320, y, "Tim Willits, Christian Antkow, Paul Jaquays", UI_CENTER|UI_SMALLFONT, color_white );
     89 
     90 	y += 1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
     91 	UI_DrawProportionalString( 320, y, "CEO", UI_CENTER|UI_SMALLFONT, color_white );
     92 	y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
     93 	UI_DrawProportionalString( 320, y, "Todd Hollenshead", UI_CENTER|UI_SMALLFONT, color_white );
     94 
     95 	y += 1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
     96 	UI_DrawProportionalString( 320, y, "Director of Business Development", UI_CENTER|UI_SMALLFONT, color_white );
     97 	y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
     98 	UI_DrawProportionalString( 320, y, "Marty Stratton", UI_CENTER|UI_SMALLFONT, color_white );
     99 
    100 	y += 1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
    101 	UI_DrawProportionalString( 320, y, "Biz Assist and id Mom", UI_CENTER|UI_SMALLFONT, color_white );
    102 	y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
    103 	UI_DrawProportionalString( 320, y, "Donna Jackson", UI_CENTER|UI_SMALLFONT, color_white );
    104 
    105 	y += 1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
    106 	UI_DrawProportionalString( 320, y, "Development Assistance", UI_CENTER|UI_SMALLFONT, color_white );
    107 	y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
    108 	UI_DrawProportionalString( 320, y, "Eric Webb", UI_CENTER|UI_SMALLFONT, color_white );
    109 
    110 	y += 1.35 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
    111 	UI_DrawString( 320, y, "To order: 1-800-idgames     www.quake3arena.com     www.idsoftware.com", UI_CENTER|UI_SMALLFONT, color_red );
    112 	y += SMALLCHAR_HEIGHT;
    113 	UI_DrawString( 320, y, "Quake III Arena(c) 1999-2000, Id Software, Inc.  All Rights Reserved", UI_CENTER|UI_SMALLFONT, color_red );
    114 }
    115 
    116 
    117 /*
    118 ===============
    119 UI_CreditMenu
    120 ===============
    121 */
    122 void UI_CreditMenu( void ) {
    123 	memset( &s_credits, 0 ,sizeof(s_credits) );
    124 
    125 	s_credits.menu.draw = UI_CreditMenu_Draw;
    126 	s_credits.menu.key = UI_CreditMenu_Key;
    127 	s_credits.menu.fullscreen = qtrue;
    128 	UI_PushMenu ( &s_credits.menu );
    129 }