Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
mash6

Inventory modification

Recommended Posts

Hi,

I am trying to make a script execute when you double click on a item in your backpack, your uniform or your vest, and an other script when you double click on your backpack. So I need to edit RscDisplayInventory. I writed the following code :

Same on pastebin : http://pastebin.com/6cH6f5sn (Edited lines 647, 677, 695, 708)

class RscDisplayInventory {
scriptName = "RscDisplayInventory";
scriptPath = IGUI;
onLoad = "[""onLoad"",_this,""RscDisplayInventory"",'IGUI'] call 	(uinamespace getvariable 'BIS_fnc_initDisplay')";
onUnload = "[""onUnload"",_this,""RscDisplayInventory"",'IGUI'] call 	(uinamespace getvariable 'BIS_fnc_initDisplay')";
idd = 602;
enableSimulation = 1;

class Colors {
	dragValidBgr[] = {"(profilenamespace getvariable ['IGUI_TEXT_RGB_R',0])", "(profilenamespace getvariable ['IGUI_TEXT_RGB_G',1])", "(profilenamespace getvariable ['IGUI_TEXT_RGB_B',1])", 0.5};
	dragInvalidBgr[] = {"(profilenamespace getvariable ['IGUI_ERROR_RGB_R',0.8])", "(profilenamespace getvariable ['IGUI_ERROR_RGB_G',0.0])", "(profilenamespace getvariable ['IGUI_ERROR_RGB_B',0.0])", 0.5};
	dragValidBar[] = {"(profilenamespace getvariable ['IGUI_WARNING_RGB_R',0.8])", "(profilenamespace getvariable ['IGUI_WARNING_RGB_G',0.5])", "(profilenamespace getvariable ['IGUI_WARNING_RGB_B',0.0])", 0.5};
	dragInvalidBar[] = {"(profilenamespace getvariable ['IGUI_ERROR_RGB_R',0.8])", "(profilenamespace getvariable ['IGUI_ERROR_RGB_G',0.0])", "(profilenamespace getvariable ['IGUI_ERROR_RGB_B',0.0])", 0.5};
	progressBar[] = {"(profilenamespace getvariable ['IGUI_TEXT_RGB_R',0])", "(profilenamespace getvariable ['IGUI_TEXT_RGB_G',1])", "(profilenamespace getvariable ['IGUI_TEXT_RGB_B',1])", 1};
	progressBarBgr[] = {"(profilenamespace getvariable ['IGUI_BCG_RGB_R',0])", "(profilenamespace getvariable ['IGUI_BCG_RGB_G',1])", "(profilenamespace getvariable ['IGUI_BCG_RGB_B',1])", 0.75};
	highlight[] = {"(profilenamespace getvariable ['IGUI_TEXT_RGB_R',0])", "(profilenamespace getvariable ['IGUI_TEXT_RGB_G',1])", "(profilenamespace getvariable ['IGUI_TEXT_RGB_B',1])", 0.5};
};

class controlsBackground {};

class controls {
	class Background {};
	class Title {};
	class ButtonOK {};
	class ButtonCancel {};

	class CA_ContainerBackground : RscText {
		idc = 1001;
		x = "1 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "12 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "23 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorBackground[] = {0.05, 0.05, 0.05, 0.7};
	};

	class CA_PlayerBackground : RscText {
		idc = 1002;
		x = "14.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "24.4 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "22 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorBackground[] = {0.05, 0.05, 0.05, 0.7};
	};

	class TitleBackground : RscText {
		idc = 1020;
		x = "14.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "24.4 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorBackground[] = {0.1, 0.1, 0.1, 1};
	};

	class PlayersName : RscText {
		idc = 111;
		text = $STR_DIARY_PLAYER_NAME;
		x = "15.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "19.8 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class RankBackground : RscText {
		idc = 1014;
		x = "15.1 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "1.25 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "0.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "0.6 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorBackground[] = {1, 1, 1, 0.2};
	};

