Jump to content

Recommended Posts

Hello friends , i need help for change the position in the screen of this HUD , if you can help to know wheres is the line for change the position and who is possibel thank you in advance .

 

 

class HELL_HUD_0
{
    idd = 2100;

    duration = 60*60*24;

    onLoad = "uiNamespace setVariable ['HELL_HUD_0', _this select 0]";
    class controls
    {
        class Text_Hunger : RscText
        {
            idc = 2110;

            font = "EtelkaMonospacePro";
            SizeEx = (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1) / 1.5;

            x = "0.01 * safezoneW + safezoneX";
            y = "0.90 * safezoneH + safezoneY";
            w = "0.1125 * safezoneW";
            h = "0.03 * safezoneH";
        };
        class Text_Thirst : Text_Hunger
        {
            idc = 2120;

            y = "0.94 * safezoneH + safezoneY";
        };
    };
    class controlsBackground
    {
        class Progress_Hunger : RscProgress
        {
            idc = 2111;

            colorFrame[] = {0,0,0,0.8};
            colorBar[] = {0.427, 0.651, 0.227, 0.9};

            x = "0.01 * safezoneW + safezoneX";
            y = "0.90 * safezoneH + safezoneY";
            w = "0.1125 * safezoneW";
            h = "0.03 * safezoneH";
        };
        class Progress_Thirst : Progress_Hunger
        {
            idc = 2121;

            colorBar[] = {0.18, 0.349, 0.635, 0.9};

            y = "0.94 * safezoneH + safezoneY";
        };
    };
};

 

Share this post


Link to post
Share on other sites

x and Y are the coordinates of your screen, here in safeZone size interface. (see alos links for safeZoneX, safeZoneY...)

So :

x = "0.01 * safezoneW + safezoneX"  //  means very close to left border;

y = "0.90 * safezoneH + safezoneY"   // means close to bottom (90% down)

 

W(idth) and H(eight) are also important for global positioning, especially if you center the control or if you plan to place it right of the screen, depending on other settings.

 

See also.

 

 

  • Like 1

Share this post


Link to post
Share on other sites
10 hours ago, pierremgi said:

x and Y are the coordinates of your screen, here in safeZone size interface. (see alos links for safeZoneX, safeZoneY...)

So :

x = "0.01 * safezoneW + safezoneX"  //  means very close to left border;

y = "0.90 * safezoneH + safezoneY"   // means close to bottom (90% down)

 

W(idth) and H(eight) are also important for global positioning, especially if you center the control or if you plan to place it right of the screen, depending on other settings.

 

See also.

 

 

Thank yo uso much for your help . Succes To change the position 😉 Thx again 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×