Hello list, I'm trying to display HUD messages using different fonts simultaneously (i.e., a title and a subtitle). Sounds simple enough. Using an env_message and linking to some title in titles.txt allows a fair amount of configuration, and this works great. What I'd like to be able to do is to specify a font parameter, using something like $font, which doesn't seem to exist.
In the SDK, what happens when the client receives a HudText message (from the server's env_message, aka CMessage) is it will ask the engine to look it up using engine->TextMessageGet( pName ). This returns a client_textmessage_t, which includes all those nice parameters from titles.txt. It also includes a variable called *pVGuiSchemeFontName*, which is the interesting one. I just can't figure out how to get the engine to pick this up and set it - it's always null, meaning a default font is used. I've guessed at a bunch of parameter names without effect. Ultimately, I added a hack that lets you set a keyvalue in hammer to set the font name, and pushed this into the usermessage along with the message text. Then the client looks it up and sticks it in the textmessage struct after the engine does its lookup. So this works, but it would sure be nice to be able to use the built-in feature (if it exists) so that this can go in one place, not to mention reduce some hackage. Thanks! -Martin _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

