mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
using new string macros
This commit is contained in:
parent
97a4fefe60
commit
94a6eefa32
@ -18,6 +18,6 @@ class ACE_Settings {
|
|||||||
class GVAR(revealMines) {
|
class GVAR(revealMines) {
|
||||||
typeName = "SCALAR";
|
typeName = "SCALAR";
|
||||||
value = 0;
|
value = 0;
|
||||||
values[] = {"$STR_ACE_Zeus_revealMines_disable", "$STR_ACE_Zeus_revealMines_partial", "$STR_ACE_Zeus_revealMines_full"};
|
values[] = {CSTRING(revealMines_disable), CSTRING(revealMines_partial), CSTRING(revealMines_full)};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -17,7 +17,7 @@ class CfgVehicles {
|
|||||||
};
|
};
|
||||||
class GVAR(moduleSettings): ACE_Module {
|
class GVAR(moduleSettings): ACE_Module {
|
||||||
scope = 2;
|
scope = 2;
|
||||||
displayName = "$STR_ACE_Zeus_Module_DisplayName";
|
displayName = CSTRING(Settings_DisplayName);
|
||||||
icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Settings_ca.paa));
|
icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Settings_ca.paa));
|
||||||
category = "ACE";
|
category = "ACE";
|
||||||
function = QFUNC(moduleZeusSettings);
|
function = QFUNC(moduleZeusSettings);
|
||||||
@ -27,52 +27,52 @@ class CfgVehicles {
|
|||||||
author = "SilentSpike";
|
author = "SilentSpike";
|
||||||
class Arguments {
|
class Arguments {
|
||||||
class zeusAscension {
|
class zeusAscension {
|
||||||
displayName = "$STR_ACE_Zeus_ascension_DisplayName";
|
displayName = CSTRING(ascension_DisplayName);
|
||||||
description = "$STR_ACE_Zeus_ascension_Description";
|
description = CSTRING(ascension_Description);
|
||||||
typeName = "BOOL";
|
typeName = "BOOL";
|
||||||
defaultValue = 0;
|
defaultValue = 0;
|
||||||
};
|
};
|
||||||
class zeusBird {
|
class zeusBird {
|
||||||
displayName = "$STR_ACE_Zeus_bird_DisplayName";
|
displayName = CSTRING(bird_DisplayName);
|
||||||
description = "$STR_ACE_Zeus_bird_Description";
|
description = CSTRING(bird_Description);
|
||||||
typeName = "BOOL";
|
typeName = "BOOL";
|
||||||
defaultValue = 0;
|
defaultValue = 0;
|
||||||
};
|
};
|
||||||
class remoteWind {
|
class remoteWind {
|
||||||
displayName = "$STR_ACE_Zeus_remoteWind_DisplayName";
|
displayName = CSTRING(remoteWind_DisplayName);
|
||||||
description = "$STR_ACE_Zeus_remoteWind_Description";
|
description = CSTRING(remoteWind_Description);
|
||||||
typeName = "BOOL";
|
typeName = "BOOL";
|
||||||
defaultValue = 0;
|
defaultValue = 0;
|
||||||
};
|
};
|
||||||
class radioOrdnance {
|
class radioOrdnance {
|
||||||
displayName = "$STR_ACE_Zeus_radioOrdnance_DisplayName";
|
displayName = CSTRING(radioOrdnance_DisplayName);
|
||||||
description = "$STR_ACE_Zeus_radioOrdnance_Description";
|
description = CSTRING(radioOrdnance_Description);
|
||||||
typeName = "BOOL";
|
typeName = "BOOL";
|
||||||
defaultValue = 0;
|
defaultValue = 0;
|
||||||
};
|
};
|
||||||
class revealMines {
|
class revealMines {
|
||||||
displayName = "$STR_ACE_Zeus_revealMines_DisplayName";
|
displayName = CSTRING(revealMines_DisplayName);
|
||||||
description = "$STR_ACE_Zeus_revealMines_Description";
|
description = CSTRING(revealMines_Description);
|
||||||
typeName = "NUMBER";
|
typeName = "NUMBER";
|
||||||
class values {
|
class values {
|
||||||
class disable {
|
class disable {
|
||||||
name = "$STR_ACE_Zeus_revealMines_disable";
|
name = CSTRING(revealMines_disable);
|
||||||
value = 0;
|
value = 0;
|
||||||
default = 1;
|
default = 1;
|
||||||
};
|
};
|
||||||
class partial {
|
class partial {
|
||||||
name = "$STR_ACE_Zeus_revealMines_partial";
|
name = CSTRING(revealMines_partial);
|
||||||
value = 1;
|
value = 1;
|
||||||
};
|
};
|
||||||
class full {
|
class full {
|
||||||
name = "$STR_ACE_Zeus_revealMines_full";
|
name = CSTRING(revealMines_full);
|
||||||
value = 2;
|
value = 2;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
class ModuleDescription {
|
class ModuleDescription {
|
||||||
description = "$STR_ACE_Zeus_Module_Description";
|
description = CSTRING(Settings_Description);
|
||||||
sync[] = {};
|
sync[] = {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -83,7 +83,7 @@ class CfgVehicles {
|
|||||||
};
|
};
|
||||||
class GVAR(moduleCaptive): GVAR(moduleBase) {
|
class GVAR(moduleCaptive): GVAR(moduleBase) {
|
||||||
curatorCanAttach = 1;
|
curatorCanAttach = 1;
|
||||||
displayName = "$STR_ACE_Zeus_ModuleCaptive_DisplayName";
|
displayName = CSTRING(ModuleCaptive_DisplayName);
|
||||||
function = QFUNC(moduleCaptive);
|
function = QFUNC(moduleCaptive);
|
||||||
icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Captive_ca.paa));
|
icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Captive_ca.paa));
|
||||||
class ModuleDescription {
|
class ModuleDescription {
|
||||||
@ -93,7 +93,7 @@ class CfgVehicles {
|
|||||||
};
|
};
|
||||||
class GVAR(moduleSurrender): GVAR(moduleBase) {
|
class GVAR(moduleSurrender): GVAR(moduleBase) {
|
||||||
curatorCanAttach = 1;
|
curatorCanAttach = 1;
|
||||||
displayName = "$STR_ACE_Zeus_ModuleSurrender_DisplayName";
|
displayName = CSTRING(ModuleSurrender_DisplayName);
|
||||||
function = QFUNC(moduleSurrender);
|
function = QFUNC(moduleSurrender);
|
||||||
icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Surrender_ca.paa));
|
icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Surrender_ca.paa));
|
||||||
class ModuleDescription {
|
class ModuleDescription {
|
||||||
@ -103,7 +103,7 @@ class CfgVehicles {
|
|||||||
};
|
};
|
||||||
class GVAR(moduleUnconscious): GVAR(moduleBase) {
|
class GVAR(moduleUnconscious): GVAR(moduleBase) {
|
||||||
curatorCanAttach = 1;
|
curatorCanAttach = 1;
|
||||||
displayName = "$STR_ACE_Zeus_ModuleUnconscious_DisplayName";
|
displayName = CSTRING(ModuleUnconscious_DisplayName);
|
||||||
function = QFUNC(moduleUnconscious);
|
function = QFUNC(moduleUnconscious);
|
||||||
icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Unconscious_ca.paa));
|
icon = QUOTE(PATHTOF(UI\Icon_Module_Zeus_Unconscious_ca.paa));
|
||||||
class ModuleDescription {
|
class ModuleDescription {
|
||||||
|
@ -21,18 +21,18 @@ private ["_unit","_captive"];
|
|||||||
if (!_activated) exitWith {};
|
if (!_activated) exitWith {};
|
||||||
|
|
||||||
if (isNil QEFUNC(captives,setHandcuffed)) then {
|
if (isNil QEFUNC(captives,setHandcuffed)) then {
|
||||||
["STR_ACE_Zeus_RequiresAddon"] call EFUNC(common,displayTextStructured);
|
[LSTRING(RequiresAddon)] call EFUNC(common,displayTextStructured);
|
||||||
} else {
|
} else {
|
||||||
_unit = attachedTo _logic;
|
_unit = attachedTo _logic;
|
||||||
|
|
||||||
if (isNull _unit) then {
|
if (isNull _unit) then {
|
||||||
["STR_ACE_Zeus_NothingSelected"] call EFUNC(common,displayTextStructured);
|
[LSTRING(NothingSelected)] call EFUNC(common,displayTextStructured);
|
||||||
} else {
|
} else {
|
||||||
if !(_unit isKindOf "CAManBase") then {
|
if !(_unit isKindOf "CAManBase") then {
|
||||||
["STR_ACE_Zeus_OnlyInfantry"] call EFUNC(common,displayTextStructured);
|
[LSTRING(OnlyInfantry)] call EFUNC(common,displayTextStructured);
|
||||||
} else {
|
} else {
|
||||||
if !(alive _unit) then {
|
if !(alive _unit) then {
|
||||||
["STR_ACE_Zeus_OnlyAlive"] call EFUNC(common,displayTextStructured);
|
[LSTRING(OnlyAlive)] call EFUNC(common,displayTextStructured);
|
||||||
} else {
|
} else {
|
||||||
_captive = GETVAR(_unit,EGVAR(captives,isHandcuffed),false);
|
_captive = GETVAR(_unit,EGVAR(captives,isHandcuffed),false);
|
||||||
// Event initalized by ACE_Captives
|
// Event initalized by ACE_Captives
|
||||||
|
@ -21,21 +21,21 @@ private ["_unit","_surrendering"];
|
|||||||
if (!_activated) exitWith {};
|
if (!_activated) exitWith {};
|
||||||
|
|
||||||
if (isNil QEFUNC(captives,setSurrendered)) then {
|
if (isNil QEFUNC(captives,setSurrendered)) then {
|
||||||
["STR_ACE_Zeus_RequiresAddon"] call EFUNC(common,displayTextStructured);
|
[LSTRING(RequiresAddon)] call EFUNC(common,displayTextStructured);
|
||||||
} else {
|
} else {
|
||||||
_unit = attachedTo _logic;
|
_unit = attachedTo _logic;
|
||||||
|
|
||||||
if (isNull _unit) then {
|
if (isNull _unit) then {
|
||||||
["STR_ACE_Zeus_NothingSelected"] call EFUNC(common,displayTextStructured);
|
[LSTRING(NothingSelected)] call EFUNC(common,displayTextStructured);
|
||||||
} else {
|
} else {
|
||||||
if !(_unit isKindOf "CAManBase") then {
|
if !(_unit isKindOf "CAManBase") then {
|
||||||
["STR_ACE_Zeus_OnlyInfantry"] call EFUNC(common,displayTextStructured);
|
[LSTRING(OnlyInfantry)] call EFUNC(common,displayTextStructured);
|
||||||
} else {
|
} else {
|
||||||
if !(alive _unit) then {
|
if !(alive _unit) then {
|
||||||
["STR_ACE_Zeus_OnlyAlive"] call EFUNC(common,displayTextStructured);
|
[LSTRING(OnlyAlive)] call EFUNC(common,displayTextStructured);
|
||||||
} else {
|
} else {
|
||||||
if (GETVAR(_unit,EGVAR(captives,isHandcuffed),false)) then {
|
if (GETVAR(_unit,EGVAR(captives,isHandcuffed),false)) then {
|
||||||
["STR_ACE_Zeus_OnlyNonCaptive"] call EFUNC(common,displayTextStructured);
|
[LSTRING(OnlyNonCaptive)] call EFUNC(common,displayTextStructured);
|
||||||
} else {
|
} else {
|
||||||
_surrendering = GETVAR(_unit,EGVAR(captives,isSurrendering),false);
|
_surrendering = GETVAR(_unit,EGVAR(captives,isSurrendering),false);
|
||||||
// Event initalized by ACE_Captives
|
// Event initalized by ACE_Captives
|
||||||
|
@ -21,18 +21,18 @@ private ["_unit","_conscious"];
|
|||||||
if (!_activated) exitWith {};
|
if (!_activated) exitWith {};
|
||||||
|
|
||||||
if (isNil QEFUNC(medical,setUnconscious)) then {
|
if (isNil QEFUNC(medical,setUnconscious)) then {
|
||||||
["STR_ACE_Zeus_RequiresAddon"] call EFUNC(common,displayTextStructured);
|
[LSTRING(RequiresAddon)] call EFUNC(common,displayTextStructured);
|
||||||
} else {
|
} else {
|
||||||
_unit = attachedTo _logic;
|
_unit = attachedTo _logic;
|
||||||
|
|
||||||
if (isNull _unit) then {
|
if (isNull _unit) then {
|
||||||
["STR_ACE_Zeus_NothingSelected"] call EFUNC(common,displayTextStructured);
|
[LSTRING(NothingSelected)] call EFUNC(common,displayTextStructured);
|
||||||
} else {
|
} else {
|
||||||
if !(_unit isKindOf "CAManBase") then {
|
if !(_unit isKindOf "CAManBase") then {
|
||||||
["STR_ACE_Zeus_OnlyInfantry"] call EFUNC(common,displayTextStructured);
|
[LSTRING(OnlyInfantry)] call EFUNC(common,displayTextStructured);
|
||||||
} else {
|
} else {
|
||||||
if !(alive _unit) then {
|
if !(alive _unit) then {
|
||||||
["STR_ACE_Zeus_OnlyAlive"] call EFUNC(common,displayTextStructured);
|
[LSTRING(OnlyAlive)] call EFUNC(common,displayTextStructured);
|
||||||
} else {
|
} else {
|
||||||
_conscious = GETVAR(_unit,ACE_isUnconscious,false);
|
_conscious = GETVAR(_unit,ACE_isUnconscious,false);
|
||||||
// Function handles locality for me
|
// Function handles locality for me
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project name="ACE">
|
<Project name="ACE">
|
||||||
<Package name="Zeus">
|
<Package name="Zeus">
|
||||||
<Key ID="STR_ACE_Zeus_Module_DisplayName">
|
<Key ID="STR_ACE_Zeus_Settings_DisplayName">
|
||||||
<English>Zeus Settings</English>
|
<English>Zeus Settings</English>
|
||||||
<Polish>Ustawienia Zeusa</Polish>
|
<Polish>Ustawienia Zeusa</Polish>
|
||||||
</Key>
|
</Key>
|
||||||
<Key ID="STR_ACE_Zeus_Module_Description">
|
<Key ID="STR_ACE_Zeus_Settings_Description">
|
||||||
<English>Provides control over various aspects of Zeus.</English>
|
<English>Provides control over various aspects of Zeus.</English>
|
||||||
<Polish>Pozwala kontrolować różne aspekty Zeusa.</Polish>
|
<Polish>Pozwala kontrolować różne aspekty Zeusa.</Polish>
|
||||||
</Key>
|
</Key>
|
||||||
|
Loading…
Reference in New Issue
Block a user