Magazin de vetements buggé. (3.1.4)


#1

Salut !

Tout d’abord, je tien à vous remercié de l’aide que vous m’avez donné sur mon premier topic !

Donc j’en crée un deuxième pour vous expliquez mon problème….

Il se trouve que TOUTS les magasins de vêtements ne fonctionnent pas :

• On ne peut pas changer de catégories

• Les boutons “acheté” et “fermer” ne fonctionnent pas, on ne peut même pas cliqué dessus.

Je précise que je suis en 3.1.4

Voila merci de votre aide !

Bisoute !


#2

Cherchez un peu!

Tu dois remplacer certains dossiers :

…Altis_Life.Altis/dialog

bank.hpp

clothing.hpp

gang.hpp

Voici où tu peux les trouver.

https://github.com/TAWTonic/Altis-Life/tree/master/extDB-Build/Altis_Life.Altis/dialog


#3

N1colas Merci de ta réponce aussi rapide !

Mais je ne vois pas ou sont les problemes dans ces fichiers :

clothing.hpp

class Life_Clothing {  
	idd = 3100;  
	name= "Life_Clothing";  
	movingEnable = true;  
	enableSimulation = true;  
	//onLoad = "[] execVM 'core\client\keychain\init.sqf'";  

	class controlsBackground {  
		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.30;  
			y = 0;  
			w = 0.318;  
			h = (1 / 25);  
		};  

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

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

		class ClothingList : Life_RscListBox   
		{  
			idc = 3101;  
			text = "";  
			sizeEx = 0.035;  
			onLBSelChanged = "[_this] call life_fnc_changeClothes;";  

			x = -0.29; y = 0.05;  
			w = 0.3; h = 0.35;  
		};  

		class CloseButtonKey : Life_RscButtonMenu   
		{  
			idc = -1;  
			text = "$STR_Global_Close";  
			onButtonClick = "closeDialog 0;";  
			x = -0.14;  
			y = 0.54 - (1 / 25);  
			w = (6.25 / 40);  
			h = (1 / 25);  
		};  

		class BuyButtonKey : Life_RscButtonMenu   
		{  
			idc = -1;  
			text = "$STR_Global_Buy";  
			onButtonClick = "[] call life_fnc_buyClothes;";  
			x = -0.30;  
			y = 0.54 - (1 / 25);  
			w = (6.25 / 40);  
			h = (1 / 25);  
		};  

		class FilterList : Life_RscCombo  
		{  
			idc = 3105;  
			colorBackground[] = {0,0,0,0.7};  
			onLBSelChanged  = "_this call life_fnc_clothingFilter";  
			x = -0.30; y = 0.5 - (1 / 25);  
			w = 0.318; h = 0.035;  
		};  

		class PriceTag : Life_RscStructuredText  
		{  
			idc = 3102;  
			text = "";  
			sizeEx = 0.035;  

			x = -0.30;  
			y = 0.45 - (1 / 25);  
			w = 0.2;  
			h = 0.2;  
		};  

		class TotalPrice : Life_RscStructuredText  
		{  
			idc = 3106;  
			text = "";  
			sizeEx = 0.035;  

			x = -0.15;  
			y = 0.45 - (1 / 25);  
			w = 0.2;  
			h = 0.2;  
		};  
	};  
};  

bank.hpp

class Life_atm_management {  
	idd = 2700;  
	name= "life_atm_menu";  
	movingEnable = false;  
	enableSimulation = true;  

	class controlsBackground {  
		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.35;  
			y = 0.2;  
			w = 0.3;  
			h = (1 / 25);  
		};  

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

	class controls {  

		class CashTitle : Life_RscStructuredText  
		{  
			idc = 2701;  
			text = "";  

			x = 0.39;  
			y = 0.26;  
			w = 0.3;  
			h = 0.2;  
		};  

		class moneyEdit : Life_RscEdit {  

		idc = 2702;  

		text = "1";  
		sizeEx = 0.030;  
		x = 0.4; y = 0.41;  
		w = 0.2; h = 0.03;  

		};  

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

		class WithdrawButton : life_RscButtonMenu   
		{  
			idc = -1;  
			text = "$STR_ATM_Withdraw";  
			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_bankWithdraw";  

			x = 0.432;  
			y = 0.46;  
			w = (6 / 40);  
			h = (1 / 25);  
		};  

		class DepositButton : life_RscButtonMenu   
		{  
			idc = -1;  
			text = "$STR_ATM_Deposit";  
			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_bankDeposit";  

