Jump to content

GUI and SC 3.0


Recommended Posts

This Coins Icon is works  but my HUD is removed....

here is code

//    @file Version: 1.0
//    @file Name: playerHud.hpp
//    @file Author: [zDT] Andrew
//    @file Info: Credits to DayZ Epoch/Origins All rights to them
//    @file Info: Images used here are not altered from original content
//    @file Info: The images are just reused in the same form as original

class ZSC_Money_Display {
    idd = -1;
    fadeout=0;
    fadein=0;
    duration = 20;
    name= "ZSC_Money_Display";
    onLoad = "uiNamespace setVariable ['ZSC_Money_Display', _this select 0]";
    class controlsBackground {
        class ZSC_Status
        {
            idc = 4900;
            type = 13;
            size = 0.040;
            x = safezoneX + (safezoneW -0.35);
            y = safezoneY + 0.40 * safezoneW;
            w = 0.35; h = 0.20;
            colorText[] = {1,1,1,1};
            lineSpacing = 3;
            colorBackground[] = {0,0,0,0};
            text = "";
            style = 0x02;
            shadow = 2;
            font = "Zeppelin32";
            sizeEx = 0.023;
            class Attributes {
                align = "right";
            };
            };
            };
            };

class Server_Hud {
    idd = -1;
    fadeout=0;
    fadein=0;
    duration = 10e10;
    name= "Server_Hud";
    onLoad = "uiNamespace setVariable ['Server_Hud', _this select 0]";
    
