Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ArmA 3 TAW View Distance Management
- Resource Definesby Sa-Matra
- */
- class TAWVD_RscShortcutButton {
- idc = -1;
- style = 0;
- default = 0;
- shadow = 1;
- w = 0.183825;
- h = "( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 20)";
- color[] = {1,1,1,1.0};
- colorFocused[] = {1,1,1,1.0};
- color2[] = {0.95,0.95,0.95,1};
- colorDisabled[] = {1,1,1,0.25};
- colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.69])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.75])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.5])",1};
- colorBackgroundFocused[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.69])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.75])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.5])",1};
- colorBackground2[] = {1,1,1,1};
- animTextureDefault = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa";
- animTextureNormal = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa";
- animTextureDisabled = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa";
- animTextureOver = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\over_ca.paa";
- animTextureFocused = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\focus_ca.paa";
- animTexturePressed = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\down_ca.paa";
- periodFocus = 1.2;
- periodOver = 0.8;
- class HitZone
- {
- left = 0.0;
- top = 0.0;
- right = 0.0;
- bottom = 0.0;
- };
- class ShortcutPos
- {
- left = 0;
- top = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 20) - ( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2";
- w = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1) * (3/4)";
- h = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
- };
- class TextPos
- {
- left = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1) * (3/4)";
- top = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 20) - ( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2";
- right = 0.005;
- bottom = 0.0;
- };
- period = 0.4;
- font = "PuristaMedium";
- size = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
- sizeEx = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
- text = "";
- soundEnter[] = {"\A3\ui_f\data\sound\RscButton\soundEnter",0.09,1};
- soundPush[] = {"\A3\ui_f\data\sound\RscButton\soundPush",0.09,1};
- soundClick[] = {"\A3\ui_f\data\sound\RscButton\soundClick",0.09,1};
- soundEscape[] = {"\A3\ui_f\data\sound\RscButton\soundEscape",0.09,1};
- action = "";
- class Attributes
- {
- font = "PuristaMedium";
- color = "#E5E5E5";
- align = "left";
- shadow = "true";
- };
- class AttributesImage
- {
- font = "PuristaMedium";
- color = "#E5E5E5";
- align = "left";
- };
- };
- class TAWVD_RscText {
- x = 0;
- y = 0;
- h = 0.037;
- w = 0.3;
- type = 0;
- style = 0;
- shadow = 1;
- colorShadow[] = {0, 0, 0, 0.5};
- font = "PuristaMedium";
- SizeEx = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
- text = "";
- colorText[] = {1, 1, 1, 1.0};
- colorBackground[] = {0, 0, 0, 0};
- linespacing = 1;
- };
- class TAWVD_RscTitle : TAWVD_RscText {
- style = 0;
- shadow = 0;
- sizeEx = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
- colorText[] = {0.95, 0.95, 0.95, 1};
- };
- class TAWVD_RscButtonMenu : TAWVD_RscShortcutButton {
- idc = -1;
- type = 16;
- style = "0x02 + 0xC0";
- default = 0;
- shadow = 0;
- x = 0;
- y = 0;
- w = 0.095589;
- h = 0.039216;
- animTextureNormal = "#(argb,8,8,3)color(1,1,1,1)";
- animTextureDisabled = "#(argb,8,8,3)color(1,1,1,1)";
- animTextureOver = "#(argb,8,8,3)color(1,1,1,1)";
- animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
- animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)";
- animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
- colorBackground[] = {0,0,0,0.8};
- colorBackgroundFocused[] = {1,1,1,1};
- colorBackground2[] = {0.75,0.75,0.75,1};
- color[] = {1,1,1,1};
- colorFocused[] = {0,0,0,1};
- color2[] = {0,0,0,1};
- colorText[] = {1,1,1,1};
- colorDisabled[] = {1,1,1,0.25};
- period = 1.2;
- periodFocus = 1.2;
- periodOver = 1.2;
- size = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
- sizeEx = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
- tooltipColorText[] = {1,1,1,1};
- tooltipColorBox[] = {1,1,1,1};
- tooltipColorShade[] = {0,0,0,0.65};
- class TextPos
- {
- left = "0.25 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
- top = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) - ( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2";
- right = 0.005;
- bottom = 0.0;
- };
- class Attributes
- {
- font = "PuristaLight";
- color = "#E5E5E5";
- align = "left";
- shadow = "false";
- };
- class ShortcutPos
- {
- left = "(6.25 * ( ((safezoneW / safezoneH) min 1.2) / 40)) - 0.0225 - 0.005";
- top = 0.005;
- w = 0.0225;
- h = 0.03;
- };
- soundEnter[] = {"\A3\ui_f\data\sound\RscButtonMenu\soundEnter",0.09,1};
- soundPush[] = {"\A3\ui_f\data\sound\RscButtonMenu\soundPush",0.09,1};
- soundClick[] = {"\A3\ui_f\data\sound\RscButtonMenu\soundClick",0.09,1};
- soundEscape[] = {"\A3\ui_f\data\sound\RscButtonMenu\soundEscape",0.09,1};
- textureNoShortcut = "";
- };
- class TAWVD_RscXSliderH
- {
- style = 1024;
- type = 43;
- shadow = 2;
- x = 0;
- y = 0;
- h = 0.029412;
- w = 0.400000;
- color[] = {
- 1, 1, 1, 0.7
- };
- colorActive[] = {
- 1, 1, 1, 1
- };
- colorDisabled[] = {
- 1, 1, 1, 0.500000
- };
- arrowEmpty = "\A3\ui_f\data\gui\cfg\slider\arrowEmpty_ca.paa";
- arrowFull = "\A3\ui_f\data\gui\cfg\slider\arrowFull_ca.paa";
- border = "\A3\ui_f\data\gui\cfg\slider\border_ca.paa";
- thumb = "\A3\ui_f\data\gui\cfg\slider\thumb_ca.paa";
- };
- class TAWVD_activeText
- {
- idc = -1;
- type = 11;
- style = 0;
- x = 0;
- y = 0;
- h = 0.037;
- w = 0.3;
- sizeEx = 0.040;
- font = "PuristaLight";
- color[] = {1, 1, 1, 1};
- colorActive[] = {1, 0.2, 0.2, 1};
- soundEnter[] = {"\A3\ui_f\data\sound\onover", 0.09, 1};
- soundPush[] = {"\A3\ui_f\data\sound\new1", 0.0, 0};
- soundClick[] = {"\A3\ui_f\data\sound\onclick", 0.07, 1};
- soundEscape[] = {"\A3\ui_f\data\sound\onescape", 0.09, 1};
- action = "";
- text = "";
- };
- class TAW_VD
- {
- idd = 2900;
- name= "taw_vd";
- movingEnable = false;
- enableSimulation = true;
- //onLoad = "['guns'] execVM 'gear\switch.sqf'";
- class controlsBackground {
- class TAWVD_RscTitleBackground:TAWVD_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.3;
- y = 0.2;
- w = 0.5;
- h = (1 / 25);
- };
- class MainBackground : TAWVD_RscText {
- colorBackground[] = {0, 0, 0, 0.7};
- idc = -1;
- x = 0.3;
- y = 0.2 + (11 / 250);
- w = 0.5;
- h = 0.4 - (22 / 250);
- };
- class VDonFoot : TAWVD_RscText
- {
- idc = -1;
- text = "On Foot:";
- x = 0.32; y = 0.258;
- w = 0.275; h = 0.04;
- };
- class VDinCar : TAWVD_RscText
- {
- idc = -1;
- text = "In Car:";
- x = 0.32; y = 0.305;
- w = 0.275; h = 0.04;
- };
- class VDinAir : TAWVD_RscText
- {
- idc = -1;
- text = "In Air:";
- x = 0.32; y = 0.355;
- w = 0.275; h = 0.04;
- };
- class VDTerrSet : TAWVD_RscText
- {
- idc = -1;
- text = "Grass Settings";
- shadow = 0;
- 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])"};
- x = 0.30;
- y = 0.45;
- w = 0.5;
- h = (1 / 25);
- };
- };
- class controls
- {
- class Title : TAWVD_RscTitle {
- colorBackground[] = {0, 0, 0, 0};
- idc = -1;
- text = "TAW View Distance Script";
- x = 0.3;
- y = 0.2;
- w = 0.8;
- h = (1 / 25);
- };
- class VD_onfoot_slider : TAWVD_RscXSliderH
- {
- idc = 2901;
- text = "";
- onSliderPosChanged = "[0,_this select 1] call TAWVD_fnc_onSliderChange;";
- tooltip = "View distance while on foot";
- x = 0.42;
- y = 0.30 - (1 / 25);
- w = "9 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
- h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
- };
- class VD_onfoot_value : TAWVD_RscText
- {
- idc = 2902;
- text = "";
- x = 0.70; y = 0.258;
- w = 0.275; h = 0.04;
- };
- class VD_car_slider : TAWVD_RscXSliderH
- {
- idc = 2911;
- text = "";
- onSliderPosChanged = "[1,_this select 1] call TAWVD_fnc_onSliderChange;";
- tooltip = "View distance while in a land vehicle";
- x = 0.42;
- y = 0.35 - (1 / 25);
- w = "9 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
- h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
- };
- class VD_car_value : TAWVD_RscText
- {
- idc = 2912;
- text = "";
- x = 0.70; y = 0.31;
- w = 0.275; h = 0.04;
- };
- class VD_air_slider : TAWVD_RscXSliderH
- {
- idc = 2921;
- text = "";
- onSliderPosChanged = "[2,_this select 1] call TAWVD_fnc_onSliderChange;";
- tooltip = "View distance while in a air vehicle";
- x = 0.42;
- y = 0.40 - (1 / 25);
- w = "9 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
- h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
- };
- class VD_air_value : TAWVD_RscText
- {
- idc = 2922;
- text = "";
- x = 0.70; y = 0.36;
- w = 0.275; h = 0.04;
- };
- class VD_terr_none : TAWVD_activeText
- {
- idc = -1;
- text = "None";
- action = "['none'] call TAWVD_fnc_onTerrainChange";
- sizeEx = 0.04;
- x = 0.38; y = 0.50;
- w = 0.275; h = 0.04;
- }
- class VD_terr_low : TAWVD_activeText
- {
- idc = -1;
- text = "Low";
- action = "['low'] call TAWVD_fnc_onTerrainChange;";
- sizeEx = 0.04;
- x = 0.47; y = 0.50;
- w = 0.275; h = 0.04;
- };
- class VD_terr_normal : TAWVD_activeText
- {
- idc = -1;
- text = "Normal";
- action = "['norm'] call TAWVD_fnc_onTerrainChange;";
- sizeEx = 0.04;
- x = 0.56; y = 0.50;
- w = 0.275; h = 0.04;
- };
- class VD_terr_high : TAWVD_activeText
- {
- idc = -1;
- text = "High";
- action = "['high'] call TAWVD_fnc_onTerrainChange;";
- sizeEx = 0.04;
- x = 0.67; y = 0.50;
- w = 0.275; h = 0.04;
- };
- class ButtonClose : TAWVD_RscButtonMenu {
- idc = -1;
- //shortcuts[] = {0x00050000 + 2};
- text = "Close";
- onButtonClick = "closeDialog 0;";
- x = 0.48;
- y = 0.6 - (1 / 25);
- w = (6.25 / 40);
- h = (1 / 25);
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement