Custom Text & Fonts

It's quite simple to use, create a simple level just to test it out, create a trigger brush (either trigger_once or multiple, it's up to you), then place a game_text entity in the level(as below).

news post image

Now open up the game_text properties and enter a name so it will be displayed when the trigger brush is touched.

enter some message text, but do not include & or / or \ as this causes instability, or just won't display at all. This will be the text the player will see when he triggers the brush.

Now choose a colour for both options, in my example i've chosen red as it shows up quite well on the skybox background. and finallyadd a hold time of about 4 seconds, just so you get chance to see what the text says.

Then compile and run your map. Before any changes have taken place this is what the text should look like:-
news post image

Now if you want to add that little bit of personalisation then go to your sourcemods/yourmodname/resource folder and open the ClientScheme.res file in notepad, now scroll right down to the bottom of this file and you should see this :-

// note that this scales with the screen resolution
"name"		"Tahoma"
"tall"		"18"
"weight"	"900"
"antialias" 	"1"
"additive"	"1"				

now all you have to do is change the "name" portion from "Tahoma" to whatever font you like (bare in mind that only system fonts will be recognised, so trying to add anything other that that will need to be declared in the customfontfiles at the very bottom of the file) then save any chnages to the file, re-load the level and viola job done

Garamond Font:-
news post image

Custom font:-
news post image

> Example map here <

Hope this helps

Like Mr Happy says above, all changes here can affect all manner of personlisation to your game, the ClientScheme.res & SourceScheme.res file deals with the menu text, colourisation, hud, vgui all manner of stuff:-

Icons, hud and menu examples:-

news post image
news post image


View comments ( 3 )

Back to top