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

Client Hud Elements

broken avatar :(
Created 8 years ago
by reckfullies
0 Members and 1 Guest are viewing this topic.
2,542 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 3 years ago
Posts
306
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
I've been trying to figure out what the options I can set for NewClientHudElem are.

I know how to create one but I just don't know the full list of options.

example:
Code Snippet
Plaintext
self.HudIcon = NewClientHudElem(player);
self.HudIcon.horzAlign = "left";
self.HudIcon.vertAlign = "middle";

I wanted to know what other things I can put besides .horzAlign such as setting an image/material.
Last Edit: October 04, 2016, 08:50:39 am by reckfullies
Marked as best answer by reckfullies 8 years ago
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 8 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Some of the options I used in KC mod:

Code Snippet
Plaintext
	screen_text = NewClientHudElem( self ); 
screen_text.alignX = "center";
screen_text.alignY = "middle";
screen_text.horzAlign = "user_center";
screen_text.vertAlign = "user_bottom";
screen_text.foreground = true;
screen_text.font = "default";
screen_text.fontScale = 1.8;
screen_text.alpha = 0;
screen_text.color = ( 1.0, 1.0, 1.0 );
screen_text SetText(defined_text);
screen_text.y = -113;
screen_text FadeOverTime(1);
screen_text ScaleOverTime(2, 0, 0);
screen_text delete();

ScaleOverTime seems to only work for shaders btw, if you are thinking of using this for text. But if its for icon like you have defined, then its all fine
Edit: Just saw bottom bit, lol. Change setText to setShader
Last Edit: October 04, 2016, 12:38:47 pm by HitmanVere
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Some of the options I used in KC mod:

Code Snippet
Plaintext
	screen_text = NewClientHudElem( self ); 
screen_text.alignX = "center";
screen_text.alignY = "middle";
screen_text.horzAlign = "user_center";
screen_text.vertAlign = "user_bottom";
screen_text.foreground = true;
screen_text.font = "default";
screen_text.fontScale = 1.8;
screen_text.alpha = 0;
screen_text.color = ( 1.0, 1.0, 1.0 );
screen_text SetText(defined_text);
screen_text.y = -113;
screen_text FadeOverTime(1);
screen_text ScaleOverTime(2, 0, 0);
screen_text delete();
ScaleOverTime seems to only work for shaders btw, if you are thinking of using this for text. But if its for icon like you have defined, then its all fine
Edit: Just saw bottom bit, lol. Change setText to setShader
hey do u know a good waw tut on how i can either get an image or text added to the hud?

 
Loading ...