Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

ui_credits.c

Go to the documentation of this file.
00001 /*
00002 ===========================================================================
00003 Copyright (C) 1999-2005 Id Software, Inc.
00004 
00005 This file is part of Quake III Arena source code.
00006 
00007 Quake III Arena source code is free software; you can redistribute it
00008 and/or modify it under the terms of the GNU General Public License as
00009 published by the Free Software Foundation; either version 2 of the License,
00010 or (at your option) any later version.
00011 
00012 Quake III Arena source code is distributed in the hope that it will be
00013 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Foobar; if not, write to the Free Software
00019 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00020 ===========================================================================
00021 */
00022 //
00023 /*
00024 =======================================================================
00025 
00026 CREDITS
00027 
00028 =======================================================================
00029 */
00030 
00031 
00032 #include "ui_local.h"
00033 
00034 
00035 typedef struct {
00036     menuframework_s menu;
00037 } creditsmenu_t;
00038 
00039 static creditsmenu_t    s_credits;
00040 
00041 
00042 /*
00043 =================
00044 UI_CreditMenu_Key
00045 =================
00046 */
00047 static sfxHandle_t UI_CreditMenu_Key( int key ) {
00048     if( key & K_CHAR_FLAG ) {
00049         return 0;
00050     }
00051 
00052     trap_Cmd_ExecuteText( EXEC_APPEND, "quit\n" );
00053     return 0;
00054 }
00055 
00056 
00057 /*
00058 ===============
00059 UI_CreditMenu_Draw
00060 ===============
00061 */
00062 static void UI_CreditMenu_Draw( void ) {
00063     int     y;
00064 
00065     y = 12;
00066     UI_DrawProportionalString( 320, y, "id Software is:", UI_CENTER|UI_SMALLFONT, color_white );
00067 
00068     y += 1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
00069     UI_DrawProportionalString( 320, y, "Programming", UI_CENTER|UI_SMALLFONT, color_white );
00070     y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
00071     UI_DrawProportionalString( 320, y, "John Carmack, Robert A. Duffy, Jim Dose'", UI_CENTER|UI_SMALLFONT, color_white );
00072 
00073     y += 1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
00074     UI_DrawProportionalString( 320, y, "Art", UI_CENTER|UI_SMALLFONT, color_white );
00075     y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
00076     UI_DrawProportionalString( 320, y, "Adrian Carmack, Kevin Cloud,", UI_CENTER|UI_SMALLFONT, color_white );
00077     y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
00078     UI_DrawProportionalString( 320, y, "Kenneth Scott, Seneca Menard, Fred Nilsson", UI_CENTER|UI_SMALLFONT, color_white );
00079 
00080     y += 1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
00081     UI_DrawProportionalString( 320, y, "Game Designer", UI_CENTER|UI_SMALLFONT, color_white );
00082     y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
00083     UI_DrawProportionalString( 320, y, "Graeme Devine", UI_CENTER|UI_SMALLFONT, color_white );
00084 
00085     y += 1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
00086     UI_DrawProportionalString( 320, y, "Level Design", UI_CENTER|UI_SMALLFONT, color_white );
00087     y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
00088     UI_DrawProportionalString( 320, y, "Tim Willits, Christian Antkow, Paul Jaquays", UI_CENTER|UI_SMALLFONT, color_white );
00089 
00090     y += 1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
00091     UI_DrawProportionalString( 320, y, "CEO", UI_CENTER|UI_SMALLFONT, color_white );
00092     y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
00093     UI_DrawProportionalString( 320, y, "Todd Hollenshead", UI_CENTER|UI_SMALLFONT, color_white );
00094 
00095     y += 1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
00096     UI_DrawProportionalString( 320, y, "Director of Business Development", UI_CENTER|UI_SMALLFONT, color_white );
00097     y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
00098     UI_DrawProportionalString( 320, y, "Marty Stratton", UI_CENTER|UI_SMALLFONT, color_white );
00099 
00100     y += 1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
00101     UI_DrawProportionalString( 320, y, "Biz Assist and id Mom", UI_CENTER|UI_SMALLFONT, color_white );
00102     y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
00103     UI_DrawProportionalString( 320, y, "Donna Jackson", UI_CENTER|UI_SMALLFONT, color_white );
00104 
00105     y += 1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
00106     UI_DrawProportionalString( 320, y, "Development Assistance", UI_CENTER|UI_SMALLFONT, color_white );
00107     y += PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
00108     UI_DrawProportionalString( 320, y, "Eric Webb", UI_CENTER|UI_SMALLFONT, color_white );
00109 
00110     y += 1.35 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
00111     UI_DrawString( 320, y, "To order: 1-800-idgames     www.quake3arena.com     www.idsoftware.com", UI_CENTER|UI_SMALLFONT, color_red );
00112     y += SMALLCHAR_HEIGHT;
00113     UI_DrawString( 320, y, "Quake III Arena(c) 1999-2000, Id Software, Inc.  All Rights Reserved", UI_CENTER|UI_SMALLFONT, color_red );
00114 }
00115 
00116 
00117 /*
00118 ===============
00119 UI_CreditMenu
00120 ===============
00121 */
00122 void UI_CreditMenu( void ) {
00123     memset( &s_credits, 0 ,sizeof(s_credits) );
00124 
00125     s_credits.menu.draw = UI_CreditMenu_Draw;
00126     s_credits.menu.key = UI_CreditMenu_Key;
00127     s_credits.menu.fullscreen = qtrue;
00128     UI_PushMenu ( &s_credits.menu );
00129 }

Generated on Thu Aug 25 12:37:40 2005 for Quake III Arena by  doxygen 1.3.9.1