	class RankPicture : RscPicture {
		idc = 1203;
		text = "\A3\Ui_f\data\GUI\Cfg\Ranks\corporal_gs.paa";
		x = "15.1 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "1.25 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "0.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "0.6 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class ButtonBack : RscActiveText {
		idc = 2;
		style = 48;
		color[] = {1, 1, 1, 0.7};
		text = "\A3\Ui_f\data\GUI\Rsc\RscDisplayArcadeMap\icon_exit_cross_ca.paa";
		x = "38 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "1 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {1, 1, 1, 0.7};
		colorActive[] = {1, 1, 1, 1};
		tooltip = $STR_DISP_CLOSE;
	};

	class BackgroundSlotPrimary : RscPicture {
		idc = 1242;
		x = "26.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "6 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "11.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "3 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotPrimaryMuzzle : BackgroundSlotPrimary {
		idc = 1243;
		x = "26.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "9.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotPrimaryFlashlight : BackgroundSlotPrimary {
		idc = 1244;
		x = "29.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "9.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotPrimaryOptics : BackgroundSlotPrimary {
		idc = 1245;
		x = "32.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "9.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotPrimaryMagazine : BackgroundSlotPrimary {
		idc = 1246;
		x = "35.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "9.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotSecondary : BackgroundSlotPrimary {
		idc = 1247;
		x = "26.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "11.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "11.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "3 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotSecondaryMuzzle : BackgroundSlotPrimary {
		idc = 1248;
		x = "26.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "14.6 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotSecondaryFlashlight : BackgroundSlotPrimary {
		idc = 1249;
		x = "29.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "14.6 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotSecondaryOptics : BackgroundSlotPrimary {
		idc = 1250;
		x = "32.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "14.6 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotSecondaryMagazine : BackgroundSlotPrimary {
		idc = 1251;
		x = "35.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "14.6 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotHandgun : BackgroundSlotPrimary {
		idc = 1252;
		x = "26.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "17 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "11.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "3 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotHandgunMuzzle : BackgroundSlotPrimary {
		idc = 1253;
		x = "26.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "20.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotHandgunFlashlight : BackgroundSlotPrimary {
		idc = 1254;
		x = "29.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "20.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotHandgunOptics : BackgroundSlotPrimary {
		idc = 1255;
		x = "32.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "20.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotHandgunMagazine : BackgroundSlotPrimary {
		idc = 1256;
		x = "35.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "20.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotHeadgear : BackgroundSlotPrimary {
		idc = 1257;
		x = "26.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "2.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2.9 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotGoggles : BackgroundSlotPrimary {
		idc = 1258;
		x = "29.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "2.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2.9 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotHMD : BackgroundSlotPrimary {
		idc = 1259;
		x = "32.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "2.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2.9 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotBinoculars : BackgroundSlotPrimary {
		idc = 1260;
		x = "35.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "2.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2.9 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotMap : BackgroundSlotPrimary {
		idc = 1261;
		x = "15.1 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "20.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.12 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotGPS : BackgroundSlotPrimary {
		idc = 1262;
		x = "17.32 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "20.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.12 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotCompass : BackgroundSlotPrimary {
		idc = 1263;
		x = "21.76 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "20.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.12 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotRadio : BackgroundSlotPrimary {
		idc = 1264;
		x = "19.54 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "20.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.12 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackgroundSlotWatch : BackgroundSlotPrimary {
		idc = 1265;
		x = "23.98 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "20.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.12 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class ExternalContainerBackground : RscPicture {
		colorText[] = {1, 1, 1, 0.1};
		idc = 1240;
		x = "1.5 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "3.7 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "11 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "18.4 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class PlayerContainerBackground : ExternalContainerBackground {
		idc = 1241;
		x = "15.1 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "6 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "11 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "14 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class GroundTab : RscActiveText {
		idc = 6321;
		colorBackgroundSelected[] = {1, 1, 1, 1};
		colorFocused[] = {1, 1, 1, 0};
		soundDoubleClick[] = {"", 0.1, 1};
		color[] = {1, 1, 1, 1};
		colorBackground[] = {0, 0, 0, 1};
		x = "1.5 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "1.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "5.5 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class SoldierTab : GroundTab {
		idc = 6401;
		x = "7 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "1.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "5.5 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class GroundContainer : RscListBox {
		idc = 632;
		sizeEx = "0.8 * 			(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		sizeEx2 = "0.8 * 			(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		rowHeight = "2 * 			(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		canDrag = 1;
		colorText[] = {1, 1, 1, 1};
		colorBackground[] = {0, 0, 0, 0};
		itemBackground[] = {1, 1, 1, 0.1};
		itemSpacing = 0.001;
		x = "1.5 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "3.7 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "11 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "18.4 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class SoldierContainer : GroundContainer {
		idc = 640;
	};

	class GroundFilter : RscCombo {
		idc = 6554;
		x = "1.5 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "2.6 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "11 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class GroundLoad : RscProgress {
		idc = 6307;
		texture = "";
		textureExt = "";
		colorBar[] = {0.9, 0.9, 0.9, 0.9};
		colorExtBar[] = {1, 1, 1, 1};
		colorFrame[] = {1, 1, 1, 1};
		x = "1.5 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "22.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "11 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class SlotPrimary : GroundTab {
		idc = 610;
		style = 0x30 + 0x800;
		color[] = {1, 1, 1, 1};
		colorBackground[] = {1, 1, 1, 0.1};
		colorBackgroundSelected[] = {1, 1, 1, 0.1};
		colorFocused[] = {0, 0, 0, 0};
		canDrag = 1;
		x = "26.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "6 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "11.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "3 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotPrimaryMuzzle : SlotPrimary {
		idc = 620;
		x = "26.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "9.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotPrimaryGrip : SlotPrimary {
		idc = -1;
		w = 0;
		h = 0;
		x = "39 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "9 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotPrimaryFlashlight : SlotPrimary {
		idc = 622;
		x = "29.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "9.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotPrimaryOptics : SlotPrimary {
		idc = 621;
		x = "32.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "9.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotPrimaryMagazine : SlotPrimary {
		idc = 623;
		x = "35.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "9.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotSecondary : SlotPrimary {
		idc = 611;
		x = "26.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "11.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "11.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "3 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotSecondaryMuzzle : SlotPrimary {
		idc = 624;
		x = "26.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "14.6 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotSecondaryGrip : SlotPrimary {
		idc = -1;
		w = 0;
		h = 0;
		x = "39 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "14.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotSecondaryFlashlight : SlotPrimary {
		idc = 626;
		x = "29.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "14.6 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotSecondaryOptics : SlotPrimary {
		idc = 625;
		x = "32.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "14.6 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotSecondaryMagazine : SlotPrimary {
		idc = 627;
		x = "35.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "14.6 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotHandgun : SlotPrimary {
		idc = 612;
		x = "26.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "17 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "11.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "3 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotHandgunMuzzle : SlotPrimary {
		idc = 628;
		x = "26.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "20.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotHandgunGrip : SlotPrimary {
		idc = -1;
		w = 0;
		h = 0;
		x = "39 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "20 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotHandgunFlashlight : SlotPrimary {
		idc = 630;
		x = "29.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "20.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotHandgunOptics : SlotPrimary {
		idc = 629;
		x = "32.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "20.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotHandgunMagazine : SlotPrimary {
		idc = 631;
		x = "35.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "20.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotHeadgear : SlotPrimary {
		idc = 6240;
		x = "26.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "2.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2.9 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotGoggles : SlotPrimary {
		idc = 6216;
		x = "29.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "2.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2.9 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotHMD : SlotPrimary {
		idc = 6217;
		x = "32.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "2.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2.9 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotBinoculars : SlotPrimary {
		idc = 6238;
		x = "35.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "2.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2.9 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2.9 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotMap : SlotPrimary {
		idc = 6211;
		x = "15.16 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "20.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotGPS : SlotPrimary {
		idc = 6215;
		x = "17.38 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "20.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotCompass : SlotPrimary {
		idc = 6212;
		x = "21.82 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "20.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotRadio : SlotPrimary {
		idc = 6214;
		x = "19.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "20.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class SlotWatch : SlotPrimary {
		idc = 6213;
		x = "24.04 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "20.1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "2 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "2 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class UniformTab : GroundTab {
		idc = 6332;
		x = "15.1 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "2.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "3.5 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "3 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorBackground[] = {1, 1, 1, 0.5};
	};

	class UniformSlot : SlotPrimary {
		idc = 6331;
		x = "15.35 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "2.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "3 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "3 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class UniformLoad : GroundLoad {
		idc = 6304;
		x = "15.1 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "5.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "3.5 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "0.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class UniformContainer : GroundContainer {
		idc = 633;
		x = "15.1 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "6 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "11 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "14 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		onMouseButtonDblClick = "_this call inv_fnc_useItem";
	};

	class VestTab : UniformTab {
		idc = 6382;
		x = "18.85 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "2.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "3.5 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "3 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class VestSlot : SlotPrimary {
		idc = 6381;
		x = "19.1 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "2.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "3 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "3 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
	};

	class VestLoad : GroundLoad {
		idc = 6305;
		x = "18.85 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "5.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "3.5 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "0.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class VestContainer : UniformContainer {
		idc = 638;
		onMouseButtonDblClick = "_this call inv_fnc_useItem";
	};

	class BackpackTab : UniformTab {
		idc = 6192;
		x = "22.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "2.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "3.5 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "3 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackpackSlot : SlotPrimary {
		idc = 6191;
		x = "22.85 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "2.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "3 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "3 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
		colorText[] = {0, 0, 0, 0.5};
		onMouseButtonDblClick = "_this call inv_fnc_backpackBuild";
	};

	class BackpackLoad : GroundLoad {
		idc = 6306;
		x = "22.6 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "5.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "3.5 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "0.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class BackpackContainer : UniformContainer {
		idc = 619;
		onMouseButtonDblClick = "_this call inv_fnc_useItem";
	};

	class TotalLoad : GroundLoad {
		idc = 6308;
		x = "15.1 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "22.5 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "23.4 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class ContainerMarker : GroundTab {
		idc = 6325;
		x = "0 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "24 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "1 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class GroundMarker : ContainerMarker {
		idc = 6385;
		x = "1.5 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "24 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "1 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};

	class SoldierMarker : ContainerMarker {
		idc = 6405;
		x = "3 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
		y = "24 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
		w = "1 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
		h = "1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	};
};
};

I included it in a config.cpp file in addon, games starts well but in game, when I try to open inventory, it crashed. In RPT it tells :

23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/GroundContainer 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SoldierContainer 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotPrimary 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotPrimaryMuzzle 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotPrimaryGrip 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotPrimaryFlashlight 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotPrimaryOptics 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotPrimaryMagazine 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotSecondary 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotSecondaryMuzzle 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotSecondaryGrip 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotSecondaryFlashlight 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotSecondaryOptics 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotSecondaryMagazine 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotHandgun 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotHandgunMuzzle 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotHandgunGrip 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotHandgunFlashlight 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotHandgunOptics 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotHandgunMagazine 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotHeadgear 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotGoggles 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotHMD 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotBinoculars 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotMap 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotGPS 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotCompass 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotRadio 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/SlotWatch 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/UniformSlot 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/UniformContainer 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/VestSlot 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/VestContainer 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/BackpackSlot 
23:14:21 Warning: no type entry inside class RscDisplayInventory/controls/BackpackContainer 

I don't know what I'm failling... I just added som onMouseButtonDblClick on controls...

If you can help me...

Best regards

---------- Post added 03-25-2015 at 12:13 AM ---------- Previous post was 03-24-2015 at 11:27 PM ----------

Autofixed - Sorry, misplaced some base classes declarations

Share this post


Link to post
Share on other sites

Hi ! Where did you found the "RscDisplayInventory" ?

i'm shearching it too !

Thanks ;)

Share this post


Link to post
Share on other sites

Hey, found it in ui_f/config.bin ;)

Unbinarized with unrap with the option "1 file by class" and it's OK ;)

Share this post


Link to post
Share on other sites
Sign in to follow this  

×