mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fix macros in common' config
This commit is contained in:
parent
b7050a4a92
commit
e071b2f684
@ -29,7 +29,7 @@ class ACE_Tile_Base {
|
|||||||
right = 0;
|
right = 0;
|
||||||
bottom = 0;
|
bottom = 0;
|
||||||
};
|
};
|
||||||
action = "(findDisplay 49) closeDisplay 0; 0 spawn ACE_Common_openMenu;";
|
action = QUOTE((findDisplay 49) closeDisplay 0; 0 spawn GVAR(openMenu););
|
||||||
animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
|
animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
|
||||||
animTextureDisabled = "#(argb,8,8,3)color(1,1,1,1)";
|
animTextureDisabled = "#(argb,8,8,3)color(1,1,1,1)";
|
||||||
animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
|
animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#define VSPACE 0.3
|
#define VSPACE 0.3
|
||||||
#define BORDER 0.1
|
#define BORDER 0.1
|
||||||
|
|
||||||
class ACE_Common_Interactive_Button_Base {
|
class GVAR(Interactive_Button_Base) {
|
||||||
tooltip = "";
|
tooltip = "";
|
||||||
action = "";
|
action = "";
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ class ACE_Common_Interactive_Button_Base {
|
|||||||
#define VSPACE2 0.05
|
#define VSPACE2 0.05
|
||||||
#define BORDER 0.1
|
#define BORDER 0.1
|
||||||
|
|
||||||
class ACE_Common_Text_Button_Base {
|
class GVAR(Text_Button_Base) {
|
||||||
idc = 2;
|
idc = 2;
|
||||||
moving = 0;
|
moving = 0;
|
||||||
text = "";
|
text = "";
|
||||||
@ -65,10 +65,10 @@ class ACE_Common_Text_Button_Base {
|
|||||||
h = 0;
|
h = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ACE_Common_OptionsMenu_Dialog {
|
class GVAR(OptionsMenu_Dialog) {
|
||||||
idd = -1;
|
idd = -1;
|
||||||
movingEnable = true;
|
movingEnable = true;
|
||||||
onLoad = "_dlgMenuDialog = _this select 0; for '_a' from 20 to 32 do {(_dlgMenuDialog displayCtrl _a) ctrlShow false}; for '_a' from 100 to 119 do {(_dlgMenuDialog displayCtrl _a) ctrlShow false}; for '_a' from 200 to 219 do {(_dlgMenuDialog displayCtrl _a) ctrlShow false}; for '_a' from 300 to 319 do {(_dlgMenuDialog displayCtrl _a) ctrlShow false}; for '_a' from 400 to 419 do {(_dlgMenuDialog displayCtrl _a) ctrlShow false}; for '_a' from 500 to 519 do {(_dlgMenuDialog displayCtrl _a) ctrlShow false}; uiNamespace setVariable ['ACE_Common_MenuDialog', _dlgMenuDialog];";
|
onLoad = QUOTE(_dlgMenuDialog = _this select 0; for '_a' from 20 to 32 do {(_dlgMenuDialog displayCtrl _a) ctrlShow false}; for '_a' from 100 to 119 do {(_dlgMenuDialog displayCtrl _a) ctrlShow false}; for '_a' from 200 to 219 do {(_dlgMenuDialog displayCtrl _a) ctrlShow false}; for '_a' from 300 to 319 do {(_dlgMenuDialog displayCtrl _a) ctrlShow false}; for '_a' from 400 to 419 do {(_dlgMenuDialog displayCtrl _a) ctrlShow false}; for '_a' from 500 to 519 do {(_dlgMenuDialog displayCtrl _a) ctrlShow false}; uiNamespace setVariable [ARR_2(QUOTE(QGVAR(MenuDialog)),_dlgMenuDialog)];);
|
||||||
objects[] = {};
|
objects[] = {};
|
||||||
|
|
||||||
class controlsBackground {
|
class controlsBackground {
|
||||||
@ -112,7 +112,7 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
h = 0.3 / 9 * safezoneH;
|
h = 0.3 / 9 * safezoneH;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ACE_Logo : ACE_Common_Interactive_Button_Base {
|
class ACE_Logo: GVAR(Interactive_Button_Base) {
|
||||||
action = "closeDialog 0;";
|
action = "closeDialog 0;";
|
||||||
type = 0;
|
type = 0;
|
||||||
style = 48;
|
style = 48;
|
||||||
@ -128,7 +128,7 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class controls {
|
class controls {
|
||||||
class Text_Button0 : ACE_Common_Text_Button_Base {
|
class Text_Button0: GVAR(Text_Button_Base) {
|
||||||
idc = 100;
|
idc = 100;
|
||||||
style = 0 + 0x800;
|
style = 0 + 0x800;
|
||||||
x = (HSPACE2 + 0 * 0.1) * safezoneW + safezoneX;
|
x = (HSPACE2 + 0 * 0.1) * safezoneW + safezoneX;
|
||||||
@ -234,8 +234,8 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
|
|
||||||
//////////////////////////////////////////////////
|
//////////////////////////////////////////////////
|
||||||
|
|
||||||
class Interactive_Button0 : ACE_Common_Interactive_Button_Base {
|
class Interactive_Button0: GVAR(Interactive_Button_Base) {
|
||||||
action = "ACE_Common_keySet = -1; [0] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [0] spawn GVAR(editKey));
|
||||||
sizeEx = "0.8 / 40 / (getResolution select 5)";// * safezoneX / safezoneXAbs";
|
sizeEx = "0.8 / 40 / (getResolution select 5)";// * safezoneX / safezoneXAbs";
|
||||||
idc = 200;
|
idc = 200;
|
||||||
style = 2 + 0x800;
|
style = 2 + 0x800;
|
||||||
@ -246,115 +246,115 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_Button1: Interactive_Button0 {
|
class Interactive_Button1: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = -1; [1] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [1] spawn GVAR(editKey));
|
||||||
idc = 201;
|
idc = 201;
|
||||||
y = (VSPACE2 + 3 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 3 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_Button2: Interactive_Button0 {
|
class Interactive_Button2: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = -1; [2] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [2] spawn GVAR(editKey));
|
||||||
idc = 202;
|
idc = 202;
|
||||||
y = (VSPACE2 + 4 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 4 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_Button3: Interactive_Button0 {
|
class Interactive_Button3: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = -1; [3] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [3] spawn GVAR(editKey));
|
||||||
idc = 203;
|
idc = 203;
|
||||||
y = (VSPACE2 + 5 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 5 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_Button4: Interactive_Button0 {
|
class Interactive_Button4: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = -1; [4] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [4] spawn GVAR(editKey));
|
||||||
idc = 204;
|
idc = 204;
|
||||||
y = (VSPACE2 + 6 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 6 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_Button5: Interactive_Button0 {
|
class Interactive_Button5: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = -1; [5] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [5] spawn GVAR(editKey));
|
||||||
idc = 205;
|
idc = 205;
|
||||||
y = (VSPACE2 + 7 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 7 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_Button6: Interactive_Button0 {
|
class Interactive_Button6: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = -1; [6] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [6] spawn GVAR(editKey));
|
||||||
idc = 206;
|
idc = 206;
|
||||||
y = (VSPACE2 + 8 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 8 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_Button7: Interactive_Button0 {
|
class Interactive_Button7: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = -1; [7] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [7] spawn GVAR(editKey));
|
||||||
idc = 207;
|
idc = 207;
|
||||||
y = (VSPACE2 + 9 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 9 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_Button8: Interactive_Button0 {
|
class Interactive_Button8: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = -1; [8] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [8] spawn GVAR(editKey));
|
||||||
idc = 208;
|
idc = 208;
|
||||||
y = (VSPACE2 + 10 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 10 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_Button9: Interactive_Button0 {
|
class Interactive_Button9: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = -1; [9] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [9] spawn GVAR(editKey));
|
||||||
idc = 209;
|
idc = 209;
|
||||||
y = (VSPACE2 + 11 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 11 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_Button10: Interactive_Button0 {
|
class Interactive_Button10: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = -1; [10] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [10] spawn GVAR(editKey));
|
||||||
idc = 210;
|
idc = 210;
|
||||||
y = (VSPACE2 + 12 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 12 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_Button11: Interactive_Button0 {
|
class Interactive_Button11: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = -1; [11] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [11] spawn GVAR(editKey));
|
||||||
idc = 211;
|
idc = 211;
|
||||||
y = (VSPACE2 + 13 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 13 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_Button12: Interactive_Button0 {
|
class Interactive_Button12: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = -1; [12] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [12] spawn GVAR(editKey));
|
||||||
idc = 212;
|
idc = 212;
|
||||||
y = (VSPACE2 + 14 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 14 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_Button13: Interactive_Button0 {
|
class Interactive_Button13: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = -1; [13] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [13] spawn GVAR(editKey));
|
||||||
idc = 213;
|
idc = 213;
|
||||||
y = (VSPACE2 + 15 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 15 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_Button14: Interactive_Button0 {
|
class Interactive_Button14: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = -1; [14] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [14] spawn GVAR(editKey));
|
||||||
idc = 214;
|
idc = 214;
|
||||||
y = (VSPACE2 + 16 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 16 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_Button15: Interactive_Button0 {
|
class Interactive_Button15: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = -1; [15] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [15] spawn GVAR(editKey));
|
||||||
idc = 215;
|
idc = 215;
|
||||||
y = (VSPACE2 + 17 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 17 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_Button16: Interactive_Button0 {
|
class Interactive_Button16: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = -1; [16] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [16] spawn GVAR(editKey));
|
||||||
idc = 216;
|
idc = 216;
|
||||||
y = (VSPACE2 + 18 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 18 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_Button17: Interactive_Button0 {
|
class Interactive_Button17: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = -1; [17] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [17] spawn GVAR(editKey));
|
||||||
idc = 217;
|
idc = 217;
|
||||||
y = (VSPACE2 + 19 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 19 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_Button18: Interactive_Button0 {
|
class Interactive_Button18: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = -1; [18] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [18] spawn GVAR(editKey));
|
||||||
idc = 218;
|
idc = 218;
|
||||||
y = (VSPACE2 + 20 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 20 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_Button19: Interactive_Button0 {
|
class Interactive_Button19: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = -1; [19] spawn ACE_Common_editKey";
|
action = QUOTE(GVAR(keySet) = -1; [19] spawn GVAR(editKey));
|
||||||
idc = 219;
|
idc = 219;
|
||||||
y = (VSPACE2 + 21 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 21 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
@ -596,8 +596,8 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
|
|
||||||
//////////////////////////////////////////////////
|
//////////////////////////////////////////////////
|
||||||
|
|
||||||
class Interactive_CheckboxButton0 : ACE_Common_Interactive_Button_Base {
|
class Interactive_CheckboxButton0: GVAR(Interactive_Button_Base) {
|
||||||
action = "[0] call ACE_Common_toggleState";
|
action = QUOTE([0] call GVAR(toggleState));
|
||||||
idc = 500;
|
idc = 500;
|
||||||
colorBackground[] = {0, 0, 0, 0};
|
colorBackground[] = {0, 0, 0, 0};
|
||||||
colorBackgroundActive[] = {0, 0, 0, 0};
|
colorBackgroundActive[] = {0, 0, 0, 0};
|
||||||
@ -609,115 +609,115 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_CheckboxButton1: Interactive_CheckboxButton0 {
|
class Interactive_CheckboxButton1: Interactive_CheckboxButton0 {
|
||||||
action = "[1] call ACE_Common_toggleState";
|
action = QUOTE([1] call GVAR(toggleState));
|
||||||
idc = 501;
|
idc = 501;
|
||||||
y = (VSPACE2 + 3 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 3 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_CheckboxButton2: Interactive_CheckboxButton0 {
|
class Interactive_CheckboxButton2: Interactive_CheckboxButton0 {
|
||||||
action = "[2] call ACE_Common_toggleState";
|
action = QUOTE([2] call GVAR(toggleState));
|
||||||
idc = 502;
|
idc = 502;
|
||||||
y = (VSPACE2 + 4 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 4 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_CheckboxButton3: Interactive_CheckboxButton0 {
|
class Interactive_CheckboxButton3: Interactive_CheckboxButton0 {
|
||||||
action = "[3] call ACE_Common_toggleState";
|
action = QUOTE([3] call GVAR(toggleState));
|
||||||
idc = 503;
|
idc = 503;
|
||||||
y = (VSPACE2 + 5 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 5 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_CheckboxButton4: Interactive_CheckboxButton0 {
|
class Interactive_CheckboxButton4: Interactive_CheckboxButton0 {
|
||||||
action = "[4] call ACE_Common_toggleState";
|
action = QUOTE([4] call GVAR(toggleState));
|
||||||
idc = 504;
|
idc = 504;
|
||||||
y = (VSPACE2 + 6 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 6 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_CheckboxButton5: Interactive_CheckboxButton0 {
|
class Interactive_CheckboxButton5: Interactive_CheckboxButton0 {
|
||||||
action = "[5] call ACE_Common_toggleState";
|
action = QUOTE([5] call GVAR(toggleState));
|
||||||
idc = 505;
|
idc = 505;
|
||||||
y = (VSPACE2 + 7 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 7 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_CheckboxButton6: Interactive_CheckboxButton0 {
|
class Interactive_CheckboxButton6: Interactive_CheckboxButton0 {
|
||||||
action = "[6] call ACE_Common_toggleState";
|
action = QUOTE([6] call GVAR(toggleState));
|
||||||
idc = 506;
|
idc = 506;
|
||||||
y = (VSPACE2 + 8 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 8 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_CheckboxButton7: Interactive_CheckboxButton0 {
|
class Interactive_CheckboxButton7: Interactive_CheckboxButton0 {
|
||||||
action = "[7] call ACE_Common_toggleState";
|
action = QUOTE([7] call GVAR(toggleState));
|
||||||
idc = 507;
|
idc = 507;
|
||||||
y = (VSPACE2 + 9 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 9 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_CheckboxButton8: Interactive_CheckboxButton0 {
|
class Interactive_CheckboxButton8: Interactive_CheckboxButton0 {
|
||||||
action = "[8] call ACE_Common_toggleState";
|
action = QUOTE([8] call GVAR(toggleState));
|
||||||
idc = 508;
|
idc = 508;
|
||||||
y = (VSPACE2 + 10 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 10 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_CheckboxButton9: Interactive_CheckboxButton0 {
|
class Interactive_CheckboxButton9: Interactive_CheckboxButton0 {
|
||||||
action = "[9] call ACE_Common_toggleState";
|
action = QUOTE([9] call GVAR(toggleState));
|
||||||
idc = 509;
|
idc = 509;
|
||||||
y = (VSPACE2 + 11 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 11 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_CheckboxButton10: Interactive_CheckboxButton0 {
|
class Interactive_CheckboxButton10: Interactive_CheckboxButton0 {
|
||||||
action = "[10] call ACE_Common_toggleState";
|
action = QUOTE([10] call GVAR(toggleState));
|
||||||
idc = 510;
|
idc = 510;
|
||||||
y = (VSPACE2 + 12 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 12 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_CheckboxButton11: Interactive_CheckboxButton0 {
|
class Interactive_CheckboxButton11: Interactive_CheckboxButton0 {
|
||||||
action = "[11] call ACE_Common_toggleState";
|
action = QUOTE([11] call GVAR(toggleState));
|
||||||
idc = 511;
|
idc = 511;
|
||||||
y = (VSPACE2 + 13 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 13 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_CheckboxButton12: Interactive_CheckboxButton0 {
|
class Interactive_CheckboxButton12: Interactive_CheckboxButton0 {
|
||||||
action = "[12] call ACE_Common_toggleState";
|
action = QUOTE([12] call GVAR(toggleState));
|
||||||
idc = 512;
|
idc = 512;
|
||||||
y = (VSPACE2 + 14 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 14 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_CheckboxButton13: Interactive_CheckboxButton0 {
|
class Interactive_CheckboxButton13: Interactive_CheckboxButton0 {
|
||||||
action = "[13] call ACE_Common_toggleState";
|
action = QUOTE([13] call GVAR(toggleState));
|
||||||
idc = 513;
|
idc = 513;
|
||||||
y = (VSPACE2 + 15 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 15 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_CheckboxButton14: Interactive_CheckboxButton0 {
|
class Interactive_CheckboxButton14: Interactive_CheckboxButton0 {
|
||||||
action = "[14] call ACE_Common_toggleState";
|
action = QUOTE([14] call GVAR(toggleState));
|
||||||
idc = 514;
|
idc = 514;
|
||||||
y = (VSPACE2 + 16 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 16 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_CheckboxButton15: Interactive_CheckboxButton0 {
|
class Interactive_CheckboxButton15: Interactive_CheckboxButton0 {
|
||||||
action = "[15] call ACE_Common_toggleState";
|
action = QUOTE([15] call GVAR(toggleState));
|
||||||
idc = 515;
|
idc = 515;
|
||||||
y = (VSPACE2 + 17 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 17 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_CheckboxButton16: Interactive_CheckboxButton0 {
|
class Interactive_CheckboxButton16: Interactive_CheckboxButton0 {
|
||||||
action = "[16] call ACE_Common_toggleState";
|
action = QUOTE([16] call GVAR(toggleState));
|
||||||
idc = 516;
|
idc = 516;
|
||||||
y = (VSPACE2 + 18 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 18 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_CheckboxButton17: Interactive_CheckboxButton0 {
|
class Interactive_CheckboxButton17: Interactive_CheckboxButton0 {
|
||||||
action = "[17] call ACE_Common_toggleState";
|
action = QUOTE([17] call GVAR(toggleState));
|
||||||
idc = 517;
|
idc = 517;
|
||||||
y = (VSPACE2 + 19 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 19 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_CheckboxButton18: Interactive_CheckboxButton0 {
|
class Interactive_CheckboxButton18: Interactive_CheckboxButton0 {
|
||||||
action = "[18] call ACE_Common_toggleState";
|
action = QUOTE([18] call GVAR(toggleState));
|
||||||
idc = 518;
|
idc = 518;
|
||||||
y = (VSPACE2 + 20 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 20 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_CheckboxButton19: Interactive_CheckboxButton0 {
|
class Interactive_CheckboxButton19: Interactive_CheckboxButton0 {
|
||||||
action = "[19] call ACE_Common_toggleState";
|
action = QUOTE([19] call GVAR(toggleState));
|
||||||
idc = 519;
|
idc = 519;
|
||||||
y = (VSPACE2 + 21 * 0.04) * safezoneH + safezoneY;
|
y = (VSPACE2 + 21 * 0.04) * safezoneH + safezoneY;
|
||||||
};
|
};
|
||||||
@ -760,7 +760,7 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
};*/
|
};*/
|
||||||
|
|
||||||
class TextBox_Key_Shift: Interactive_Button0 {
|
class TextBox_Key_Shift: Interactive_Button0 {
|
||||||
action = "ACE_Common_keyNewTemp = [42, [false, false, false], 42];";
|
action = QUOTE(GVAR(keyNewTemp) = [ARR_3(42,[ARR_3(false,false,false)],42)];);
|
||||||
text = "$STR_ACE_Common_Shift";
|
text = "$STR_ACE_Common_Shift";
|
||||||
sizeEx = "0.7 / 40 / (getResolution select 5)";// * safezoneX / safezoneXAbs";
|
sizeEx = "0.7 / 40 / (getResolution select 5)";// * safezoneX / safezoneXAbs";
|
||||||
idc = 21;
|
idc = 21;
|
||||||
@ -773,7 +773,7 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class TextBox_Key_Control: TextBox_Key_Shift {
|
class TextBox_Key_Control: TextBox_Key_Shift {
|
||||||
action = "ACE_Common_keyNewTemp = [29, [false, false, false], 29];";
|
action = QUOTE(GVAR(keyNewTemp) = [ARR_3(29,[ARR_3(false,false,false)],29)];);
|
||||||
text = "$STR_ACE_Common_Ctrl";
|
text = "$STR_ACE_Common_Ctrl";
|
||||||
idc = 22;
|
idc = 22;
|
||||||
x = (3 / 4 * HSPACE2 + 6.75 * 0.1) * safezoneW + safezoneX;
|
x = (3 / 4 * HSPACE2 + 6.75 * 0.1) * safezoneW + safezoneX;
|
||||||
@ -781,7 +781,7 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class TextBox_Key_Alt: TextBox_Key_Shift {
|
class TextBox_Key_Alt: TextBox_Key_Shift {
|
||||||
action = "ACE_Common_keyNewTemp = [56, [false, false, false], 56];";
|
action = QUOTE(GVAR(keyNewTemp) = [ARR_3(56,[ARR_3(false,false,false)],56)];);
|
||||||
text = "$STR_ACE_Common_Alt";
|
text = "$STR_ACE_Common_Alt";
|
||||||
idc = 23;
|
idc = 23;
|
||||||
x = (3 / 4 * HSPACE2 + 7.5 * 0.1) * safezoneW + safezoneX;
|
x = (3 / 4 * HSPACE2 + 7.5 * 0.1) * safezoneW + safezoneX;
|
||||||
@ -789,7 +789,7 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class TextBox_Key_Shift_Right: TextBox_Key_Shift {
|
class TextBox_Key_Shift_Right: TextBox_Key_Shift {
|
||||||
action = "ACE_Common_keyNewTemp = [54, [false, false, false], 54];";
|
action = QUOTE(GVAR(keyNewTemp) = [ARR_3(54,[ARR_3(false,false,false)],54)];);
|
||||||
text = "$STR_ACE_Common_Shift_Right";
|
text = "$STR_ACE_Common_Shift_Right";
|
||||||
idc = 27;
|
idc = 27;
|
||||||
x = (3 / 4 * HSPACE2 + 6 * 0.1) * safezoneW + safezoneX;
|
x = (3 / 4 * HSPACE2 + 6 * 0.1) * safezoneW + safezoneX;
|
||||||
@ -797,7 +797,7 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class TextBox_Key_Control_Right: TextBox_Key_Shift {
|
class TextBox_Key_Control_Right: TextBox_Key_Shift {
|
||||||
action = "ACE_Common_keyNewTemp = [157, [false, false, false], 157];";
|
action = QUOTE(GVAR(keyNewTemp) = [ARR_3(157,[ARR_3(false,false,false)],157)];);
|
||||||
text = "$STR_ACE_Common_Ctrl_Right";
|
text = "$STR_ACE_Common_Ctrl_Right";
|
||||||
idc = 28;
|
idc = 28;
|
||||||
x = (3 / 4 * HSPACE2 + 6.75 * 0.1) * safezoneW + safezoneX;
|
x = (3 / 4 * HSPACE2 + 6.75 * 0.1) * safezoneW + safezoneX;
|
||||||
@ -805,7 +805,7 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class TextBox_Key_Alt_Right: TextBox_Key_Shift {
|
class TextBox_Key_Alt_Right: TextBox_Key_Shift {
|
||||||
action = "ACE_Common_keyNewTemp = [184, [false, false, false], 184];";
|
action = QUOTE(GVAR(keyNewTemp) = [ARR_3(184,[ARR_3(false,false,false)],184)];);
|
||||||
text = "$STR_ACE_Common_Alt_Right";
|
text = "$STR_ACE_Common_Alt_Right";
|
||||||
idc = 29;
|
idc = 29;
|
||||||
x = (3 / 4 * HSPACE2 + 7.5 * 0.1) * safezoneW + safezoneX;
|
x = (3 / 4 * HSPACE2 + 7.5 * 0.1) * safezoneW + safezoneX;
|
||||||
@ -825,7 +825,7 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class TextBox_Key_Default: TextBox_Key_Shift {
|
class TextBox_Key_Default: TextBox_Key_Shift {
|
||||||
action = "call ACE_Common_keysetDefault";
|
action = QUOTE(call GVAR(keysetDefault));
|
||||||
text = "$STR_ACE_Common_KeyDefault";
|
text = "$STR_ACE_Common_KeyDefault";
|
||||||
idc = 31;
|
idc = 31;
|
||||||
x = (3 / 4 * HSPACE2 + 8.25 * 0.1) * safezoneW + safezoneX;
|
x = (3 / 4 * HSPACE2 + 8.25 * 0.1) * safezoneW + safezoneX;
|
||||||
@ -833,7 +833,7 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class TextBox_Key_None: TextBox_Key_Shift {
|
class TextBox_Key_None: TextBox_Key_Shift {
|
||||||
action = "ACE_Common_keyNewTemp = [0, [false, false, false], 0];";
|
action = QUOTE(GVAR(keyNewTemp) = [ARR_3(0,[ARR_3(false,false,false)],0)];);
|
||||||
text = "$STR_ACE_Common_KeyNone";
|
text = "$STR_ACE_Common_KeyNone";
|
||||||
idc = 32;
|
idc = 32;
|
||||||
x = (3 / 4 * HSPACE2 + 8.25 * 0.1) * safezoneW + safezoneX;
|
x = (3 / 4 * HSPACE2 + 8.25 * 0.1) * safezoneW + safezoneX;
|
||||||
@ -853,7 +853,7 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_ButtonV: Interactive_Button0 {
|
class Interactive_ButtonV: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySet = 1";
|
action = QUOTE(ACE_Common_keySet = 1);
|
||||||
text = "$STR_ACE_Common_Save";
|
text = "$STR_ACE_Common_Save";
|
||||||
sizeEx = "1 / 40 / (getResolution select 5)";// * safezoneX / safezoneXAbs";
|
sizeEx = "1 / 40 / (getResolution select 5)";// * safezoneX / safezoneXAbs";
|
||||||
idc = 25;
|
idc = 25;
|
||||||
@ -865,7 +865,7 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_ButtonW: Interactive_ButtonV {
|
class Interactive_ButtonW: Interactive_ButtonV {
|
||||||
action = "ACE_Common_keySet = -1";
|
action = QUOTE(GVAR(keySet) = -1);
|
||||||
text = "$STR_ACE_Common_Cancel";
|
text = "$STR_ACE_Common_Cancel";
|
||||||
idc = 26;
|
idc = 26;
|
||||||
x = (HSPACE2 + 7.5 * 0.1) * safezoneW + safezoneX;
|
x = (HSPACE2 + 7.5 * 0.1) * safezoneW + safezoneX;
|
||||||
@ -875,7 +875,7 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_ButtonX: Interactive_Button0 {
|
class Interactive_ButtonX: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySave = 1; closeDialog 0";
|
action = QUOTE(GVAR(keySave) = 1; closeDialog 0);
|
||||||
text = "$STR_ACE_Common_Save";
|
text = "$STR_ACE_Common_Save";
|
||||||
sizeEx = "1 / 40 / (getResolution select 5)";// * safezoneX / safezoneXAbs";
|
sizeEx = "1 / 40 / (getResolution select 5)";// * safezoneX / safezoneXAbs";
|
||||||
idc = 10;
|
idc = 10;
|
||||||
@ -886,7 +886,7 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_ButtonY: Interactive_Button0 {
|
class Interactive_ButtonY: Interactive_Button0 {
|
||||||
action = "ACE_Common_keySave = -1; closeDialog 0";
|
action = QUOTE(GVAR(keySave) = -1; closeDialog 0);
|
||||||
text = "$STR_ACE_Common_Cancel";
|
text = "$STR_ACE_Common_Cancel";
|
||||||
sizeEx = "1 / 40 / (getResolution select 5)";// * safezoneX / safezoneXAbs";
|
sizeEx = "1 / 40 / (getResolution select 5)";// * safezoneX / safezoneXAbs";
|
||||||
idc = 11;
|
idc = 11;
|
||||||
@ -896,8 +896,8 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
h = 0.3 / 9 * safezoneH;
|
h = 0.3 / 9 * safezoneH;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_ButtonA : ACE_Common_Interactive_Button_Base {
|
class Interactive_ButtonA: GVAR(Interactive_Button_Base) {
|
||||||
action = "false call ACE_Common_nextKeys";
|
action = QUOTE(false call GVAR(nextKeys));
|
||||||
text = "$STR_ACE_Common_Prev";
|
text = "$STR_ACE_Common_Prev";
|
||||||
idc = 12;
|
idc = 12;
|
||||||
style = 2 + 0x800;
|
style = 2 + 0x800;
|
||||||
@ -908,13 +908,13 @@ class ACE_Common_OptionsMenu_Dialog {
|
|||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_ButtonB: Interactive_ButtonA {
|
class Interactive_ButtonB: Interactive_ButtonA {
|
||||||
action = "true call ACE_Common_nextKeys";
|
action = QUOTE(true call GVAR(nextKeys));
|
||||||
text = "$STR_ACE_Common_Next";
|
text = "$STR_ACE_Common_Next";
|
||||||
idc = 13;
|
idc = 13;
|
||||||
x = (HSPACE2 + 3 * 0.1 + 2.0 / 16) * safezoneW + safezoneX;
|
x = (HSPACE2 + 3 * 0.1 + 2.0 / 16) * safezoneW + safezoneX;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Interactive_ButtonC : ACE_Common_Text_Button_Base {
|
class Interactive_ButtonC: GVAR(Text_Button_Base) {
|
||||||
text = "";
|
text = "";
|
||||||
idc = 14;
|
idc = 14;
|
||||||
style = 2 + 0x800;
|
style = 2 + 0x800;
|
||||||
|
@ -8,7 +8,7 @@ QGVAR(remoteFnc) addPublicVariableEventHandler {
|
|||||||
[missionNamespace] call FUNC(executePersistent);
|
[missionNamespace] call FUNC(executePersistent);
|
||||||
|
|
||||||
// check previous version number from profile
|
// check previous version number from profile
|
||||||
_currentVersion = getText (configFile >> "CfgPatches" >> "ACE_Common" >> "version");
|
_currentVersion = getText (configFile >> "CfgPatches" >> ADDON >> "version");
|
||||||
_previousVersion = profileNamespace getVariable ["ACE_VersionNumberString", ""];
|
_previousVersion = profileNamespace getVariable ["ACE_VersionNumberString", ""];
|
||||||
|
|
||||||
if (_currentVersion != _previousVersion) then {
|
if (_currentVersion != _previousVersion) then {
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* ID of the action (used to remove it later).
|
* ID of the action (used to remove it later).
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_unit", "_action", "_condition", "_statement", "_name", "_actionsVar", "_actionID", "_actions", "_id", "_actionIDs"];
|
private ["_unit", "_action", "_condition", "_statement", "_name", "_actionsVar", "_actionID", "_actions", "_id", "_actionIDs"];
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* ID of the action (used to remove it later).
|
* ID of the action (used to remove it later).
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_unit", "_displayName", "_action", "_condition", "_statement", "_condition2", "_statement2", "_priority", "_name", "_actionsVar", "_id", "_actionIDs", "_actions", "_nameVar", "_addAction", "_actionID"];
|
private ["_unit", "_displayName", "_action", "_condition", "_statement", "_condition2", "_statement2", "_priority", "_name", "_actionsVar", "_id", "_actionIDs", "_actions", "_nameVar", "_addAction", "_actionID"];
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* ID of the event script (used to remove it later).
|
* ID of the event script (used to remove it later).
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_statement", "_actionsVar", "_id", "_actionIDs", "_actions"];
|
private ["_statement", "_actionsVar", "_id", "_actionIDs", "_actions"];
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private "_dlg";
|
private "_dlg";
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* ID of the event script (used to remove it later).
|
* ID of the event script (used to remove it later).
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_object", "_type", "_statement", "_name", "_actionsVar", "_id", "_actionIDs", "_actions"];
|
private ["_object", "_type", "_statement", "_name", "_actionsVar", "_id", "_actionIDs", "_actions"];
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* ID of the event script (used to remove it later).
|
* ID of the event script (used to remove it later).
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_type", "_statement", "_actionsVar", "_id", "_actionIDs", "_actions"];
|
private ["_type", "_statement", "_actionsVar", "_id", "_actionIDs", "_actions"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* ID of the event script (used to remove it later).
|
* ID of the event script (used to remove it later).
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_statement", "_actionsVar", "_id", "_actionIDs", "_actions"];
|
private ["_statement", "_actionsVar", "_id", "_actionIDs", "_actions"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* ID of the event script (used to remove it later).
|
* ID of the event script (used to remove it later).
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_statement", "_actionsVar", "_id", "_actionIDs", "_actions"];
|
private ["_statement", "_actionsVar", "_id", "_actionIDs", "_actions"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* ID of the event script (used to remove it later).
|
* ID of the event script (used to remove it later).
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_statement", "_actionsVar", "_id", "_actionIDs", "_actions"];
|
private ["_statement", "_actionsVar", "_id", "_actionIDs", "_actions"];
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private "_name";
|
private "_name";
|
||||||
|
|
||||||
|
@ -9,6 +9,6 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Ambient brightness (Number)
|
* Ambient brightness (Number)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
sunOrMoon * sunOrMoon + moonIntensity/5 min 1
|
sunOrMoon * sunOrMoon + moonIntensity/5 min 1
|
||||||
|
@ -15,7 +15,7 @@ Returns:
|
|||||||
Example:
|
Example:
|
||||||
[ACE_Player] call FUNC(applyForceWalkStatus)
|
[ACE_Player] call FUNC(applyForceWalkStatus)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_unit", "_forceWalkNumber"];
|
private ["_unit", "_forceWalkNumber"];
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Booleans (Array)
|
* Booleans (Array)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_number", "_minLength", "_array", "_index", "_rest"];
|
private ["_number", "_minLength", "_array", "_index", "_rest"];
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* None.
|
* None.
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_object", "_type", "_argument", "_name", "_actions"];
|
private ["_object", "_type", "_argument", "_name", "_actions"];
|
||||||
|
|
||||||
|
@ -11,6 +11,6 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* None.
|
* None.
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
[_this, QUOTE(FUNC(callCustomEventHandlers)), 2] call FUNC(execRemoteFnc);
|
[_this, QUOTE(FUNC(callCustomEventHandlers)), 2] call FUNC(execRemoteFnc);
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* Return Value:
|
* Return Value:
|
||||||
* Nothing
|
* Nothing
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
#define CANGETINDRIVER (isNull (driver _vehicle) || {!alive driver _vehicle}) && {!lockedDriver _vehicle} && {getNumber (_config >> "isUav") != 1}
|
#define CANGETINDRIVER (isNull (driver _vehicle) || {!alive driver _vehicle}) && {!lockedDriver _vehicle} && {getNumber (_config >> "isUav") != 1}
|
||||||
#define CANGETINTURRETINDEX (isNull (_vehicle turretUnit _turret) || {!alive (_vehicle turretUnit _turret)}) && {!(_vehicle lockedTurret _turret)} && {getNumber (_config >> "isUav") != 1}
|
#define CANGETINTURRETINDEX (isNull (_vehicle turretUnit _turret) || {!alive (_vehicle turretUnit _turret)}) && {!(_vehicle lockedTurret _turret)} && {getNumber (_config >> "isUav") != 1}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_unit", "_target", "_owner"];
|
private ["_unit", "_target", "_owner"];
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
// returns true if the unit is on foot or in a ffv position
|
// returns true if the unit is on foot or in a ffv position
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* None.
|
* None.
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_projectile", "_adjustDir", "_adjustUp", "_adjustSpeed", "_vdir", "_dir", "_up", "_l", "_r", "_vup", "_vel"];
|
private ["_projectile", "_adjustDir", "_adjustUp", "_adjustSpeed", "_vdir", "_dir", "_up", "_l", "_r", "_vup", "_vel"];
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* None.
|
* None.
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_mode", "_checkAll", "_whitelist", "_logic"];
|
private ["_mode", "_checkAll", "_whitelist", "_logic"];
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_unit", "_target", "_lockTarget", "_owner"];
|
private ["_unit", "_target", "_lockTarget", "_owner"];
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* Return Value:
|
* Return Value:
|
||||||
* None
|
* None
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
_this spawn {
|
_this spawn {
|
||||||
_target = _this select 0;
|
_target = _this select 0;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
["", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] select ([2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 30, 48, 46, 32, 18, 33, 34, 35, 23, 36, 37, 38, 50, 49, 24, 25, 16, 19, 31, 20, 22, 47, 17, 45, 44, 21] find (_this select 0)) + 1
|
["", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] select ([2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 30, 48, 46, 32, 18, 33, 34, 35, 23, 36, 37, 38, 50, 49, 24, 25, 16, 19, 31, 20, 22, 47, 17, 45, 44, 21] find (_this select 0)) + 1
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Code (String)
|
* Code (String)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private "_function";
|
private "_function";
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Key code (Number)
|
* Key code (Number)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
#define KEY_MODIFIERS [42, 54, 29, 157, 56, 184]
|
#define KEY_MODIFIERS [42, 54, 29, 157, 56, 184]
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* The current channel. Can be "group", "side", "global", "command", "vehicle" or "direct" (String)
|
* The current channel. Can be "group", "side", "global", "command", "vehicle" or "direct" (String)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
#define CHANNELS ["group", "side", "global", "command", "vehicle", "direct"]
|
#define CHANNELS ["group", "side", "global", "command", "vehicle", "direct"]
|
||||||
#define CHANNELS_LOCALIZED [localize "str_channel_group", localize "str_channel_side", localize "str_channel_global", localize "str_channel_command", localize "str_channel_vehicle", localize "str_channel_direct"]
|
#define CHANNELS_LOCALIZED [localize "str_channel_group", localize "str_channel_side", localize "str_channel_global", localize "str_channel_command", localize "str_channel_vehicle", localize "str_channel_direct"]
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Nothing
|
* Nothing
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_state", "_dlg"];
|
private ["_state", "_dlg"];
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Nothing
|
* Nothing
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
#define DEFAULT_PLAY_SOUND false
|
#define DEFAULT_PLAY_SOUND false
|
||||||
#define DEFAULT_DELAY 2
|
#define DEFAULT_DELAY 2
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Nothing
|
* Nothing
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_text", "_image"];
|
private ["_text", "_image"];
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Nothing
|
* Nothing
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_text", "_size", "_isShown", "_ctrlHint"];
|
private ["_text", "_size", "_isShown", "_ctrlHint"];
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Nothing
|
* Nothing
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_unit", "_animation", "_priority", "_force"];
|
private ["_unit", "_animation", "_priority", "_force"];
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* None.
|
* None.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
// ACRE
|
// ACRE
|
||||||
if (isClass (configFile >> "CfgPatches" >> "acre_main")) then {
|
if (isClass (configFile >> "CfgPatches" >> "acre_main")) then {
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Nothing.
|
* Nothing.
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_arguments", "_function", "_unit", "_name"];
|
private ["_arguments", "_function", "_unit", "_name"];
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Nothing
|
* Nothing
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_arguments", "_function", "_unit", "_id"];
|
private ["_arguments", "_function", "_unit", "_id"];
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private "_target";
|
private "_target";
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
(configFile >> "CfgAmmo") call FUNC(exportConfig);
|
(configFile >> "CfgAmmo") call FUNC(exportConfig);
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private "_fnc_logEntries";
|
private "_fnc_logEntries";
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
* Usage:
|
* Usage:
|
||||||
* [[0,1,2,3,4], {_this > 2}] call FUNC(filter) ==> [3,4]
|
* [[0,1,2,3,4], {_this > 2}] call FUNC(filter) ==> [3,4]
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_array", "_code", "_newArray", "_index"];
|
private ["_array", "_code", "_newArray", "_index"];
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_crate", "_weapons", "_items"];
|
private ["_crate", "_weapons", "_items"];
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private "_unit";
|
private "_unit";
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Reasons, why the unit is a captive. An empty array is returned if the unit is not a captive (Array of Strings)
|
* Reasons, why the unit is a captive. An empty array is returned if the unit is not a captive (Array of Strings)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_unit", "_captivityReasons", "_unitCaptivityStatus", "_unitCaptivityReasons"];
|
private ["_unit", "_captivityReasons", "_unitCaptivityStatus", "_unitCaptivityReasons"];
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_name", "_cfgClass", "_classes"];
|
private ["_name", "_cfgClass", "_classes"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Commander config (Config)
|
* Commander config (Config)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_vehicle", "_config", "_turret"];
|
private ["_vehicle", "_config", "_turret"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Gunner config (Config)
|
* Gunner config (Config)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_vehicle", "_config", "_turret"];
|
private ["_vehicle", "_config", "_turret"];
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_unit", "_anim", "_stance"];
|
private ["_unit", "_anim", "_stance"];
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_configName", "_index"];
|
private ["_configName", "_index"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Turret indexes of the door gunner. Empty array means no gunner position. (Array)
|
* Turret indexes of the door gunner. Empty array means no gunner position. (Array)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_vehicleType", "_turrets", "_doorTurrets", "_config"];
|
private ["_vehicleType", "_turrets", "_doorTurrets", "_config"];
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ Returns:
|
|||||||
Example:
|
Example:
|
||||||
[ACE_Player] call FUNC(getForceWalkStatus)
|
[ACE_Player] call FUNC(getForceWalkStatus)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_unit", "_forceWalkReasons", "_unitForceWalkNumber", "_unitForceWalkStatus", "_unitForceWalkReasons"];
|
private ["_unit", "_forceWalkReasons", "_unitForceWalkNumber", "_unitForceWalkStatus", "_unitForceWalkReasons"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return Value:
|
* Return Value:
|
||||||
* The hitpoints (Array)
|
* The hitpoints (Array)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_vehicle", "_config", "_hitpoints"];
|
private ["_vehicle", "_config", "_hitpoints"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return Value:
|
* Return Value:
|
||||||
* The hitpoints with selections. Format: [hitpoints, selections]. They correspond by index. (Array)
|
* The hitpoints with selections. Format: [hitpoints, selections]. They correspond by index. (Array)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_vehicle", "_config", "_hitpoints", "_selections"];
|
private ["_vehicle", "_config", "_hitpoints", "_selections"];
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
* Return Value:
|
* Return Value:
|
||||||
* Nothing
|
* Nothing
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
#define CANGETINDRIVER (isNull (driver _vehicle) || {!alive driver _vehicle}) && {!lockedDriver _vehicle} && {getNumber (_config >> "isUav") != 1}
|
#define CANGETINDRIVER (isNull (driver _vehicle) || {!alive driver _vehicle}) && {!lockedDriver _vehicle} && {getNumber (_config >> "isUav") != 1}
|
||||||
#define CANGETINTURRETINDEX (isNull (_vehicle turretUnit _turret) || {!alive (_vehicle turretUnit _turret)}) && {!(_vehicle lockedTurret _turret)} && {getNumber (_config >> "isUav") != 1}
|
#define CANGETINTURRETINDEX (isNull (_vehicle turretUnit _turret) || {!alive (_vehicle turretUnit _turret)}) && {!(_vehicle lockedTurret _turret)} && {getNumber (_config >> "isUav") != 1}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return Value:
|
* Return Value:
|
||||||
* Marker Type (string)
|
* Marker Type (string)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
_group = _this select 0;
|
_group = _this select 0;
|
||||||
_leader = leader _group;
|
_leader = leader _group;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* The name.
|
* The name.
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_unit", "_showEffective", "_name"];
|
private ["_unit", "_showEffective", "_name"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Value of the entry. Note: If the entry does not exist, it might return 0 or an entry with the same name of another class! (Number)
|
* Value of the entry. Note: If the entry does not exist, it might return 0 or an entry with the same name of another class! (Number)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private "_number";
|
private "_number";
|
||||||
|
|
||||||
|
@ -9,6 +9,6 @@
|
|||||||
* Return Value:
|
* Return Value:
|
||||||
* [pitch, bank, yaw]
|
* [pitch, bank, yaw]
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
((_this select 0) call BIS_fnc_getPitchBank) + [getDir (_this select 0)]
|
((_this select 0) call BIS_fnc_getPitchBank) + [getDir (_this select 0)]
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Value of the entry. Note: If the entry does not exist, it might return an empty string or an entry with the same name of another class! (String)
|
* Value of the entry. Note: If the entry does not exist, it might return an empty string or an entry with the same name of another class! (String)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_path", "_mission", "_a", "_class", "_index", "_array", "_b", "_entry"];
|
private ["_path", "_mission", "_a", "_class", "_index", "_array", "_b", "_entry"];
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* 0: Azimuth (Number)
|
* 0: Azimuth (Number)
|
||||||
* 1: Inclination or 'slope' (Number)
|
* 1: Inclination or 'slope' (Number)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_position", "_direction", "_azimuth", "_inclination"];
|
private ["_position", "_direction", "_azimuth", "_inclination"];
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Measured distance in meters. Can return maximal or minimal distance (Number)
|
* Measured distance in meters. Can return maximal or minimal distance (Number)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_interval", "_maxDistance", "_minDistance", "_position", "_laser", "_line", "_distance", "_iteration"];
|
private ["_interval", "_maxDistance", "_minDistance", "_position", "_laser", "_line", "_distance", "_iteration"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Nearest object directly in line of sight, if none objNull (Object)
|
* Nearest object directly in line of sight, if none objNull (Object)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_maxDistance", "_position", "_laser", "_intersects"];
|
private ["_maxDistance", "_position", "_laser", "_intersects"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Turret index of the vehicles commander. Empty array means no observer position. (Array)
|
* Turret index of the vehicles commander. Empty array means no observer position. (Array)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_vehicle", "_turrets", "_turret", "_config"];
|
private ["_vehicle", "_turrets", "_turret", "_config"];
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Turret config (Config)
|
* Turret config (Config)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_config", "_turretIndex", "_index", "_offset", "_config2", "_foundClasses"];
|
private ["_config", "_turretIndex", "_index", "_offset", "_config2", "_foundClasses"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Turret index of the vehicles gunner. Empty array means no copilot position. (Array)
|
* Turret index of the vehicles gunner. Empty array means no copilot position. (Array)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_vehicle", "_turrets", "_turret", "_config"];
|
private ["_vehicle", "_turrets", "_turret", "_config"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Turret index of the vehicles gunner. Empty array means no gunner position. (Array)
|
* Turret index of the vehicles gunner. Empty array means no gunner position. (Array)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_vehicle", "_turrets", "_turret", "_config"];
|
private ["_vehicle", "_turrets", "_turret", "_config"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Turret index array or config path. E.g: [0] for gunner or [0,0] for commander. Returns empty array if unit is not in a turret. (Array)
|
* Turret index array or config path. E.g: [0] for gunner or [0,0] for commander. Returns empty array if unit is not in a turret. (Array)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_unit", "_vehicle", "_turrets", "_units", "_index"];
|
private ["_unit", "_vehicle", "_turrets", "_units", "_index"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* All turret index arrays of the vehicle. E.g: [[0], [0,0]] (Array)
|
* All turret index arrays of the vehicle. E.g: [[0], [0,0]] (Array)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_type", "_config", "_turrets", "_fnc_addTurret"];
|
private ["_type", "_config", "_turrets", "_fnc_addTurret"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Turret index of the vehicles gunner. Empty array means no ffv turrets. (Array)
|
* Turret index of the vehicles gunner. Empty array means no ffv turrets. (Array)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_vehicle", "_turrets", "_turret", "_config"];
|
private ["_vehicle", "_turrets", "_turret", "_config"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Turret index of the vehicles gunner. Empty array means no other turrets. (Array)
|
* Turret index of the vehicles gunner. Empty array means no other turrets. (Array)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_vehicle", "_turrets", "_turret", "_config"];
|
private ["_vehicle", "_turrets", "_turret", "_config"];
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ Returns:
|
|||||||
Example:
|
Example:
|
||||||
[ACE_Player] call FUNC(getUavControlPosition)
|
[ACE_Player] call FUNC(getUavControlPosition)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_unit", "_uav", "_positionArray", "_playerIndex"];
|
private ["_unit", "_uav", "_positionArray", "_playerIndex"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Vehicle cargo positions. (Array)
|
* Vehicle cargo positions. (Array)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_vehicle", "_config", "_cargo", "_codrivers"];
|
private ["_vehicle", "_config", "_cargo", "_codrivers"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Vehicle codriver positions. (Array)
|
* Vehicle codriver positions. (Array)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_vehicle", "_config", "_cargo", "_codrivers"];
|
private ["_vehicle", "_config", "_cargo", "_codrivers"];
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Crew (Array)
|
* Crew (Array)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_vehicle", "_types", "_crew"];
|
private ["_vehicle", "_types", "_crew"];
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* 0: Azimuth (Number)
|
* 0: Azimuth (Number)
|
||||||
* 1: Inclination or 'slope' (Number)
|
* 1: Inclination or 'slope' (Number)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_weapon", "_direction", "_azimuth", "_inclination"];
|
private ["_weapon", "_direction", "_azimuth", "_inclination"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Slot index of the given class name, 1: primary, 2: secondary, 3: handgun, else: -1 (Number)
|
* Slot index of the given class name, 1: primary, 2: secondary, 3: handgun, else: -1 (Number)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_weapon", "_type", "_index"];
|
private ["_weapon", "_type", "_index"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Wind direction. (String)
|
* Wind direction. (String)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
switch (round (windDir / 360 * 16)) do {
|
switch (round (windDir / 360 * 16)) do {
|
||||||
case 1 : {localize QUOTE(DOUBLES(STR,GVAR(SSW)))};
|
case 1 : {localize QUOTE(DOUBLES(STR,GVAR(SSW)))};
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* None.
|
* None.
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private "_unit";
|
private "_unit";
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
* Return Value:
|
* Return Value:
|
||||||
* Hadamard Product
|
* Hadamard Product
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
_vector1 = _this select 0;
|
_vector1 = _this select 0;
|
||||||
_vector2 = _this select 1;
|
_vector2 = _this select 1;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> animationState (_this select 0) >> "looped") == 0
|
getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> animationState (_this select 0) >> "looped") == 0
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_array", "_value", "_min", "_max"];
|
private ["_array", "_value", "_min", "_max"];
|
||||||
|
|
||||||
|
@ -9,6 +9,6 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* This mission has automatic wind? (Bool)
|
* This mission has automatic wind? (Bool)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
["Mission", "Intel", "windForced"] call FUNC(getNumberFromMissionSQM) != 1
|
["Mission", "Intel", "windForced"] call FUNC(getNumberFromMissionSQM) != 1
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
Example:
|
Example:
|
||||||
_isSpecialist = [player] call FUNC(isEOD);
|
_isSpecialist = [player] call FUNC(isEOD);
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private "_unit";
|
private "_unit";
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return Value:
|
* Return Value:
|
||||||
* Bool: is the unit an engineer?
|
* Bool: is the unit an engineer?
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private "_unit";
|
private "_unit";
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Is the unit in a building? (Bool)
|
* Is the unit in a building? (Bool)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
#define DISTANCE 10
|
#define DISTANCE 10
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return Value:
|
* Return Value:
|
||||||
* Bool: is unit medic?
|
* Bool: is unit medic?
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_unit"];
|
private ["_unit"];
|
||||||
|
|
||||||
|
@ -10,6 +10,6 @@
|
|||||||
* Return Value:
|
* Return Value:
|
||||||
* Bool: is unit a player?
|
* Bool: is unit a player?
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
isPlayer (_this select 0) || {_this select 0 == call FUNC(player)}
|
isPlayer (_this select 0) || {_this select 0 == call FUNC(player)}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Is the unit turned out or not? Will return false if there is no option to turn out in the first place. (Bool)
|
* Is the unit turned out or not? Will return false if there is no option to turn out in the first place. (Bool)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_unit", "_vehicle", "_config", "_animation", "_action", "_inAction", "_turretIndex"];
|
private ["_unit", "_vehicle", "_config", "_animation", "_action", "_inAction", "_turretIndex"];
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
[-1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 30, 48, 46, 32, 18, 33, 34, 35, 23, 36, 37, 38, 50, 49, 24, 25, 16, 19, 31, 20, 22, 47, 17, 45, 44, 21] select (["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] find toUpper (_this select 0)) + 1
|
[-1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 30, 48, 46, 32, 18, 33, 34, 35, 23, 36, 37, 38, 50, 49, 24, 25, 16, 19, 31, 20, 22, 47, 17, 45, 44, 21] select (["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] find toUpper (_this select 0)) + 1
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
if ((_this select 0) in (missionNamespace getVariable ["ACE_Debug", []])) then {
|
if ((_this select 0) in (missionNamespace getVariable ["ACE_Debug", []])) then {
|
||||||
private ["_type", "_argument", "_function", "_showInGame"];
|
private ["_type", "_argument", "_function", "_showInGame"];
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_array", "_index"];
|
private ["_array", "_index"];
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_array", "_index"];
|
private ["_array", "_index"];
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
* Usage:
|
* Usage:
|
||||||
* [["2", "gobblecock", "25"], {parseNumber _this}] call FUNC(map) ==> [2, 0, 25]
|
* [["2", "gobblecock", "25"], {parseNumber _this}] call FUNC(map) ==> [2, 0, 25]
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_array", "_code"];
|
private ["_array", "_code"];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return Value:
|
* Return Value:
|
||||||
* None
|
* None
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
_logic = _this select 0;
|
_logic = _this select 0;
|
||||||
_units = _this select 1;
|
_units = _this select 1;
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return Value:
|
* Return Value:
|
||||||
* None
|
* None
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
_logic = _this select 0;
|
_logic = _this select 0;
|
||||||
_units = _this select 1;
|
_units = _this select 1;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
terminate (missionNamespace getVariable [QGVAR(MonitorFnc), scriptNull]);
|
terminate (missionNamespace getVariable [QGVAR(MonitorFnc), scriptNull]);
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Nothing
|
* Nothing
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_unit", "_speaker"];
|
private ["_unit", "_speaker"];
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Digits. The maximum count is six digits. (Array)
|
* Digits. The maximum count is six digits. (Array)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_number", "_minLength", "_length", "_digits", "_index", "_count"];
|
private ["_number", "_minLength", "_length", "_digits", "_index", "_count"];
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* Return value:
|
* Return value:
|
||||||
* Digits. The maximum length is six digits. (String)
|
* Digits. The maximum length is six digits. (String)
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private ["_digits", "_count", "_string", "_index"];
|
private ["_digits", "_count", "_string", "_index"];
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
Returns:
|
Returns:
|
||||||
Nothing
|
Nothing
|
||||||
*/
|
*/
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
uiNamespace setVariable ["ACE_ctrlChannel", (_this select 0) displayCtrl 101];
|
uiNamespace setVariable ["ACE_ctrlChannel", (_this select 0) displayCtrl 101];
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// by commy2
|
// by commy2
|
||||||
#include "\z\ace\addons\common\script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private "_object";
|
private "_object";
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user