			x = 0.432;  
			y = 0.512;  
			w = (6 / 40);  
			h = (1 / 25);  
		};  

		class PlayerList : Life_RscCombo   
		{  
			idc = 2703;  

			x = 0.4; y = 0.58;  
			w = 0.2; h = 0.03;  
		};  

		class TransferButton : life_RscButtonMenu   
		{  
			idc = -1;  
			text = "$STR_ATM_Transfer";  
			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_bankTransfer";  

			x = 0.432;  
			y = 0.63;  
			w = (5.30 / 40);  
			h = (1 / 25);  
		};  

		class GangDeposit : TransferButton  
		{  
			idc = 2705;  
			text = "$STR_pInAct_DepositToGang";  
			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_gangDeposit";  
			y = .7; x = 0.365;  
			w = 0.275;  
		};  

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

gang.hpp

class Life_My_Gang_Diag {  
	idd = 2620;  
	name= "life_my_gang_menu";  
	movingEnable = false;  
	enableSimulation = true;  
	onLoad = "";  

	class controlsBackground {  
		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 = 2629;  
			text = "";  
			x = 0.1;  
			y = 0.2;  
			w = 0.6;  
			h = (1 / 25);  
		};  

		class GangMemberList : Life_RscListBox   
		{  
			idc = 2621;  
			text = "";  
			sizeEx = 0.035;  

			x = 0.11; y = 0.26;  
			w = 0.350; h = 0.370;  
		};  

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

		class GangLeave : Life_RscButtonMenu {  
			idc = -1;  
			text = "$STR_Gang_Leave";  
			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_gangLeave";  
			x = 0.47;  
			y = 0.26;  
			w = (9 / 40);  
			h = (1 / 25);  
		};  

		class GangLock : Life_RscButtonMenu   
		{  
			idc = 2622;  
			text = "$STR_Gang_UpgradeSlots";  
			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 = "[] spawn life_fnc_gangUpgrade";  
			x = 0.47;  
			y = 0.31;  
			w = (9 / 40);  
			h = (1 / 25);  
		};  

		class GangKick : Life_RscButtonMenu   
		{  
			idc = 2624;  
			text = "$STR_Gang_Kick";  
			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_gangKick";  
			x = 0.47;  
			y = 0.36;  
			w = (9 / 40);  
			h = (1 / 25);  
		};  

		class GangLeader : Life_RscButtonMenu   
		{  
			idc = 2625;  
			text = "$STR_Gang_SetLeader";  
			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 = "[] spawn life_fnc_gangNewLeader";  
			x = 0.47;  
			y = 0.41;  
			w = (9 / 40);  
			h = (1 / 25);  
		};  

		class InviteMember : GangLeader  
		{  
			idc = 2630;  
			text = "$STR_Gang_Invite_Player";  
			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 = "[] spawn life_fnc_gangInvitePlayer";  
			y = .51;  
		};  

		class DisbandGang : InviteMember  
		{  
			idc = 2631;  
			text = "$STR_Gang_Disband_Gang";  
			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 = "[] spawn life_fnc_gangDisband";  
			y = .46;  
		};  

		class ColorList : Life_RscCombo  
		{  
			idc = 2632;  
			x = 0.47; y = 0.56;  
			w = (9 / 40); h = 0.03;  
		};  

		class GangBank : Title {  
			idc = 601;  
			style = 1;  
			text = "";  
		};  
	};  
};  

class Life_Create_Gang_Diag {  
	idd = 2520;  
	name= "life_my_gang_menu_create";  
	movingEnable = false;  
	enableSimulation = true;  
	onLoad = "[] spawn {waitUntil {!isNull (findDisplay 2520)}; ((findDisplay 2520) displayCtrl 2523) ctrlSetText format[localize ""STR_Gang_PriceTxt"",[(call life_gangPrice)] call life_fnc_numberText]};";  

	class controlsBackground {  
		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.5;  
			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.5;  
			h = 0.3 - (22 / 250);  
		};  
	};  

	class controls {  

		class InfoMsg : Life_RscStructuredText  
		{  
			idc = 2523;  
			sizeEx = 0.020;  
			text = "";  
			x = 0.1;  
			y = 0.25;  
			w = 0.5; h = 0.32;  
		};  

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

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

		class GangCreateField : Life_RscButtonMenu {  
			idc = -1;  
			text = "$STR_Gang_Create";  
			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_createGang";  
			x = 0.27;  
			y = 0.40;  
			w = (6.25 / 40);  
			h = (1 / 25);  
		};  

