00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
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
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
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
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 }