Jump to content
MoNtEcRiStO©

[Tutorial] MENU Y IPAD (from German)

Recommended Posts

2 hours ago, Hyper4u said:

anyway to remove so civs cant see wanted list and cops cant create gangs?

Open file fn_p_openMenu.sqf

Case civilian Add:

ctrlShow[1210,false];
ctrlShow[2008,false];

Case West Add:

ctrlShow[1207,false];
ctrlShow[1209,false];

 

Share this post


Link to post
Share on other sites
11 hours ago, AlaskaVet said:

Open file fn_p_openMenu.sqf

Case civilian Add:

ctrlShow[1210,false];
ctrlShow[2008,false];

Case West Add:

ctrlShow[1207,false];
ctrlShow[1209,false];

 

ty ty ty

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Hello good day. I need a hand that I have a problem that when I create to modify the tablet decorate it I get a white background. How do I remove that white background so it does not come out? Thank you very much and forgive my English. I am Spanish. a greeting

photo tablet

Share this post


Link to post
Share on other sites
		 class holy_help : Life_RscButtonMenu {
			idc = -1;
			text = "Yardım Sistemi";
			onButtonClick = "createDialog 'holy_help'";
			x = 0.26 + (6.25 / 19.8) + (1 / 250 / (safezoneW / safezoneH));
			y = 0.805;
			w = (6.25 / 40);
			h = (1 / 25);
		};

How can I edit these codes?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
На 22.09.2016 в 8:04, Montecristo © сказал:

Montecristo

Good afternoon!
Share please the whole version of the tablet with buttons if anyone has one.
Or show an example of how to place them.
Many thanks.

Share this post


Link to post
Share on other sites
On 2016. 12. 6. at 3:48 PM, IceEagle132 said:

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

The message button is unavailable.

What should I do?
 

Share this post


Link to post
Share on other sites

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.


×
×
  • Create New...