		class CreateGangText : Life_RscEdit  
		{  
			idc = 2522;  
			text = "$STR_Gang_YGN";  

			x = 0.04 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));  
			y = 0.35;  
			w = (13 / 40);  
			h = (1 / 25);  
		};  
	};  
};  

merci !


#4

Remplace tout ne t’inquiétè pas.

Bank.hpp

class Life_atm_management {  
	idd = 2700;  
	name= "life_atm_menu";  
	movingEnable = false;  
	enableSimulation = true;  

	class controlsBackground {  
		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.35;  
			y = 0.2;  
			w = 0.3;  
			h = (1 / 25);  
		};  

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

	class controls {  

		class CashTitle : Life_RscStructuredText  
		{  
			idc = 2701;  
			text = "";  

			x = 0.39;  
			y = 0.26;  
			w = 0.3;  
			h = .14;  
		};  

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

		class WithdrawButton : life_RscButtonMenu   
		{  
			idc = -1;  
			text = "$STR_ATM_Withdraw";  
			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_bankWithdraw";  

			x = 0.432;  
			y = 0.46;  
			w = (6 / 40);  
			h = (1 / 25);  
		};  

		class DepositButton : life_RscButtonMenu   
		{  
			idc = -1;  
			text = "$STR_ATM_Deposit";  
			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_bankDeposit";  

			x = 0.432;  
			y = 0.512;  
			w = (6 / 40);  
			h = (1 / 25);  
		};  

		class moneyEdit : Life_RscEdit {  

		idc = 2702;  

		text = "1";  
		sizeEx = 0.030;  
		x = 0.4; y = 0.41;  
		w = 0.2; h = 0.03;  

		};  

		class PlayerList : Life_RscCombo   
		{  
			idc = 2703;  

			x = 0.4; y = 0.58;  
			w = 0.2; h = 0.03;  
		};  

		class TransferButton : life_RscButtonMenu   
		{  
			idc = -1;  
			text = "$STR_ATM_Transfer";  
			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_bankTransfer";  

			x = 0.432;  
			y = 0.63;  
			w = (5.30 / 40);  
			h = (1 / 25);  
		};  

		class GangDeposit : TransferButton  
		{  
			idc = 2705;  
			text = "$STR_pInAct_DepositToGang";  
			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_gangDeposit";  
			y = .7; x = 0.365;  
			w = 0.275;  
		};  

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

Gang.hpp

class Life_My_Gang_Diag {  
	idd = 2620;  
	name= "life_my_gang_menu";  
	movingEnable = false;  
	enableSimulation = true;  
	onLoad = "";  

	class controlsBackground {  
		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 = 2629;  
			text = "";  
			x = 0.1;  
			y = 0.2;  
			w = 0.6;  
			h = (1 / 25);  
		};  

		class GangMemberList : Life_RscListBox   
		{  
			idc = 2621;  
			text = "";  
			sizeEx = 0.035;  

			x = 0.11; y = 0.26;  
			w = 0.350; h = 0.370;  
		};  

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

		class GangLeave : Life_RscButtonMenu {  
			idc = -1;  
			text = "$STR_Gang_Leave";  
			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_gangLeave";  
			x = 0.47;  
			y = 0.26;  
			w = (9 / 40);  
			h = (1 / 25);  
		};  

		class GangLock : Life_RscButtonMenu   
		{  
			idc = 2622;  
			text = "$STR_Gang_UpgradeSlots";  
			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 = "[] spawn life_fnc_gangUpgrade";  
			x = 0.47;  
			y = 0.31;  
			w = (9 / 40);  
			h = (1 / 25);  
		};  

		class GangKick : Life_RscButtonMenu   
		{  
			idc = 2624;  
			text = "$STR_Gang_Kick";  
			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_gangKick";  
			x = 0.47;  
			y = 0.36;  
			w = (9 / 40);  
			h = (1 / 25);  
		};  

		class GangLeader : Life_RscButtonMenu   
		{  
			idc = 2625;  
			text = "$STR_Gang_SetLeader";  
			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 = "[] spawn life_fnc_gangNewLeader";  
			x = 0.47;  
			y = 0.41;  
			w = (9 / 40);  
			h = (1 / 25);  
		};  

		class InviteMember : GangLeader  
		{  
			idc = 2630;  
			text = "$STR_Gang_Invite_Player";  
			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 = "[] spawn life_fnc_gangInvitePlayer";  
			y = .51;  
		};  

		class DisbandGang : InviteMember  
		{  
			idc = 2631;  
			text = "$STR_Gang_Disband_Gang";  
			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 = "[] spawn life_fnc_gangDisband";  
			y = .46;  
		};  

