]> icculus.org git repositories - divverent/nexuiz.git/blob - data/menuqc/custom/credits.qc
rename menu directories
[divverent/nexuiz.git] / data / menuqc / custom / credits.qc
1 // Property of Alientrap/AK
2 // custom/credits.qc
3
4 void() Item_Nex_Credits_Spawn =
5 {
6         local float lFile;
7         local string lText, lLine;
8
9         lFile = fopen( self.target, FILE_READ );
10         if( lFile < 0 ) {
11                 // shut up
12                 Menu_DeleteAfterToggle( self );
13                 return;
14         }
15
16         lText = String_Create();
17         do {
18                 lLine = fgets( lFile );
19                 lText = String_Append( lText, strcat( lLine, "\n" ) );
20         } while( validstring( lLine ) );
21         self.text = lText;
22         fclose( lFile );
23
24         Item_MultiLabel_Spawn();
25         String_Free( lText );
26 };