Jump to content

[Tutorial] NEW Spawn Menu


AmaZiinG
 Share

Recommended Posts

Autor: Entity

Replace the spawnSelection.hpp by that:

class life_spawn_selection
{
 idd = 38500;
 movingEnabled = 0;
 enableSimulation = 1;
 class controlsBackground
 {
 class life_RscTitleBackground: Life_RscText
 {
 idc = 1000;
 x = 0.0101577 * safezoneW + safezoneX;
 y = 0.0291999 * safezoneH + safezoneY;
 w = 0.170156 * safezoneW;
 h = 0.9438 * safezoneH;
 colorBackground[] = {0.294,0.286,0.286,0.8};
 };

 class Title: Life_RscText
 {
 idc = 1001;
 text = "Spawn Selection";
 x = 0.0132501 * safezoneW + safezoneX;
 y = 0.0402 * safezoneH + safezoneY;
 w = 0.164999 * safezoneW;
 h = 0.0242 * safezoneH;
 };

 class MapView: Life_RscMapControl
 {
 idc = 38502;
 x = 0.183407 * safezoneW + safezoneX;
 y = 0.0292 * safezoneH + safezoneY;
 w = 0.8085 * safezoneW;
 h = 0.9438 * safezoneH;
 maxSatelliteAlpha = 0.75;
 alphaFadeStartScale = 1.15;
 alphaFadeEndScale = 1.29;
 };
 };

 class controls {
 class spawnList: Life_RscListNbox
 {
 idc = 38510;
 x = 0.0153125 * safezoneW + safezoneX;
 y = 0.071 * safezoneH + safezoneY;
 w = 0.159844 * safezoneW;
 h = 0.847 * safezoneH;
 text = "";
 sizeEx = 0.041;
 coloumns[] = {0,0,0.9};
 drawSideArrows = 1;
 idcLeft = -1;
 idcRight = -1;
 rowHeight = 0.050;
 onLBSelChanged = "_this call life_fnc_spawnPointSelected;";
 };

 class spawnButton: Life_RscButtonMenu
 {
 idc = -1;
 text = "Enter";
 x = 0.0153125 * safezoneW + safezoneX;
 y = 0.9246 * safezoneH + safezoneY;
 w = 0.159844 * safezoneW;
 h = 0.033 * safezoneH;
 style = "0x02";
 colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
 colorBackgroundActive[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.69])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.75])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.5])",1};
 colorBackgroundDisabled[] = {0.95,0.95,0.95,0};
 offsetX = 0.003;
 offsetY = 0.003;
 offsetPressedX = 0.002;
 offsetPressedY = 0.002;
 colorShadow[] = {0,0,0,1};
 colorBorder[] = {0,0,0,0};
 borderSize = 0.008;
 onButtonClick = "[] call life_fnc_spawnConfirm";
 };
 };
};

Screenshot:http://imgur.com/nrCSz9c

 

Finish !

 

  • Like 11
Link to comment
Share on other sites

  • 4 weeks later...
  • 3 weeks later...
  • 3 months later...
  • 2 weeks later...
  • 1 month later...
  • 4 weeks later...

I have the Edited version of this if all i did was put it in Notepad ++ format so you dont have to edit it

 

 

 

class life_spawn_selection {
    idd = 38500;
    movingEnabled = 0;
    enableSimulation = 1;
    
    class controlsBackground {
         class life_RscTitleBackground: Life_RscText {
            idc = 1000;
            x = 0.0101577 * safezoneW + safezoneX;
            y = 0.0291999 * safezoneH + safezoneY;
            w = 0.170156 * safezoneW;
            h = 0.9438 * safezoneH;
            colorBackground[] = {0.294,0.286,0.286,0.8};
        };

        class Title: Life_RscText {
            idc = 1001;
            text = "Spawn Selection";
            x = 0.0132501 * safezoneW + safezoneX;
            y = 0.0402 * safezoneH + safezoneY;
            w = 0.164999 * safezoneW;
            h = 0.0242 * safezoneH;
        };

        class MapView: Life_RscMapControl {
            idc = 38502;
            x = 0.183407 * safezoneW + safezoneX;
            y = 0.0292 * safezoneH + safezoneY;
            w = 0.8085 * safezoneW;
            h = 0.9438 * safezoneH;
            maxSatelliteAlpha = 0.75;
            alphaFadeStartScale = 1.15;
            alphaFadeEndScale = 1.29;
        };
    };

    class controls {
        class spawnList: Life_RscListNbox {
            idc = 38510;
            x = 0.0153125 * safezoneW + safezoneX;
            y = 0.071 * safezoneH + safezoneY;
            w = 0.159844 * safezoneW;
            h = 0.847 * safezoneH;
            text = "";
            sizeEx = 0.041;
            coloumns[] = {0,0,0.9};
            drawSideArrows = 1;
            idcLeft = -1;
            idcRight = -1;
            rowHeight = 0.050;
            onLBSelChanged = "_this call life_fnc_spawnPointSelected;";
        };

        class spawnButton: Life_RscButtonMenu {
            idc = -1;
            text = "Enter";
            x = 0.0153125 * safezoneW + safezoneX;
            y = 0.9246 * safezoneH + safezoneY;
            w = 0.159844 * safezoneW;
            h = 0.033 * safezoneH;
            style = "0x02";
            colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
            colorBackgroundActive[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.69])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.75])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.5])",1};
            colorBackgroundDisabled[] = {0.95,0.95,0.95,0};
            offsetX = 0.003;
            offsetY = 0.003;
            offsetPressedX = 0.002;
            offsetPressedY = 0.002;
            colorShadow[] = {0,0,0,1};
            colorBorder[] = {0,0,0,0};
            borderSize = 0.008;
            onButtonClick = "[] call life_fnc_spawnConfirm";
        };
    };
};

Edited by Jake barry
Link to comment
Share on other sites

  • 4 months later...
  • 1 month later...
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.