Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Optimizing huds for all resolutions

  1. #1
    Sergeant EvoloZz's Avatar
    Join Date
    Sep 2012
    Location
    Helsinki, Finland
    Posts
    360
    Thanks
    314
    Thanked 167 Times in 120 Posts

    Optimizing huds for all resolutions

    I was just thinking if its possible to optimize huds for all players even for those who has really low resolutions, because normally they wont see any of them or only half of the text. Because i made all my huds on my badass gaming pc with highest resolution, but some players wont see 'em.
    If anyone knows, help me :P

  2. #2
    Private First Class
    Join Date
    Dec 2012
    Posts
    127
    Thanks
    132
    Thanked 114 Times in 63 Posts
    Hey EvoloZz,

    of course it is possible, add this to your hud element:

    Code:
    	
    self.hud = newClientHudElem(self);
    self.hud.vertAlign = "fullscreen";
    self.hud.horzAlign = "fullscreen";

  3. The Following 2 Users Say Thank You to Jeplaa For This Useful Post:

    EvoloZz (13th January 2013),kung foo man (13th January 2013)

  4. #3
    Sergeant EvoloZz's Avatar
    Join Date
    Sep 2012
    Location
    Helsinki, Finland
    Posts
    360
    Thanks
    314
    Thanked 167 Times in 120 Posts
    Thanks a lot :P

  5. #4
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts
    These are the valid values for...

    vertAlign = "subtop" "top" "middle" "bottom" "fullscreen" "noscale" "alignto480" "center_safearea"
    horzAlign = "subleft" left" "center" "right" "fullscreen" "noscale" "alignto640" "center_safearea"

  6. The Following 2 Users Say Thank You to randall For This Useful Post:

    EvoloZz (13th January 2013),kung foo man (13th January 2013)

  7. #5
    Sergeant EvoloZz's Avatar
    Join Date
    Sep 2012
    Location
    Helsinki, Finland
    Posts
    360
    Thanks
    314
    Thanked 167 Times in 120 Posts
    This is the result with highest res:
    Click image for larger version. 

Name:	best.png 
Views:	68 
Size:	289.8 KB 
ID:	104
    And this is result with lowest res:
    Click image for larger version. 

Name:	worst.png 
Views:	69 
Size:	167.9 KB 
ID:	105
    I have no idea why "headshots" is alone from all others :P

  8. #6
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Maybe forgot to align only that element? Cant check since no source is posted
    timescale 0.01

  9. #7
    Sergeant EvoloZz's Avatar
    Join Date
    Sep 2012
    Location
    Helsinki, Finland
    Posts
    360
    Thanks
    314
    Thanked 167 Times in 120 Posts
    This is for headshots:
    Code:
    		self.headshots = newClientHudElem(self);
    		self.headshots.vertAlign = "fullscreen";
    		self.headhosts.horzAlign = "fullscreen";
    		self.headshots.x = 615; 
    		self.headshots.y = 300;
    And this is for bashes:
    Code:
    		self.bashes = newClientHudElem(self);
    		self.bashes.vertAlign = "fullscreen";
    		self.bashes.horzAlign = "fullscreen";
    		self.bashes.x = 615; 
    		self.bashes.y = 320;
    I don't see whats wrong

  10. #8
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Could you name it self.headshots_2 for example?

    Just to be sure its not changed somewhere later to a different position.
    timescale 0.01

  11. #9
    Sergeant EvoloZz's Avatar
    Join Date
    Sep 2012
    Location
    Helsinki, Finland
    Posts
    360
    Thanks
    314
    Thanked 167 Times in 120 Posts
    Haha, the problem was so simple, i am just blind. If you look closely at the headshot hud i posted you can see that instead of "headshots" i have "headhosts" in one of them. omg i am stupid

  12. #10
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    shit happens
    timescale 0.01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •