Jump to content

[Tutorial] MENU Y IPAD (from German)


MoNtEcRiStO©
 Share

Recommended Posts

  • 2 weeks later...

yes right underneath the 

		 class controlsBackground {

in each of the individual dialogues add in the 

		 class HG: life_RscPicture
		 {
		 idc = -1;
		 text = "images\tablet\tablet.paa";
		 x = 0.258501 * safezoneW + safezoneX;
		 y = 0.0716 * safezoneH + safezoneY;
		 w = 0.485625 * safezoneW;
		 h = 0.854 * safezoneH;
		 };

and that will make sure the tablet is there.

 

ie. Go to dialog/key_chain.hpp and underneath:

		 class controlsBackground {

add in 

		 class HG: life_RscPicture
		 {
		 idc = -1;
		 text = "images\tablet\tablet.paa";
		 x = 0.258501 * safezoneW + safezoneX;
		 y = 0.0716 * safezoneH + safezoneY;
		 w = 0.485625 * safezoneW;
		 h = 0.854 * safezoneH;
		 };

 so it will look like: 

class Life_key_management {
    idd = 2700;
    name= "life_key_chain";
    movingEnable = 0;
    enableSimulation = 1;
    onLoad = "[] spawn life_fnc_keyMenu;";

    class controlsBackground {
             class HG: life_RscPicture
         {
         idc = -1;
         text = "images\tablet\tablet.paa";
         x = 0.258501 * safezoneW + safezoneX;
         y = 0.0716 * safezoneH + safezoneY;
         w = 0.485625 * safezoneW;
         h = 0.854 * safezoneH;
         };
        class Life_RscTitleBackground: Life_RscText {
            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])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
            idc = -1;
            x = 0.1;
            y = 0.2;
            w = 0.6;
            h = (1 / 25);
        };

        class MainBackground: Life_RscText {
            colorBackground[] = {0, 0, 0, 0.7};
            idc = -1;
            x = 0.1;
            y = 0.2 + (11 / 250);
            w = 0.6;
            h = 0.6 - (22 / 250);
        };
    };

    class controls {
        class Title: Life_RscTitle {
            colorBackground[] = {0, 0, 0, 0};
            idc = -1;
            text = "$STR_Keys_Title";
            x = 0.1;
            y = 0.2;
            w = 0.6;
            h = (1 / 25);
        };

        class KeyChainList: Life_RscListBox {
            idc = 2701;
            text = "";
            sizeEx = 0.035;
            x = 0.12;
            y = 0.26;
            w = 0.56;
            h = 0.370;
        };

        class CloseButtonKey: Life_RscButtonMenu {
            idc = -1;
            text = "$STR_Global_Close";
            onButtonClick = "closeDialog 0;";
            x = -0.06 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
            y = 0.8 - (1 / 25);
            w = (6.25 / 40);
            h = (1 / 25);
        };

        class NearPlayers: Life_RscCombo {
            idc = 2702;
            x = 0.26;
            y = 0.645;
            w = 0.275;
            h = 0.03;
        };

        class DropKey: Life_RscButtonMenu {
            idc = -1;
            text = "$STR_Keys_DropKey";
            onButtonClick = "[] call life_fnc_keyDrop";
            x = 0.1 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
            y = 0.8 - (1 / 25);
            w = (6.25 / 40);
            h = (1 / 25);
        };

        class GiveKey: Life_RscButtonMenu {
            idc = 2703;
            text = "$STR_Keys_GiveKey";
            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};
            onButtonClick = "[] call life_fnc_keyGive";
            x = 0.32;
            y = 0.69;
            w = (6.25 / 40);
            h = (1 / 25);
        };
    };
};

 

Edited by dexatrin82
  • Like 1
Link to comment
Share on other sites

  • 1 month later...
On 22.9.2016 at 7:04 AM, MoNtEcRiStO© said:

Für infiSTAR Nutzer:

 

 

Sofern euer infiSTAR korrekt konfiguriert wurde werden eure Spieler aufgrund der neuen Buttons im Z-Menü gekickt werden. Um dies zu verhindern fügt einfach die "IDC"-

Nummer jedes Buttons in eurer run.sqf unter "_allowedDialogs" ein.

 

 

Hier habt ihr die Nummern aller Buttons: 2008,1210,1209,1207,980021,2002,1205,2001,1204,2000,20111,2021,20210,2002,2023,2014,2001,2022,2018,2015

In english:

For infiSTAR users:

if you configured infiSTAR successful all players will get kicked for the new buttons. To prevent that, add the IDC's from the dialogs to your "_allowedDialogs" in infiSTAR. 

Numbers to add:

2008,1210,1209,1207,980021,2002,1205,2001,1204,2000,20111,2021,20210,2002,2023,2014,2001,2022,2018,2015

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 weeks later...
  • 1 month later...
  • 2 weeks later...
On 2016. 12. 6. at 3:48 PM, IceEagle132 said:

나는 배경을 가지고 정상적으로 시작한다. 왜냐하면 위에 구축 할 무언가로 GUI를 만드는 것이 더 쉽기 때문이다.

The message button is unavailable.

What should I do?
 

Link to comment
Share on other sites

  • 1 year 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.