PivityGmodStore

Make the hud have the right size

The HUD offers different options to have the right size of HUD.

First of all, you need to understand a small difference :

  1. All the screens don't have the same size (obvious), some are bigger than other
  2. All the screens don't have the same ratio horizontal/vertical (less obvious), some have a 4/3 ratio, some have a 16/9 ratio, 16/10 etc.


To fit exactly how you want to, here are the 3 options :

  1. 1) Keep arbitrary values for your HUD. So, if you make a HUD of 200x200px, no matter the size of their screen, it will be 200x200px for all users. (Recommended in most cases)
  2. 2)Adapt the size of your HUD to the size of the screen. The larger the screen, the larger the HUD. Thus, a HUD of 200x200px in someone's home with a screen of 800x500px will make a size of 400x400px in a screen of 1600x1000px. However, the ratio is not kept in this case! So, if the screen is 900x600, the HUD will be 225x200px. It will no longer be a square but a rectangle! (recommended if the HUD is 100% of the width or length of the screen)
  3. 3) Compromise between ratio and size. With this option, the size of the HUD will be adapted (the larger the screen, the larger the HUD too), and the ratio kept. The squares will remain squares, and the rectangles will remain rectangles. However, if you do a HUD that is 100% of the screen size, changing the ratio, it will no longer work.