    class controlsBackground {
        class Hud_BG1: RscPictureGUI
        {
            idc = hud_BG1;
            size = 1;
            text = "\z\addons\dayz_code\gui\status\status_bg.paa";
            x = 0.955313 * safezoneW + safezoneX;
            y = 0.23  * safezoneH + safezoneY;
            w = 0.075;
            h = 0.10;
            class Attributes {
                align = "center";
            };
        };
        class Hud_BG2: RscPictureGUI
        {
            idc = hud_BG2;
            size = 1;
            text = "\z\addons\dayz_code\gui\status\status_bg.paa";
            x = 0.955313 * safezoneW + safezoneX;
            y = 0.3 * safezoneH + safezoneY;
            w = 0.075;
            h = 0.10;
            class Attributes {
                align = "center";
            };
        };
        class Hud_BG3: RscPictureGUI
        {
            idc = hud_BG3;
            size = 1;
            text = "\z\addons\dayz_code\gui\status\status_bg.paa";
            x = 0.955313 * safezoneW + safezoneX;
            y = 0.37 * safezoneH + safezoneY;
            w = 0.075;
            h = 0.10;
            class Attributes {
                align = "center";
            };
        };
        class Hud_BG4: RscPictureGUI
        {
            idc = hud_BG4;
            size = 1;
            text = "\z\addons\dayz_code\gui\status\status_bg.paa";
            x = 0.955313 * safezoneW + safezoneX;
            y = 0.44 * safezoneH + safezoneY;
            w = 0.075;
            h = 0.10;
            class Attributes {
                align = "center";
            };
        };
        class Hud_HudSurvivor: RscPictureGUI
        {
            idc = hud_Survivor;
            size = 1;
            text = "images\icons\st_humanity_survivor.paa";
            x = 0.955313 * safezoneW + safezoneX;
            y = 0.23 * safezoneH + safezoneY;
            w = 0.075;
            h = 0.10;
            colorText[] = {1,1,1,0.7};
            class Attributes {
                align = "center";
            };
        };
        class Hud_HudHS: RscPictureGUI
        {
            idc = hud_HS;
            size = 1;
            text = "images\icons\zombie.paa";
            x = 0.955313 * safezoneW + safezoneX;
            y = 0.44 * safezoneH + safezoneY;
            w = 0.075;
            h = 0.10;
            colorText[] = {1,1,1,0.75};
            class Attributes {
                align = "center";
            };
        };
        class Hud_HudBandit: RscPictureGUI
        {
            idc = hud_Bandit;
            size = 1;
            text = "images\icons\st_humanity_bandit.paa";
            x = 0.955313 * safezoneW + safezoneX;
            y = 0.3 * safezoneH + safezoneY;
            w = 0.075;
            h = 0.10;
            colorText[] = {1,1,1,0.75};
            class Attributes {
                align = "center";
            };
        };
        class Hud_HudZombie: RscPictureGUI
        {
            idc = hud_Zombie;
            size = 1;
            text = "images\icons\zombie.paa";
            x = 0.955313 * safezoneW + safezoneX;
            y = 0.37 * safezoneH + safezoneY;
            w = 0.075;
            h = 0.10;
            colorText[] = {1,1,1,0.75};
            class Attributes {
                align = "center";
            };
        };
        class Hud_HudIcon: RscTextGUIK
        {
            idc = hud_Icon;
            type = CT_STRUCTURED_TEXT;
            text = "";
            x = 0.885 * safezoneW + safezoneX;
            y = 0.070 * safezoneH + safezoneY;
            w = 0.093 * safezoneW;
            h = 0.113 * safezoneH;
            colorText[] = {1,1,1,1};
            colorBackground[] = {0,0,0,0};
            shadow = 2;
            class Attributes {
                align = "center";
            };
        };
        class Hud_HudKills: RscTextGUIK
        {
            idc = hud_Kills;
            type = CT_STRUCTURED_TEXT;
            text = "";
            x = 0.931 * safezoneW + safezoneX;
            y = 0.256 * safezoneH + safezoneY;
            w = 0.037 * safezoneW;
            h = 0.047 * safezoneH;
            colorText[] = {1,1,1,0.75};
            colorBackground[] = {0,0,0,0};
            shadow = 2;
            class Attributes {
                align = "right";
            };
        };
        class Hud_HudKillsZ_HS: RscTextGUIK
        {
            idc = hud_KillsZ_HS;
            type = CT_STRUCTURED_TEXT;
            text = "";
            x = 0.931 * safezoneW + safezoneX;
            y = 0.466 * safezoneH + safezoneY;
            w = 0.037 * safezoneW;
            h = 0.047 * safezoneH;
            colorText[] = {1,1,1,0.75};
            colorBackground[] = {0,0,0,0};
            shadow = 2;
            class Attributes {
                align = "right";
            };
        };
        class Hud_HudKillsB: RscTextGUIK
        {
            idc = hud_KillsB;
            type = CT_STRUCTURED_TEXT;
            text = "";
            x = 0.931 * safezoneW + safezoneX;
            y = 0.326 * safezoneH + safezoneY;
            w = 0.037 * safezoneW;
            h = 0.047 * safezoneH;
            colorText[] = {1,1,1,0.75};
            colorBackground[] = {0,0,0,0};
            shadow = 2;
            class Attributes {
                align = "right";
            };
        };
        class Hud_HudKillsZ: RscTextGUIK
        {
            idc = hud_KillsZ;
            type = CT_STRUCTURED_TEXT;
            text = "";
            x = 0.931 * safezoneW + safezoneX;
            y = 0.396 * safezoneH + safezoneY;
            w = 0.037 * safezoneW;
            h = 0.047 * safezoneH;
            colorText[] = {1,1,1,0.75};
            colorBackground[] = {0,0,0,0};
            shadow = 2;
            class Attributes {
                align = "right";
            };
        };
        class Hud_HudBorder: RscTextGUIK
        {
            idc = hud_Border;
            type = CT_STRUCTURED_TEXT;
            //text = "images\icons\status_humanity_border.paa";
            text = "";
            x = 0.885 * safezoneW + safezoneX;
            y = 0.080 * safezoneH + safezoneY;
            w = 0.093 * safezoneW;
            h = 0.110 * safezoneH;
            colorText[] = {0,0,0,0.6};
            class Attributes {
                align = "center";
            };
        };
        class Hud_HudHumanity: RscTextGUIK
        {
            idc = hud_Humanity;
            type = CT_STRUCTURED_TEXT;
            text = "";
            x = 0.9065 * safezoneW + safezoneX;
            y = 0.1630 * safezoneH + safezoneY;
            w = 0.050 * safezoneW;
            h = 0.064 * safezoneH;
            size = 0.0275;
            sizeEx = 0.0275;
            colorText[] = {0.6875,0.6875,0.6875,1};
            colorBackground[] = {0,0,0,0};
            shadow = 4;
            class Attributes {
                align = "center";
            };
        };
        class Hud_HudZ: RscTextGUIK
        {
            idc = hud_Z;
            type = CT_STRUCTURED_TEXT;
            text = "";
            x = 0.949513 * safezoneW + safezoneX;
            y = 0.44 * safezoneH + safezoneY;
            w = 0.075;
            h = 0.10;
            size = 0.0275;
            sizeEx = 0.0275;
            colorText[] = {1,0,0,0.85};
            colorBackground[] = {0,0,0,0};
            shadow = 2;
            class Attributes {
                align = "right";
            };
        };
        class Hud_Blood: RscTextGUIK
        {
            idc = hud_blood;
            type = CT_STRUCTURED_TEXT;
            text = "";
            x = 0.920313 * safezoneW + safezoneX;
            y = 0.815 * safezoneH + safezoneY;
            w = 0.075;
            h = 0.10;
            size = 0.0275;
            sizeEx = 0.0275;
            colorText[] = {1,0,0,0.85};
            colorBackground[] = {0,0,0,0};
            shadow = 2;
            class Attributes {
                align = "right";
            };
        };
        class Hud_Fps: RscTextGUIK
        {
            idc = hud_fps;
            type = CT_STRUCTURED_TEXT;
            text = "";
            x = 0.916313 * safezoneW + safezoneX;
            y = 0.905 * safezoneH + safezoneY;
            w = 0.21;
            h = 0.21;
            size = 0.0275;
            sizeEx = 0.0275;
            colorText[] = {1,0,0,0.85};
            colorBackground[] = {0,0,0,0};
            shadow = 2;
            class Attributes {
                align = "right";
            };
        };
        class Hud_Serv: RscTextGUIK
        {
            idc = hud_serv;
            type = CT_STRUCTURED_TEXT;
            text = "";
            x = 0.845313 * safezoneW + safezoneX;
            y = 0.935 * safezoneH + safezoneY;
            w = 0.21;
            h = 0.21;
            size = 0.0275;
            sizeEx = 0.0275;
            colorText[] = {1,0,0,0.85};
            colorBackground[] = {0,0,0,0};
            shadow = 2;
            class Attributes {
                align = "right";
            };
        };
        class Hud_Site: RscTextGUIK
        {
            idc = hud_site;
            type = CT_STRUCTURED_TEXT;
            text = "";
            x = 0.845313 * safezoneW + safezoneX;
            y = 0.965 * safezoneH + safezoneY;
            w = 0.21;
            h = 0.21;
            size = 0.0275;
            sizeEx = 0.0275;
            colorText[] = {1,0,0,0.85};
            colorBackground[] = {0,0,0,0};
            shadow = 2;
            class Attributes {
                align = "left";
            };
        };
        class Hud_ts: RscTextGUIK
        {
            idc = hud_ts;
            type = CT_STRUCTURED_TEXT;
            text = "";
            x = 0.845313 * safezoneW + safezoneX;
            y = 0.978 * safezoneH + safezoneY;
            w = 0.21;
            h = 0.21;
            size = 0.0275;
            sizeEx = 0.0275;
            colorText[] = {1,0,0,0.85};
            colorBackground[] = {0,0,0,0};
            shadow = 2;
            class Attributes {
                align = "left";
            };
        };
    };
};

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...