UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Specify Font to use in HUD?

broken avatar :(
Created 12 years ago
by mrpeanut188
0 Members and 1 Guest are viewing this topic.
2,021 views
broken avatar :(
×
broken avatar :(
Location: usCali(fornia)
Date Registered: 21 December 2013
Last active: 6 years ago
Posts
417
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Signature
The sound of God is the screech of tires, lights and magnets, bolts and wires. Strayed from the road, this very one, still to come. The sound of tires is the sound of God, the electric version.
×
mrpeanut188's Groups
mrpeanut188's Contact & Social Linksmrpeanut188mrpeanut1881337p34nut
Is there a function to change the font, or just a variable, where I can change for the font for a hud element?
I want to update the current Round font to a more modern font, but I can't find where the normal font is to replace,
there are no threads on adding a custom font along with assigning a hudelement to use the font.
Last Edit: May 25, 2014, 03:05:47 am by mrpeanut188
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 3 years ago
Posts
5,544
Respect
6,646Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Signature
If Java had true garbage collection, most programs would delete themselves upon execution.
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
Is there a function to change the font, or just a variable, where I can change for the font for a hud element?
I want to update the current Round font to a more modern font, but I can't find where the normal font is to replace,
there are no threads on adding a custom font along with assigning a hudelement to use the font.
there is no function to change the font. on hudelems you just do .font on the hudelem like in this example:
Code Snippet
Plaintext
	masterHud = newHudElem(); 
masterHud.alpha = 1;
masterHud.hidewheninmenu = true;
masterHud.horzAlign = "center";
masterHud.vertAlign = "middle";
masterHud.alignX = "center";
masterHud.alignY = "middle";
masterHud.x = 0;
masterHud.y = -60;
masterHud.font = "big";
masterHud.fontscale = 2.0;
masterHud.color = ( 1, 1, 0.5 );
masterHud setText( &"PAYLOAD_MASTER" );

Valid values for font in script are "small", "default", "big" (clearest font), and "objective". To change what font is actually loaded you have to edit the font iwi and edit the Dx9 fontmaps in raw/english/fonts. Take a look at the files that come with UGX Mod v1.0.3 or wait for v1.1 for examples. For v1.0.3 we just copied the font files from cod4.
broken avatar :(
×
broken avatar :(
Location: usCali(fornia)
Date Registered: 21 December 2013
Last active: 6 years ago
Posts
417
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
mrpeanut188's Groups
mrpeanut188's Contact & Social Linksmrpeanut188mrpeanut1881337p34nut
Take a look at the files that come with UGX Mod v1.0.3 or wait for v1.1 for examples.
Have been doing!

there is no function to change the font.
Crystal clear now, thanks.

But I have another question:
How can one of these fonts? They don't seem to be a normal font or image file...
Last Edit: May 25, 2014, 04:05:51 am by mrpeanut188

 
Loading ...