r1391 - trunk/code/q3_ui

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Jun 25 01:50:15 EDT 2008


Author: icculus
Date: 2008-06-25 01:50:15 -0400 (Wed, 25 Jun 2008)
New Revision: 1391

Modified:
   trunk/code/q3_ui/ui_credits.c
Log:
Added ioq3-specific credits screen.


Modified: trunk/code/q3_ui/ui_credits.c
===================================================================
--- trunk/code/q3_ui/ui_credits.c	2008-06-20 07:08:42 UTC (rev 1390)
+++ trunk/code/q3_ui/ui_credits.c	2008-06-25 05:50:15 UTC (rev 1391)
@@ -34,12 +34,53 @@
 
 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 @@
 		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;
 }
 




More information about the quake3-commits mailing list