Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CfgPatches
- {
- class testDisplay
- {
- author="Testicles";
- name="Component Test";
- requiredAddons[]=
- {
- "A3_Data_F",
- "A3_Functions_F",
- "A3_UiFonts_F"
- };
- requiredVersion=0.1;
- units[]={};
- weapons[]={};
- };
- };
- /*
- [vehicle player, [-1]] enableInfoPanelComponent ["left", "TestDisplay", false];
- ^ Returns true, but nothing happens.
- */
- class Components;
- class DefaultVehicleSystemsDisplayManagerLeft;
- class DefaultVehicleSystemsDisplayManagerRight;
- /*
- Testvehicle, duh.
- */
- class CfgVehicles
- {
- class B_Quadbike_01_F;
- class testDisplay_B_Quadbike_01_F : B_Quadbike_01_F
- {
- author = "Testicles";
- displayName = "Test Display Vehicle";
- class Components: Components
- {
- class VehicleSystemsDisplayManagerComponentLeft: DefaultVehicleSystemsDisplayManagerLeft
- {
- class Components : Components
- {
- class TestDisplay
- {
- componentType = "CustomDisplayComponent";
- resource = "testDisplay_RscTestComponent";
- };
- };
- };
- class VehicleSystemsDisplayManagerComponentRight: DefaultVehicleSystemsDisplayManagerRight
- {
- class Components : Components
- {
- class TestDisplay
- {
- componentType = "CustomDisplayComponent";
- resource = "testDisplay_RscTestComponent";
- };
- };
- };
- };
- };
- };
- /*
- Resource for component
- */
- class RscPicture;
- class RscIGUIText;
- class RscIGUIValue;
- class testDisplay_RscTestComponent
- {
- idd=1166;
- //scriptName="RscMiniMap";
- //scriptPath="IGUI";
- onLoad=" ['onLoad',_this,'RscCustomInfoMiniMap','IGUI'] call (uinamespace getvariable 'BIS_fnc_initDisplay') ";
- onUnload=" ['onUnload',_this,'RscCustomInfoMiniMap','IGUI'] call (uinamespace getvariable 'BIS_fnc_initDisplay')";
- class controlsBackground
- {
- class Background: RscPicture
- {
- IDC=15110;
- text="A3\Ui_f\data\IGUI\RscCustomInfo\background_ca.paa";
- x=0;
- y="1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
- w = 0.12375 * safezoneW;
- h = 0.22 * safezoneH;
- colorText[]=
- {
- "(profilenamespace getvariable ['IGUI_BCG_RGB_R',0])",
- "(profilenamespace getvariable ['IGUI_BCG_RGB_G',1])",
- "(profilenamespace getvariable ['IGUI_BCG_RGB_B',1])",
- "(profilenamespace getvariable ['IGUI_BCG_RGB_A',0.8])"
- };
- };
- };
- class controls
- {
- class Title: RscIGUIText
- {
- colorBackground[]=
- {
- "(profilenamespace getvariable ['IGUI_BCG_RGB_R',0])",
- "(profilenamespace getvariable ['IGUI_BCG_RGB_G',1])",
- "(profilenamespace getvariable ['IGUI_BCG_RGB_B',1])",
- "(profilenamespace getvariable ['IGUI_BCG_RGB_A',0.8])"
- };
- colorText[]=
- {
- "(profilenamespace getvariable ['IGUI_TEXT_RGB_R',0])",
- "(profilenamespace getvariable ['IGUI_TEXT_RGB_G',1])",
- "(profilenamespace getvariable ['IGUI_TEXT_RGB_B',1])",
- "(profilenamespace getvariable ['IGUI_TEXT_RGB_A',0.8])"
- };
- idc=15112;
- text="Most Test";
- x="0 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
- y="0 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
- w = 0.12375 * safezoneW;
- h = 0.022 * safezoneH;
- sizeEx="0.8 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
- onLoad="(_this select 0) ctrlsettext toupper ctrltext (_this select 0)";
- };
- class Range: RscIGUIValue
- {
- IDC=104;
- text="Wow";
- style=1;
- x="0.5 * (profilenamespace getvariable [""IGUI_GRID_CUSTOMINFORIGHT_W"", (10 * ( ((safezoneW / safezoneH) min 1.2) / 40))])";
- y=0;
- w = 0.061875 * safezoneW;
- h = 0.022 * safezoneH;
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement