Score board text


(~Shady~) #1

uuhm i wanted to add above @ the scoreboard some text
soo if you press Tab you will see above Mission time etc some text {multimod for example}

i thought i have to be in cg_scoreboard.c but i dont know what code i need to use…
soo could someone help me ?


(LION) #2

sure we can help:
so if you want to add some text ABOVE the scoreboard you could add some code into
the
int WM_DrawObjectives( int x, int y, int width, float fade ) function:
find


} else if( cgs.gametype == GT_WOLF_CAMPAIGN ) {
			int w;
			s = va( "MAP %i of %i", cgs.currentCampaignMap + 1, cgs.campaignData.mapCount );
			w = CG_Text_Width_Ext( s, 0.25f, 0, &cgs.media.limboFont1 );

			CG_Text_Paint_Ext( x + 300 - w*0.5f, y + 13, 0.25f, 0.25f, tclr, s, 0, 0, 0, &cgs.media.limboFont1 );
		}

you could add your code there …


(~Shady~) #3

yeah okaj i can use it but what i want is to make the text above it soo it makes a new border…