aboutsummaryrefslogtreecommitdiffstats
path: root/code/q3_ui
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-06-25 05:50:15 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-06-25 05:50:15 +0000
commit34351cb3605a5c9c816b6ac3763c41804907e8c5 (patch)
treee84d3fe35a74ec947568de5babb1a85a136ad302 /code/q3_ui
parent490f67cd3f96b6a7a0e1120bc68ecf9e8a846a81 (diff)
downloadioquake3-aero-34351cb3605a5c9c816b6ac3763c41804907e8c5.tar.gz
ioquake3-aero-34351cb3605a5c9c816b6ac3763c41804907e8c5.zip
Added ioq3-specific credits screen.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1391 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/q3_ui')
-rw-r--r--code/q3_ui/ui_credits.c48
1 files changed, 47 insertions, 1 deletions
diff --git a/code/q3_ui/ui_credits.c b/code/q3_ui/ui_credits.c
index 8f5c0bd..93f88ac 100644
--- a/code/q3_ui/ui_credits.c
+++ b/code/q3_ui/ui_credits.c
@@ -34,12 +34,53 @@ CREDITS
typedef struct {
menuframework_s menu;
+ int frame;
} creditsmenu_t;
static creditsmenu_t s_credits;
/*
+===============
+UI_CreditMenu_Draw_ioq3
+===============
+*/
+static void UI_CreditMenu_Draw_ioq3( void ) {
+ int y;
+ int i;
+
+ // These are all people that have made commits to Subversion, and thus
+ // probably incomplete.
+ // (These are in alphabetical order, for the defense of everyone's egos.)
+ static const char *names[] = {
+ "Tim Angus",
+ "Vincent Cojot",
+ "Ryan C. Gordon",
+ "Aaron Gyes",
+ "Ludwig Nussel",
+ "Julian Priestley",
+ "Sirroco Six",
+ "Thilo Schulz",
+ "Zachary J. Slater",
+ "Tony J. White",
+ "...and many, many others!", // keep this one last.
+ NULL
+ };
+
+ y = 12;
+ UI_DrawProportionalString( 320, y, "ioquake3 contributors:", UI_CENTER|UI_SMALLFONT, color_white );
+ y += 1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
+
+ for (i = 0; names[i]; i++) {
+ UI_DrawProportionalString( 320, y, names[i], UI_CENTER|UI_SMALLFONT, color_white );
+ y += 1.42 * PROP_HEIGHT * PROP_SMALL_SIZE_SCALE;
+ }
+
+ UI_DrawString( 320, 459, "http://www.ioquake3.org/", UI_CENTER|UI_SMALLFONT, color_red );
+}
+
+
+/*
=================
UI_CreditMenu_Key
=================
@@ -49,7 +90,12 @@ static sfxHandle_t UI_CreditMenu_Key( int key ) {
return 0;
}
- trap_Cmd_ExecuteText( EXEC_APPEND, "quit\n" );
+ s_credits.frame++;
+ if (s_credits.frame == 1) {
+ s_credits.menu.draw = UI_CreditMenu_Draw_ioq3;
+ } else {
+ trap_Cmd_ExecuteText( EXEC_APPEND, "quit\n" );
+ }
return 0;
}