Spoiler:Here is the code:
Code: Select all
Script 102 (void)
{
int Width = GetScreenWidth();
int Height = GetScreenHeight();
int HUDx1 = ( (Width * 407/1000 )) << 16;
int HUDy1 = ( (Height * 685/1000)) << 16;
int HUDx2 = ( (Width * 400/1000 )) << 16;
int HUDy2 = ( (Height * 715/1000)) << 16;
SetHUDSize(Width, Height, 1);
SetFont("MEDI");
HudMessage(s:"A"; HUDMSG_PLAIN, 3, 0, HUDx1, HUDy1, 0);
SetFont("ARM1");
HudMessage(s:"A"; HUDMSG_PLAIN, 4, 0, HUDx2, HUDy2, 0);
}
Spoiler:So is there a way to make them scale and position the same way when resoultion changes?