		class ColorList : Life_RscCombo  
		{  
			idc = 2632;  
			x = 0.47; y = 0.56;  
			w = (9 / 40); h = 0.03;  
		};  

		class GangBank : Title {  
			idc = 601;  
			style = 1;  
			text = "";  
		};  
	};  
};  

class Life_Create_Gang_Diag {  
	idd = 2520;  
	name= "life_my_gang_menu_create";  
	movingEnable = false;  
	enableSimulation = true;  
	onLoad = "[] spawn {waitUntil {!isNull (findDisplay 2520)}; ((findDisplay 2520) displayCtrl 2523) ctrlSetText format[localize ""STR_Gang_PriceTxt"",[(call life_gangPrice)] call life_fnc_numberText]};";  

	class controlsBackground {  
		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.5;  
			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.5;  
			h = 0.3 - (22 / 250);  
		};  
	};  

	class controls {  

		class InfoMsg : Life_RscStructuredText  
		{  
			idc = 2523;  
			sizeEx = 0.020;  
			text = "";  
			x = 0.1;  
			y = 0.25;  
			w = 0.5; h = .11;  
		};  

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

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

		class GangCreateField : Life_RscButtonMenu {  
			idc = -1;  
			text = "$STR_Gang_Create";  
			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_createGang";  
			x = 0.27;  
			y = 0.40;  
			w = (6.25 / 40);  
			h = (1 / 25);  
		};  

		class CreateGangText : Life_RscEdit  
		{  
			idc = 2522;  
			text = "$STR_Gang_YGN";  

			x = 0.04 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));  
			y = 0.35;  
			w = (13 / 40);  
			h = (1 / 25);  
		};  
	};  
};  

Clothing.hpp

class Life_Clothing {  
	idd = 3100;  
	name= "Life_Clothing";  
	movingEnable = true;  
	enableSimulation = true;  
	//onLoad = "[] execVM 'core\client\keychain\init.sqf'";  

	class controlsBackground {  
		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 = (1 / 250 / (safezoneW / safezoneH));  
			y = 0;  
			w = 0.318;  
			h = (1 / 25);  
		};  

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

	class controls   
	{  
		class Title : Life_RscTitle   
		{  
			colorBackground[] = {0, 0, 0, 0};  
			idc = 3103;  
			text = "";  
			x = (1 / 250 / (safezoneW / safezoneH));  
			y = 0;  
			w = 0.6;  
			h = (1 / 25);  
		};  

		class ClothingList : Life_RscListBox   
		{  
			idc = 3101;  
			text = "";  
			sizeEx = 0.035;  
			onLBSelChanged = "[_this] call life_fnc_changeClothes;";  

			x = 0.01 + (1 / 250 / (safezoneW / safezoneH));  
			y = 0.05;  
			w = 0.3;  
			h = 0.35;  
		};  

		class PriceTag : Life_RscStructuredText  
		{  
			idc = 3102;  
			text = "";  
			sizeEx = 0.035;  

			x = (1 / 250 / (safezoneW / safezoneH));  
			y = 0.45 - (1 / 25);  
			w = 0.2;  
			h = 0.2;  
		};  

		class TotalPrice : Life_RscStructuredText  
		{  
			idc = 3106;  
			text = "";  
			sizeEx = 0.035;  

			x = 0.15 + (1 / 250 / (safezoneW / safezoneH));  
			y = 0.45 - (1 / 25);  
			w = 0.2;  
			h = 0.13;  
		};  

		class FilterList : Life_RscCombo  
		{  
			idc = 3105;  
			colorBackground[] = {0,0,0,0.7};  
			onLBSelChanged  = "_this call life_fnc_clothingFilter";  
			x = (1 / 250 / (safezoneW / safezoneH));  
			y = 0.5 - (1 / 25);  
			w = 0.318;  
			h = 0.035;  
		};  

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

		class BuyButtonKey : Life_RscButtonMenu   
		{  
			idc = -1;  
			text = "$STR_Global_Buy";  
			onButtonClick = "[] call life_fnc_buyClothes;";  
			x = (1 / 250 / (safezoneW / safezoneH));  
			y = 0.54 - (1 / 25);  
			w = (6.25 / 40);  
			h = (1 / 25);  
		};  
	};  
};  

#5

N1colas ok merci je te tien au courrant :wink:


#6

N1colas Merci pour ton aide ! cela marche nikel !

Je passe le sujet en “Résolue” !