mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Macro STRING to LSTRING
This commit is contained in:
parent
700c4cb962
commit
763cb07629
@ -1,4 +1,4 @@
|
||||
["ACE3 Equipment", QGVAR(ProtractorKey), localize STRING(ProtractorKey),
|
||||
["ACE3 Equipment", QGVAR(ProtractorKey), localize LSTRING(ProtractorKey),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
|
@ -1,4 +1,4 @@
|
||||
["ACE3 Equipment", QGVAR(ATragMXDialogKey), localize STRING(ATragMXDialogKey),
|
||||
["ACE3 Equipment", QGVAR(ATragMXDialogKey), localize LSTRING(ATragMXDialogKey),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
|
@ -37,7 +37,7 @@ if (_itemVehClass == "") then {
|
||||
|
||||
if (_itemVehClass == "") exitWith {ERROR("no ACE_Attachable for Item");};
|
||||
|
||||
_onAtachText = format [localize STRING(Item_Attached), _onAtachText];
|
||||
_onAtachText = format [localize LSTRING(Item_Attached), _onAtachText];
|
||||
|
||||
if (_unit == _attachToVehicle) then { //Self Attachment
|
||||
_unit removeItem _itemClassname; // Remove item
|
||||
@ -54,12 +54,12 @@ if (_unit == _attachToVehicle) then { //Self Attachment
|
||||
|
||||
[_unit, QGVAR(vehAttach), true] call EFUNC(common,setForceWalkStatus);
|
||||
|
||||
//MenuBack isn't working for now (localize STRING(CancelAction))
|
||||
[{[localize STRING(PlaceAction), ""] call EFUNC(interaction,showMouseHint)}, [], 0, 0] call EFUNC(common,waitAndExecute);
|
||||
//MenuBack isn't working for now (localize LSTRING(CancelAction))
|
||||
[{[localize LSTRING(PlaceAction), ""] call EFUNC(interaction,showMouseHint)}, [], 0, 0] call EFUNC(common,waitAndExecute);
|
||||
_unit setVariable [QGVAR(placeActionEH), [_unit, "DefaultAction", {true}, {GVAR(placeAction) = 1;}] call EFUNC(common,AddActionEventHandler)];
|
||||
// _unit setVariable [QGVAR(cancelActionEH), [_unit, "MenuBack", {true}, {GVAR(placeAction) = 0;}] call EFUNC(common,AddActionEventHandler)];
|
||||
|
||||
_actionID = _unit addAction [format ["<t color='#FF0000'>%1</t>", localize STRING(CancelAction)], {GVAR(placeAction) = 0}];
|
||||
_actionID = _unit addAction [format ["<t color='#FF0000'>%1</t>", localize LSTRING(CancelAction)], {GVAR(placeAction) = 0}];
|
||||
|
||||
[{
|
||||
private "_startingPosition";
|
||||
|
@ -49,7 +49,7 @@ if (isNull _attachedObject || {_itemName == ""}) exitWith {ERROR("Could not find
|
||||
|
||||
// Exit if can't add the item
|
||||
if !(_unit canAdd _itemName) exitWith {
|
||||
[localize STRING(Inventory_Full)] call EFUNC(common,displayTextStructured);
|
||||
[localize LSTRING(Inventory_Full)] call EFUNC(common,displayTextStructured);
|
||||
};
|
||||
|
||||
// Add item to inventory
|
||||
@ -78,4 +78,4 @@ if (_itemDisplayName == "") then {
|
||||
_itemDisplayName = getText (configFile >> "CfgMagazines" >> _itemName >> "displayName");
|
||||
};
|
||||
|
||||
[format [localize STRING(Item_Detached), _itemDisplayName]] call EFUNC(common,displayTextStructured);
|
||||
[format [localize LSTRING(Item_Detached), _itemDisplayName]] call EFUNC(common,displayTextStructured);
|
||||
|
@ -74,7 +74,7 @@ _closeInDistance = (_closeInMax + _closeInMin) / 2;
|
||||
//Checks (too close to center or can't attach)
|
||||
if (((_startDistanceFromCenter - _closeInDistance) < 0.1) || {!([_attachToVehicle, _unit, _itemClassname] call FUNC(canAttach))}) exitWith {
|
||||
TRACE_2("no valid spot found",_closeInDistance,_startDistanceFromCenter);
|
||||
[localize STRING(Failed)] call EFUNC(common,displayTextStructured);
|
||||
[localize LSTRING(Failed)] call EFUNC(common,displayTextStructured);
|
||||
};
|
||||
|
||||
//Move it out slightly, for visability sake (better to look a little funny than be embedded//sunk in the hull and be useless)
|
||||
|
@ -30,7 +30,7 @@ if (_state) then {
|
||||
_unit setVariable [QGVAR(escortedUnit), _target, true];
|
||||
|
||||
//Add Actionmenu to release captive
|
||||
_actionID = _unit addAction [format ["<t color='#FF0000'>%1</t>", localize STRING(StopEscorting)],
|
||||
_actionID = _unit addAction [format ["<t color='#FF0000'>%1</t>", localize LSTRING(StopEscorting)],
|
||||
{[(_this select 0), ((_this select 0) getVariable [QGVAR(escortedUnit), objNull]), false] call FUNC(doEscortCaptive);},
|
||||
nil, 20, false, true, "", QUOTE(!isNull (GETVAR(_target,QGVAR(escortedUnit),objNull)))];
|
||||
|
||||
|
@ -27,7 +27,7 @@ if (_weapon == primaryWeapon _player && {_weapon != ""}) then {
|
||||
|
||||
_listedItemClasses = [];
|
||||
|
||||
_actions = [localize STRING(FriskMenuHeader), ""] call ACE_Interaction_fnc_prepareSelectMenu;
|
||||
_actions = [localize LSTRING(FriskMenuHeader), ""] call ACE_Interaction_fnc_prepareSelectMenu;
|
||||
|
||||
_allGear = [];
|
||||
|
||||
|
@ -36,13 +36,13 @@ if (local _logic) then {
|
||||
["SetSurrendered", [_mouseOverObject], [_mouseOverObject, false]] call EFUNC(common,targetEvent);
|
||||
};
|
||||
} else {
|
||||
[STRING(Zeus_OnlyAlive)] call EFUNC(common,displayTextStructured);
|
||||
[LSTRING(Zeus_OnlyAlive)] call EFUNC(common,displayTextStructured);
|
||||
};
|
||||
} else {
|
||||
[STRING(Zeus_OnlyInfantry)] call EFUNC(common,displayTextStructured);
|
||||
[LSTRING(Zeus_OnlyInfantry)] call EFUNC(common,displayTextStructured);
|
||||
};
|
||||
} else {
|
||||
[STRING(Zeus_NothingSelected)] call EFUNC(common,displayTextStructured);
|
||||
[LSTRING(Zeus_NothingSelected)] call EFUNC(common,displayTextStructured);
|
||||
};
|
||||
} else {
|
||||
//an editor module
|
||||
|
@ -13,7 +13,7 @@ try {
|
||||
_index = (_hash select 0) find _key;
|
||||
if(_index != -1) then {
|
||||
_val = (_hash select 1) select _index;
|
||||
if(IS_STRING(_val) && {_val == "ACREHASHREMOVEDONOTUSETHISVAL"}) then {
|
||||
if(IS_LSTRING(_val) && {_val == "ACREHASHREMOVEDONOTUSETHISVAL"}) then {
|
||||
_val = nil;
|
||||
};
|
||||
};
|
||||
|
@ -58,7 +58,7 @@ if (_actionID != -1) then {
|
||||
};
|
||||
|
||||
_actionID = _unit addAction [
|
||||
format ["<t color='#FF0000'>%1</t>", localize STRING(Drop)],
|
||||
format ["<t color='#FF0000'>%1</t>", localize LSTRING(Drop)],
|
||||
QUOTE([ARR_2(_this select 0, (_this select 0) getVariable [ARR_2(QUOTE(QGVAR(carriedObject)),objNull)])] call FUNC(dropObject_carry)),
|
||||
nil,
|
||||
20,
|
||||
|
@ -49,7 +49,7 @@ if (_actionID != -1) then {
|
||||
};
|
||||
|
||||
_actionID = _unit addAction [
|
||||
format ["<t color='#FF0000'>%1</t>", localize STRING(Drop)],
|
||||
format ["<t color='#FF0000'>%1</t>", localize LSTRING(Drop)],
|
||||
QUOTE([ARR_2(_this select 0, (_this select 0) getVariable [ARR_2(QUOTE(QGVAR(draggedObject)),objNull)])] call FUNC(dropObject)),
|
||||
nil,
|
||||
20,
|
||||
|
@ -49,8 +49,8 @@ if (_type in _initializedClasses) exitWith {};
|
||||
_initializedClasses pushBack _type;
|
||||
GVAR(initializedClasses_carry) = _initializedClasses;
|
||||
|
||||
_carryAction = [QGVAR(carry), localize STRING(Carry), "", {[_player, _target] call FUNC(startCarry)}, {[_player, _target] call FUNC(canCarry)}] call EFUNC(interact_menu,createAction);
|
||||
_dropAction = [QGVAR(drop_carry), localize STRING(Drop), "", {[_player, _target] call FUNC(dropObject_carry)}, {[_player, _target] call FUNC(canDrop_carry)}] call EFUNC(interact_menu,createAction);
|
||||
_carryAction = [QGVAR(carry), localize LSTRING(Carry), "", {[_player, _target] call FUNC(startCarry)}, {[_player, _target] call FUNC(canCarry)}] call EFUNC(interact_menu,createAction);
|
||||
_dropAction = [QGVAR(drop_carry), localize LSTRING(Drop), "", {[_player, _target] call FUNC(dropObject_carry)}, {[_player, _target] call FUNC(canDrop_carry)}] call EFUNC(interact_menu,createAction);
|
||||
|
||||
[_type, 0, ["ACE_MainActions"], _carryAction] call EFUNC(interact_menu,addActionToClass);
|
||||
[_type, 0, [], _dropAction] call EFUNC(interact_menu,addActionToClass);
|
||||
|
@ -49,8 +49,8 @@ if (_type in _initializedClasses) exitWith {};
|
||||
_initializedClasses pushBack _type;
|
||||
GVAR(initializedClasses) = _initializedClasses;
|
||||
|
||||
_dragAction = [QGVAR(drag), localize STRING(Drag), "", {[_player, _target] call FUNC(startDrag)}, {[_player, _target] call FUNC(canDrag)}] call EFUNC(interact_menu,createAction);
|
||||
_dropAction = [QGVAR(drop), localize STRING(Drop), "", {[_player, _target] call FUNC(dropObject)}, {[_player, _target] call FUNC(canDrop)}] call EFUNC(interact_menu,createAction);
|
||||
_dragAction = [QGVAR(drag), localize LSTRING(Drag), "", {[_player, _target] call FUNC(startDrag)}, {[_player, _target] call FUNC(canDrag)}] call EFUNC(interact_menu,createAction);
|
||||
_dropAction = [QGVAR(drop), localize LSTRING(Drop), "", {[_player, _target] call FUNC(dropObject)}, {[_player, _target] call FUNC(canDrop)}] call EFUNC(interact_menu,createAction);
|
||||
|
||||
[_type, 0, ["ACE_MainActions"], _dragAction] call EFUNC(interact_menu,addActionToClass);
|
||||
[_type, 0, [], _dropAction] call EFUNC(interact_menu,addActionToClass);
|
||||
|
@ -22,7 +22,7 @@ private "_weight";
|
||||
_weight = [_target] call FUNC(getWeight);
|
||||
|
||||
if (_weight > GETMVAR(ACE_maxWeightCarry,1E11)) exitWith {
|
||||
[localize STRING(UnableToDrag)] call EFUNC(common,displayTextStructured);
|
||||
[localize LSTRING(UnableToDrag)] call EFUNC(common,displayTextStructured);
|
||||
};
|
||||
|
||||
private "_timer";
|
||||
|
@ -22,7 +22,7 @@ private "_weight";
|
||||
_weight = [_target] call FUNC(getWeight);
|
||||
|
||||
if (_weight > GETMVAR(ACE_maxWeightDrag,1E11)) exitWith {
|
||||
[localize STRING(UnableToDrag)] call EFUNC(common,displayTextStructured);
|
||||
[localize LSTRING(UnableToDrag)] call EFUNC(common,displayTextStructured);
|
||||
};
|
||||
|
||||
// add a primary weapon if the unit has none.
|
||||
|
@ -37,8 +37,8 @@ _config = ConfigFile >> "CfgMagazines" >> _magazineClass >> "ACE_Triggers" >> co
|
||||
_clacker = _unit getVariable [QGVAR(Clackers), []];
|
||||
GVAR(PlacedCount) = GVAR(PlacedCount) + 1;
|
||||
|
||||
_clacker pushBack [_explosive, getNumber(_config >> "FuseTime"), format [localize STRING(DetonateCode),
|
||||
_clacker pushBack [_explosive, getNumber(_config >> "FuseTime"), format [localize LSTRING(DetonateCode),
|
||||
GVAR(PlacedCount)], _magazineClass, configName ((_this select 3) select (count (_this select 3) - 1))];
|
||||
|
||||
_unit setVariable [QGVAR(Clackers), _clacker, true];
|
||||
_unit sideChat format [localize STRING(DetonateCode), GVAR(PlacedCount)];
|
||||
_unit sideChat format [localize LSTRING(DetonateCode), GVAR(PlacedCount)];
|
||||
|
@ -38,4 +38,4 @@ DFUNC(SetTimer) = {
|
||||
buttonSetAction [8860, QUOTE(call DFUNC(SetTimer);)];
|
||||
buttonSetAction [8855, QUOTE(closeDialog 0;)];
|
||||
|
||||
ctrlSetText [8870, format[localize STRING(TimerMenu),0, 30]];
|
||||
ctrlSetText [8870, format[localize LSTRING(TimerMenu),0, 30]];
|
||||
|
@ -41,8 +41,8 @@ GVAR(TweakedAngle) = 180;
|
||||
};
|
||||
}] call CALLSTACK(BIS_fnc_addStackedEventHandler);
|
||||
|
||||
[localize STRING(PlaceAction), localize STRING(CancelAction),
|
||||
localize STRING(ScrollAction)] call EFUNC(interaction,showMouseHint);
|
||||
[localize LSTRING(PlaceAction), localize LSTRING(CancelAction),
|
||||
localize LSTRING(ScrollAction)] call EFUNC(interaction,showMouseHint);
|
||||
_unit setVariable [QGVAR(Place), [_unit, "DefaultAction",
|
||||
{GVAR(pfeh_running) AND !isNull (GVAR(Setup))}, {call FUNC(place_Approve);}] call EFUNC(common,AddActionEventHandler)];
|
||||
_unit setVariable [QGVAR(Cancel), [_unit, "zoomtemp",
|
||||
|
@ -59,6 +59,6 @@ if (ACE_player != _unit) then {
|
||||
_isEOD = [_unit] call EFUNC(Common,isEOD);
|
||||
_defuseTime = [_isEOD, _target] call _fnc_DefuseTime;
|
||||
if (_isEOD || {!GVAR(RequireSpecialist)}) then {
|
||||
[_defuseTime, [_unit,_target], {(_this select 0) call FUNC(defuseExplosive)}, {}, (localize STRING(DefusingExplosive))] call EFUNC(common,progressBar);
|
||||
[_defuseTime, [_unit,_target], {(_this select 0) call FUNC(defuseExplosive)}, {}, (localize LSTRING(DefusingExplosive))] call EFUNC(common,progressBar);
|
||||
};
|
||||
};
|
||||
|
@ -208,5 +208,5 @@ if(_playSound) then {
|
||||
};
|
||||
|
||||
if(_showHint) then {
|
||||
[format ["%1: %2", localize STRING(ZeroedTo), _distance]] call EFUNC(common,displayTextStructured);
|
||||
[format ["%1: %2", localize LSTRING(ZeroedTo), _distance]] call EFUNC(common,displayTextStructured);
|
||||
};
|
@ -22,4 +22,4 @@ _turret = _this select 1;
|
||||
[_vehicle, format ["%1_%2", QGVAR(Elevation), _turret], 0] call EFUNC(common,setVariablePublic);
|
||||
[_vehicle, format ["%1_%2", QGVAR(Azimuth), _turret], 0] call EFUNC(common,setVariablePublic);
|
||||
|
||||
[localize STRING(HasBeenReset)] call EFUNC(common,displayTextStructured);
|
||||
[localize LSTRING(HasBeenReset)] call EFUNC(common,displayTextStructured);
|
||||
|
@ -1,6 +1,6 @@
|
||||
// by commy2
|
||||
|
||||
["ACE3 Vehicles", QGVAR(lazeTarget), localize STRING(LaseTarget),
|
||||
["ACE3 Vehicles", QGVAR(lazeTarget), localize LSTRING(LaseTarget),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, vehicle ACE_player, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
@ -30,7 +30,7 @@
|
||||
},
|
||||
[15, [false, false, false]], false] call cba_fnc_addKeybind; //Tab Key
|
||||
|
||||
["ACE3 Vehicles", QGVAR(adjustRangeUp), localize STRING(AdjustRangeUp),
|
||||
["ACE3 Vehicles", QGVAR(adjustRangeUp), localize LSTRING(AdjustRangeUp),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, vehicle ACE_player, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
@ -44,7 +44,7 @@
|
||||
{false},
|
||||
[201, [false, false, false]], false] call cba_fnc_addKeybind; //PageUp Key
|
||||
|
||||
["ACE3 Vehicles", QGVAR(adjustRangDown), localize STRING(AdjustRangeDown),
|
||||
["ACE3 Vehicles", QGVAR(adjustRangDown), localize LSTRING(AdjustRangeDown),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, vehicle ACE_player, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include "script_component.hpp"
|
||||
if (!hasInterface) exitWith {};
|
||||
|
||||
["ACE3 Common", QGVAR(wipeGlasses), localize STRING(WipeGlasses),
|
||||
["ACE3 Common", QGVAR(wipeGlasses), localize LSTRING(WipeGlasses),
|
||||
{
|
||||
if (!(GETVAR(ace_player,ACE_isUnconscious,false))) exitWith {
|
||||
call FUNC(clearGlasses);
|
||||
|
@ -10,7 +10,7 @@ GVAR(flashbangPPEffectCC) = ppEffectCreate ["ColorCorrections", 4265];
|
||||
GVAR(flashbangPPEffectCC) ppEffectForceInNVG true;
|
||||
|
||||
// Add keybinds
|
||||
["ACE3 Weapons", QGVAR(switchGrenadeMode), localize STRING(SwitchGrenadeMode),
|
||||
["ACE3 Weapons", QGVAR(switchGrenadeMode), localize LSTRING(SwitchGrenadeMode),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, ["isNotEscorting"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
|
@ -31,11 +31,11 @@ if (_mode == 3) then {
|
||||
};
|
||||
|
||||
_hint = [
|
||||
localize STRING(NormalThrow),
|
||||
localize STRING(HighThrow),
|
||||
localize STRING(PreciseThrow),
|
||||
localize STRING(RollGrenade),
|
||||
localize STRING(DropGrenade)
|
||||
localize LSTRING(NormalThrow),
|
||||
localize LSTRING(HighThrow),
|
||||
localize LSTRING(PreciseThrow),
|
||||
localize LSTRING(RollGrenade),
|
||||
localize LSTRING(DropGrenade)
|
||||
] select _mode;
|
||||
|
||||
[_hint] call EFUNC(common,displayTextStructured);
|
||||
|
@ -22,7 +22,7 @@ _player removeItem "ACE_EarPlugs";
|
||||
|
||||
_player setVariable ["ACE_hasEarPlugsIn", true, true];
|
||||
|
||||
[localize STRING(EarPlugs_Are_On)] call EFUNC(common,displayTextStructured);
|
||||
[localize LSTRING(EarPlugs_Are_On)] call EFUNC(common,displayTextStructured);
|
||||
|
||||
/*// No Ear Plugs in inventory, telling user
|
||||
[localize STRING(NoPlugs)] call EFUNC(common,displayTextStructured);*/
|
||||
[localize LSTRING(NoPlugs)] call EFUNC(common,displayTextStructured);*/
|
||||
|
@ -18,7 +18,7 @@
|
||||
PARAMS_1(_player);
|
||||
|
||||
if !(_player canAdd "ACE_EarPlugs") exitWith { // inventory full
|
||||
[localize STRING(Inventory_Full)] call EFUNC(common,displayTextStructured);
|
||||
[localize LSTRING(Inventory_Full)] call EFUNC(common,displayTextStructured);
|
||||
};
|
||||
|
||||
// Plugs already in and removing them.
|
||||
@ -26,4 +26,4 @@ _player addItem "ACE_EarPlugs";
|
||||
|
||||
_player setVariable ["ACE_hasEarPlugsIn", false, true];
|
||||
|
||||
[localize STRING(EarPlugs_Are_Off)] call EFUNC(common,displayTextStructured);
|
||||
[localize LSTRING(EarPlugs_Are_Off)] call EFUNC(common,displayTextStructured);
|
||||
|
@ -28,7 +28,7 @@ addMissionEventHandler ["Draw3D", DFUNC(render)];
|
||||
};
|
||||
|
||||
|
||||
["ACE3 Common", QGVAR(InteractKey), (localize STRING(InteractKey)),
|
||||
["ACE3 Common", QGVAR(InteractKey), (localize LSTRING(InteractKey)),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, ["isNotInside","isNotDragging", "isNotCarrying", "isNotSwimming", "notOnMap", "isNotEscorting", "isNotSurrendering"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
@ -37,7 +37,7 @@ addMissionEventHandler ["Draw3D", DFUNC(render)];
|
||||
},{[0,false] call FUNC(keyUp)},
|
||||
[219, [false, false, false]], false] call cba_fnc_addKeybind; //Left Windows Key
|
||||
|
||||
["ACE3 Common", QGVAR(SelfInteractKey), (localize STRING(SelfInteractKey)),
|
||||
["ACE3 Common", QGVAR(SelfInteractKey), (localize LSTRING(SelfInteractKey)),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, ["isNotInside","isNotDragging", "isNotCarrying", "isNotSwimming", "notOnMap", "isNotEscorting", "isNotSurrendering"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
|
@ -87,12 +87,12 @@ private ["_baseDisplayName", "_baseIcon"];
|
||||
_baseDisplayName = "";
|
||||
_baseIcon = "";
|
||||
if (_objectType isKindOf "CAManBase") then {
|
||||
_baseDisplayName = localize STRING(SelfActionsRoot);
|
||||
_baseDisplayName = localize LSTRING(SelfActionsRoot);
|
||||
_baseIcon = "\a3\ui_f\data\IGUI\Cfg\Actions\eject_ca.paa";
|
||||
} else {
|
||||
_baseDisplayName = getText (configFile >> "CfgVehicles" >> _objectType >> "displayName");
|
||||
//Alt would be to just use a static text, if veh names end up being too long:
|
||||
// _baseDisplayName = localize STRING(VehicleActionsRoot);
|
||||
// _baseDisplayName = localize LSTRING(VehicleActionsRoot);
|
||||
|
||||
//Pull the icon from the vehicle's config:
|
||||
_baseIcon = getText (configFile >> "CfgVehicles" >> _objectType >> "Icon");
|
||||
|
@ -23,7 +23,7 @@ private ["_team"];
|
||||
|
||||
|
||||
// Add keybinds
|
||||
["ACE3 Common", QGVAR(openDoor), localize STRING(OpenDoor),
|
||||
["ACE3 Common", QGVAR(openDoor), localize LSTRING(OpenDoor),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
@ -43,7 +43,7 @@ private ["_team"];
|
||||
[57, [false, true, false]], false] call cba_fnc_addKeybind; //Key CTRL+Space
|
||||
|
||||
|
||||
["ACE3 Common", QGVAR(tapShoulder), localize STRING(TapShoulder),
|
||||
["ACE3 Common", QGVAR(tapShoulder), localize LSTRING(TapShoulder),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
@ -57,7 +57,7 @@ private ["_team"];
|
||||
{false},
|
||||
[20, [true, false, false]], false] call cba_fnc_addKeybind;
|
||||
|
||||
["ACE3 Common", QGVAR(modifierKey), localize STRING(ModifierKey),
|
||||
["ACE3 Common", QGVAR(modifierKey), localize LSTRING(ModifierKey),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
//if !([ACE_player, objNull, ["isNotDragging"]] call EFUNC(common,canInteractWith)) exitWith {false}; // not needed
|
||||
|
@ -25,10 +25,10 @@ _unit setVariable [QGVAR(assignedFireTeam), _team, true];
|
||||
|
||||
if (_unit == ACE_player) then {
|
||||
_message = if (_team == "MAIN") then {
|
||||
localize STRING(LeftTeam);
|
||||
localize LSTRING(LeftTeam);
|
||||
} else {
|
||||
_team = localize format [STRING(Team%1), _team];
|
||||
format [localize STRING(JoinedTeam), _team];
|
||||
_team = localize format [LSTRING(Team%1), _team];
|
||||
format [localize LSTRING(JoinedTeam), _team];
|
||||
};
|
||||
|
||||
[_message] call EFUNC(common,displayTextStructured);
|
||||
|
@ -29,7 +29,7 @@ if !(_unit in _cargo) exitWith {};
|
||||
GVAR(InteractionMenu_Crew) = _cargo;
|
||||
|
||||
// Prepare: add header and "OK" button to select menu
|
||||
_actions = [localize STRING(InteractionMenu), localize STRING(Interact)] call FUNC(prepareSelectMenu);
|
||||
_actions = [localize LSTRING(InteractionMenu), localize LSTRING(Interact)] call FUNC(prepareSelectMenu);
|
||||
|
||||
// Prepare: add all cargo units as options to select menu
|
||||
{
|
||||
|
@ -21,7 +21,7 @@ PARAMS_2(_header,_buttonText);
|
||||
closeDialog 0;
|
||||
|
||||
if (isNil "_buttonText" or {_buttonText == ""}) then {
|
||||
_buttonText = localize STRING(MakeSelection);
|
||||
_buttonText = localize LSTRING(MakeSelection);
|
||||
};
|
||||
|
||||
createDialog "RscACE_SelectAnItem";
|
||||
|
@ -32,9 +32,9 @@ addCamShake [4, 0.5, 5];
|
||||
private ["_message"];
|
||||
//localize is converting the escaped <> symbols, so just add them here instead of in the stringtable
|
||||
if (_shoulderNum == 0) then {
|
||||
_message = format ["%1 >", (localize STRING(YouWereTappedRight))];
|
||||
_message = format ["%1 >", (localize LSTRING(YouWereTappedRight))];
|
||||
} else {
|
||||
_message = format ["< %1", (localize STRING(YouWereTappedLeft))];
|
||||
_message = format ["< %1", (localize LSTRING(YouWereTappedLeft))];
|
||||
};
|
||||
|
||||
[parseText _message] call EFUNC(common,displayTextStructured);
|
||||
|
@ -1,6 +1,6 @@
|
||||
// by commy2
|
||||
|
||||
["ACE3 Weapons", QGVAR(lockTarget), localize STRING(LockTarget),
|
||||
["ACE3 Weapons", QGVAR(lockTarget), localize LSTRING(LockTarget),
|
||||
{
|
||||
if (GETGVAR(isLockKeyDown,false)) exitWith {false};
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
},
|
||||
[15, [false, false, false]], false] call cba_fnc_addKeybind; //Tab Key
|
||||
|
||||
["ACE3 Weapons", QGVAR(cycleFireMode), localize STRING(CycleFireMode),
|
||||
["ACE3 Weapons", QGVAR(cycleFireMode), localize LSTRING(CycleFireMode),
|
||||
{ false },
|
||||
{
|
||||
[ACE_player] call FUNC(cycleFireMode);
|
||||
|
@ -1,4 +1,4 @@
|
||||
["ACE3 Equipment", QGVAR(KestrelDialogKey), localize STRING(KestrelDialogKey),
|
||||
["ACE3 Equipment", QGVAR(KestrelDialogKey), localize LSTRING(KestrelDialogKey),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
@ -13,7 +13,7 @@
|
||||
{false},
|
||||
[0, [false, false, false]], false, 0] call CBA_fnc_addKeybind; // (empty default key)
|
||||
|
||||
["ACE3 Equipment", QGVAR(DisplayKestrelKey), localize STRING(DisplayKestrelKey),
|
||||
["ACE3 Equipment", QGVAR(DisplayKestrelKey), localize LSTRING(DisplayKestrelKey),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
|
@ -8,5 +8,5 @@ if(_oldLaserCode > ACE_DEFAULT_LASER_CODE) then {
|
||||
ACE_player setVariable [QGVAR(code), _laserCode, false];
|
||||
};
|
||||
if(_laserCode != _oldLaserCode) then {
|
||||
[format ["%1: %2", localize STRING(laserCode), _laserCode]] call EFUNC(common,displayTextStructured);
|
||||
[format ["%1: %2", localize LSTRING(laserCode), _laserCode]] call EFUNC(common,displayTextStructured);
|
||||
};
|
@ -6,5 +6,5 @@ _oldLaserCode = ACE_player getVariable [QGVAR(code), ACE_DEFAULT_LASER_CODE];
|
||||
_laserCode = _oldLaserCode + 1;
|
||||
ACE_player setVariable [QGVAR(code), _laserCode, false];
|
||||
if(_laserCode != _oldLaserCode) then {
|
||||
[format ["%1: %2", localize STRING(laserCode), _laserCode]] call EFUNC(common,displayTextStructured);
|
||||
[format ["%1: %2", localize LSTRING(laserCode), _laserCode]] call EFUNC(common,displayTextStructured);
|
||||
};
|
@ -48,7 +48,7 @@ _finalOwner = nil;
|
||||
if(IS_CODE(_method)) then {
|
||||
_laser = _x call _method;
|
||||
} else {
|
||||
if(IS_STRING(_method)) then {
|
||||
if(IS_LSTRING(_method)) then {
|
||||
_laser = _x call (missionNamespace getVariable [_method, {}]);
|
||||
} else {
|
||||
if(IS_ARRAY(_method)) then {
|
||||
|
@ -1,4 +1,4 @@
|
||||
["ACE3 Equipment", QGVAR(LaserCodeUp), localize STRING(laserCodeUp),
|
||||
["ACE3 Equipment", QGVAR(LaserCodeUp), localize LSTRING(laserCodeUp),
|
||||
{
|
||||
if( EGVAR(laser_selfdesignate,active)
|
||||
||
|
||||
@ -12,7 +12,7 @@
|
||||
{false},
|
||||
[16, [false, true, true]], false, 0] call CBA_fnc_addKeybind; // (ALT+CTRL+Q)
|
||||
|
||||
["ACE3 Equipment", QGVAR(LaserCodeDown), localize STRING(laserCodeDown),
|
||||
["ACE3 Equipment", QGVAR(LaserCodeDown), localize LSTRING(laserCodeDown),
|
||||
{
|
||||
if( EGVAR(laser_selfdesignate,active)
|
||||
||
|
||||
|
@ -31,7 +31,7 @@ GVAR(initializedClasses) = _initializedClasses;
|
||||
// e.g.: _vehicle setVariable [format ["%1_%2", QGVAR(active), _x], false];
|
||||
|
||||
// Add actions
|
||||
_onAction = [QGVAR(LaserOn), localize STRING(DesignatorOn), "",
|
||||
_onAction = [QGVAR(LaserOn), localize LSTRING(DesignatorOn), "",
|
||||
{
|
||||
// Statement
|
||||
_this call FUNC(laserHudDesignateOn)
|
||||
@ -41,7 +41,7 @@ GVAR(initializedClasses) = _initializedClasses;
|
||||
!GVAR(active) && {[ACE_player] call FUNC(unitTurretHasDesignator)}
|
||||
}] call EFUNC(interact_menu,createAction);
|
||||
|
||||
_offAction = [QGVAR(LaserOff), localize STRING(DesignatorOff), "",
|
||||
_offAction = [QGVAR(LaserOff), localize LSTRING(DesignatorOff), "",
|
||||
{
|
||||
// Statement
|
||||
_this call FUNC(laserHudDesignateOff)
|
||||
|
@ -1,6 +1,6 @@
|
||||
// by commy2
|
||||
|
||||
["ACE3 Weapons", QGVAR(switchLaserLightMode), localize STRING(switchLaserLight),
|
||||
["ACE3 Weapons", QGVAR(switchLaserLightMode), localize LSTRING(switchLaserLight),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, ["isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
|
@ -36,4 +36,4 @@ _onFailure = {
|
||||
|
||||
[_caller, "AinvPknlMstpSnonWnonDr_medic5", 0] call EFUNC(common,doAnimation);
|
||||
|
||||
[10, [_caller, _target], _onFinish, _onFailure, (localize STRING(Battery_Recharge)), {(_this select 0) call FUNC(canRefuelUAV)}] call EFUNC(common,progressBar);
|
||||
[10, [_caller, _target], _onFinish, _onFailure, (localize LSTRING(Battery_Recharge)), {(_this select 0) call FUNC(canRefuelUAV)}] call EFUNC(common,progressBar);
|
||||
|
@ -38,4 +38,4 @@ _progressCheck = {
|
||||
((!isNull _fenceObject) && {(damage _fenceObject) < 1} && {("ACE_wirecutter" in (items ACE_player))})
|
||||
};
|
||||
|
||||
[_timeToCut, [_fenceObject,0], {(_this select 0) call FUNC(cutDownFenceCallback)}, {(_this select 0) call FUNC(cutDownFenceAbort)}, localize STRING(CuttingFence), _progressCheck] call EFUNC(common,progressBar);
|
||||
[_timeToCut, [_fenceObject,0], {(_this select 0) call FUNC(cutDownFenceCallback)}, {(_this select 0) call FUNC(cutDownFenceAbort)}, localize LSTRING(CuttingFence), _progressCheck] call EFUNC(common,progressBar);
|
||||
|
@ -18,5 +18,5 @@
|
||||
PARAMS_1(_fenceObject);
|
||||
|
||||
_fenceObject setdamage 1;
|
||||
// [localize STRING(FenceCut)] call EFUNC(common,displayTextStructured);
|
||||
// [localize LSTRING(FenceCut)] call EFUNC(common,displayTextStructured);
|
||||
[ACE_player, "AmovPknlMstpSrasWrflDnon", 1] call EFUNC(common,doAnimation);
|
||||
|
@ -53,7 +53,7 @@ if (!("ACE_wirecutter" in (items ace_player))) exitWith {};
|
||||
if ([_x] call FUNC(isFence)) then {
|
||||
_fencesHelped pushBack _x;
|
||||
_helper = "Sign_Sphere25cm_F" createVehicleLocal (getpos _x);
|
||||
_action = [QGVAR(helperCutFence), (localize STRING(CutFence)), QUOTE(PATHTOF(ui\wirecutter_ca.paa)), _fncStatement, _fncCondition, {}, _x, [0,0,0], 5] call EFUNC(interact_menu,createAction);
|
||||
_action = [QGVAR(helperCutFence), (localize LSTRING(CutFence)), QUOTE(PATHTOF(ui\wirecutter_ca.paa)), _fncStatement, _fncCondition, {}, _x, [0,0,0], 5] call EFUNC(interact_menu,createAction);
|
||||
[_helper, 0, [],_action] call EFUNC(interact_menu,addActionToObject);
|
||||
_helper setPosASL ((getPosASL _x) vectorAdd [0,0,1.25]);
|
||||
_helper hideObject true;
|
||||
|
@ -29,9 +29,9 @@ _fullMagazineCount = getNumber (configfile >> "CfgMagazines" >> _magazineClassna
|
||||
if (!([ACE_player, objNull, ["isNotInside"]] call EFUNC(common,canInteractWith))) exitWith {};
|
||||
|
||||
_structuredOutputText = if (_errorCode == 0) then {
|
||||
format ["<t align='center'>%1</t><br/>", (localize STRING(RepackComplete))];
|
||||
format ["<t align='center'>%1</t><br/>", (localize LSTRING(RepackComplete))];
|
||||
} else {
|
||||
format ["<t align='center'>%1</t><br/>", (localize STRING(RepackInterrupted))];
|
||||
format ["<t align='center'>%1</t><br/>", (localize LSTRING(RepackInterrupted))];
|
||||
};
|
||||
|
||||
_picture = getText (configFile >> "CfgMagazines" >> _magazineClassname >> "picture");
|
||||
@ -51,6 +51,6 @@ _structuredOutputText = _structuredOutputText + format ["<img align='center' siz
|
||||
// };
|
||||
// };
|
||||
// } forEach (magazinesAmmoFull ACE_player);
|
||||
// _structuredOutputText = _structuredOutputText + format [("<t align='center'>" + (localize STRING(RepackedMagazinesCount)) + "</t>"), _fullMags, _partialMags];
|
||||
// _structuredOutputText = _structuredOutputText + format [("<t align='center'>" + (localize LSTRING(RepackedMagazinesCount)) + "</t>"), _fullMags, _partialMags];
|
||||
|
||||
[parseText _structuredOutputText, 2] call EFUNC(common,displayTextStructured);
|
||||
|
@ -67,7 +67,7 @@ _totalTime,
|
||||
[_magazineClassname, _startingAmmoCounts, _simEvents],
|
||||
{_this call FUNC(magazineRepackFinish)},
|
||||
{_this call FUNC(magazineRepackFinish)},
|
||||
(localize STRING(RepackingMagazine)),
|
||||
(localize LSTRING(RepackingMagazine)),
|
||||
{_this call FUNC(magazineRepackProgress)},
|
||||
["isNotInside"]
|
||||
] call EFUNC(common,progressBar);
|
||||
|
@ -22,8 +22,8 @@
|
||||
|
||||
#define PATHTOEF(var1,var2) PATHTOF_SYS(PREFIX,var1,var2)
|
||||
|
||||
#define STRING(var1) QUOTE(TRIPLES(STR,ADDON,var1))
|
||||
#define ESTRING(var1,var2) QUOTE(TRIPLES(STR,DOUBLES(PREFIX,var1),var2))
|
||||
#define LSTRING(var1) QUOTE(TRIPLES(STR,ADDON,var1))
|
||||
#define LESTRING(var1,var2) QUOTE(TRIPLES(STR,DOUBLES(PREFIX,var1),var2))
|
||||
#define CSTRING(var1) QUOTE(TRIPLES($STR,ADDON,var1))
|
||||
#define ECSTRING(var1,var2) QUOTE(TRIPLES($STR,DOUBLES(PREFIX,var1),var2))
|
||||
|
||||
|
@ -25,6 +25,6 @@ if (_direction < 0) then {
|
||||
_direction = _direction + 360;
|
||||
};
|
||||
|
||||
((ctrlParent _ctrl) displayCtrl 1221) ctrlSetText format [localize STRING(MarkerDirection), _direction];
|
||||
((ctrlParent _ctrl) displayCtrl 1221) ctrlSetText format [localize LSTRING(MarkerDirection), _direction];
|
||||
|
||||
GVAR(currentMarkerAngle) = _data;
|
||||
|
@ -28,27 +28,27 @@ _bloodPressureLow = _bloodPressure select 0;
|
||||
_output = "";
|
||||
_logOutPut = "";
|
||||
if ([_caller] call FUNC(isMedic)) then {
|
||||
_output = STRING(Check_Bloodpressure_Output_1);
|
||||
_output = LSTRING(Check_Bloodpressure_Output_1);
|
||||
_logOutPut = format["%1/%2",round(_bloodPressureHigh),round(_bloodPressureLow)];
|
||||
} else {
|
||||
if (_bloodPressureHigh > 20) then {
|
||||
_output = STRING(Check_Bloodpressure_Output_2);
|
||||
_logOutPut = localize STRING(Check_Bloodpressure_Low);
|
||||
_output = LSTRING(Check_Bloodpressure_Output_2);
|
||||
_logOutPut = localize LSTRING(Check_Bloodpressure_Low);
|
||||
if (_bloodPressureHigh > 100) then {
|
||||
_output = STRING(Check_Bloodpressure_Output_3);
|
||||
_logOutPut = localize STRING(Check_Bloodpressure_Normal);
|
||||
_output = LSTRING(Check_Bloodpressure_Output_3);
|
||||
_logOutPut = localize LSTRING(Check_Bloodpressure_Normal);
|
||||
if (_bloodPressureHigh > 160) then {
|
||||
_output = STRING(Check_Bloodpressure_Output_4);
|
||||
_logOutPut = localize STRING(Check_Bloodpressure_High);
|
||||
_output = LSTRING(Check_Bloodpressure_Output_4);
|
||||
_logOutPut = localize LSTRING(Check_Bloodpressure_High);
|
||||
};
|
||||
|
||||
};
|
||||
} else {
|
||||
if (random(10) > 3) then {
|
||||
_output = STRING(Check_Bloodpressure_Output_5);
|
||||
_logOutPut = localize STRING(Check_Bloodpressure_NoBloodpressure);
|
||||
_output = LSTRING(Check_Bloodpressure_Output_5);
|
||||
_logOutPut = localize LSTRING(Check_Bloodpressure_NoBloodpressure);
|
||||
} else {
|
||||
_output = STRING(Check_Bloodpressure_Output_6);
|
||||
_output = LSTRING(Check_Bloodpressure_Output_6);
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -56,5 +56,5 @@ if ([_caller] call FUNC(isMedic)) then {
|
||||
["displayTextStructured", [_caller], [[_output, [_target] call EFUNC(common,getName), round(_bloodPressureHigh),round(_bloodPressureLow)], 1.75, _caller]] call EFUNC(common,targetEvent);
|
||||
|
||||
if (_logOutPut != "") then {
|
||||
[_target,"activity", localize STRING(Check_Bloodpressure_Log), [[_caller] call EFUNC(common,getName), _logOutPut]] call FUNC(addToLog);
|
||||
[_target,"activity", localize LSTRING(Check_Bloodpressure_Log), [[_caller] call EFUNC(common,getName), _logOutPut]] call FUNC(addToLog);
|
||||
};
|
||||
|
@ -23,24 +23,24 @@ _heartRate = _unit getvariable [QGVAR(heartRate), 80];
|
||||
if (!alive _unit) then {
|
||||
_heartRate = 0;
|
||||
};
|
||||
_heartRateOutput = STRING(Check_Pulse_Output_5);
|
||||
_logOutPut = localize STRING(Check_Pulse_None);
|
||||
_heartRateOutput = LSTRING(Check_Pulse_Output_5);
|
||||
_logOutPut = localize LSTRING(Check_Pulse_None);
|
||||
|
||||
if (_heartRate > 1.0) then {
|
||||
if ([_caller] call FUNC(isMedic)) then {
|
||||
_heartRateOutput = STRING(Check_Pulse_Output_1);
|
||||
_heartRateOutput = LSTRING(Check_Pulse_Output_1);
|
||||
_logOutPut = format["%1",round(_heartRate)];
|
||||
} else {
|
||||
// non medical personel will only find a pulse/HR
|
||||
_heartRateOutput = STRING(Check_Pulse_Output_2);
|
||||
_logOutPut = localize STRING(Check_Pulse_Weak);
|
||||
_heartRateOutput = LSTRING(Check_Pulse_Output_2);
|
||||
_logOutPut = localize LSTRING(Check_Pulse_Weak);
|
||||
if (_heartRate > 60) then {
|
||||
if (_heartRate > 100) then {
|
||||
_heartRateOutput = STRING(Check_Pulse_Output_3);
|
||||
_logOutPut = localize STRING(Check_Pulse_Strong);
|
||||
_heartRateOutput = LSTRING(Check_Pulse_Output_3);
|
||||
_logOutPut = localize LSTRING(Check_Pulse_Strong);
|
||||
} else {
|
||||
_heartRateOutput = STRING(Check_Pulse_Output_4);
|
||||
_logOutPut = localize STRING(Check_Pulse_Normal);
|
||||
_heartRateOutput = LSTRING(Check_Pulse_Output_4);
|
||||
_logOutPut = localize LSTRING(Check_Pulse_Normal);
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -49,5 +49,5 @@ if (_heartRate > 1.0) then {
|
||||
["displayTextStructured", [_caller], [[_heartRateOutput, [_unit] call EFUNC(common,getName), round(_heartRate)], 1.5, _caller]] call EFUNC(common,targetEvent);
|
||||
|
||||
if (_logOutPut != "") then {
|
||||
[_unit,"activity", localize STRING(Check_Pulse_Log),[[_caller] call EFUNC(common,getName),_logOutPut]] call FUNC(addToLog);
|
||||
[_unit,"activity", localize LSTRING(Check_Pulse_Log),[[_caller] call EFUNC(common,getName),_logOutPut]] call FUNC(addToLog);
|
||||
};
|
||||
|
@ -20,9 +20,9 @@ _target = _this select 1;
|
||||
|
||||
_output = "";
|
||||
if ([_target] call EFUNC(common,isAwake)) then {
|
||||
_output = STRING(Check_Response_Responsive);
|
||||
_output = LSTRING(Check_Response_Responsive);
|
||||
} else {
|
||||
_output = STRING(Check_Response_Unresponsive);
|
||||
_output = LSTRING(Check_Response_Unresponsive);
|
||||
};
|
||||
|
||||
["displayTextStructured", [_caller], [[_output, [_target] call EFUNC(common,getName)], 2, _caller]] call EFUNC(common,targetEvent);
|
||||
|
@ -18,28 +18,28 @@ private ["_caller", "_target", "_genericMessages"];
|
||||
_caller = _this select 0;
|
||||
_target = _this select 1;
|
||||
|
||||
_genericMessages = [STRING(diagnoseMessage)];
|
||||
_genericMessages = [LSTRING(diagnoseMessage)];
|
||||
|
||||
_genericMessages pushBack ([_target] call EFUNC(common,getName));
|
||||
if (alive _target) then {
|
||||
_genericMessages pushback STRING(diagnoseAlive);
|
||||
_genericMessages pushback LSTRING(diagnoseAlive);
|
||||
} else {
|
||||
_genericMessages pushback STRING(diagnoseDead);
|
||||
_genericMessages pushback LSTRING(diagnoseDead);
|
||||
};
|
||||
if (_target getvariable[QGVAR(hasLostBlood), 0] > 0) then {
|
||||
if (_target getvariable[QGVAR(hasLostBlood), 0] > 1) then {
|
||||
_genericMessages pushback STRING(lostBloodALot);
|
||||
_genericMessages pushback LSTRING(lostBloodALot);
|
||||
} else {
|
||||
_genericMessages pushback STRING(lostBlood);
|
||||
_genericMessages pushback LSTRING(lostBlood);
|
||||
};
|
||||
} else {
|
||||
_genericMessages pushback STRING(noBloodloss);
|
||||
_genericMessages pushback LSTRING(noBloodloss);
|
||||
};
|
||||
|
||||
if (_target getvariable[QGVAR(hasPain), false]) then {
|
||||
_genericMessages pushback STRING(inPain);
|
||||
_genericMessages pushback LSTRING(inPain);
|
||||
} else {
|
||||
_genericMessages pushback STRING(noPain);
|
||||
_genericMessages pushback LSTRING(noPain);
|
||||
};
|
||||
|
||||
["displayTextStructured", [_caller], [_genericMessages, 3.0, _caller]] call EFUNC(common,targetEvent);
|
||||
|
@ -50,22 +50,22 @@ if (_show) then {
|
||||
_genericMessages = [];
|
||||
|
||||
if (GVAR(level) >= 2) then {
|
||||
_partText = [STRING(Head), STRING(Torso), STRING(ArmLeft) ,STRING(ArmRight) ,STRING(LegLeft), STRING(LegRight)] select _selectionN;
|
||||
_partText = [LSTRING(Head), LSTRING(Torso), LSTRING(ArmLeft) ,LSTRING(ArmRight) ,LSTRING(LegLeft), LSTRING(LegRight)] select _selectionN;
|
||||
_genericMessages pushback [localize _partText, [1, 1, 1, 1]];
|
||||
};
|
||||
|
||||
if (_target getvariable[QGVAR(isBleeding), false]) then {
|
||||
_genericMessages pushback [localize STRING(Status_Bleeding), [1, 0.1, 0.1, 1]];
|
||||
_genericMessages pushback [localize LSTRING(Status_Bleeding), [1, 0.1, 0.1, 1]];
|
||||
};
|
||||
if (_target getvariable[QGVAR(hasLostBlood), 0] > 1) then {
|
||||
_genericMessages pushback [localize STRING(Status_Lost_Blood), [1, 0.1, 0.1, 1]];
|
||||
_genericMessages pushback [localize LSTRING(Status_Lost_Blood), [1, 0.1, 0.1, 1]];
|
||||
};
|
||||
|
||||
if (((_target getvariable [QGVAR(tourniquets), [0,0,0,0,0,0]]) select _selectionN) > 0) then {
|
||||
_genericMessages pushback [localize STRING(Status_Tourniquet_Applied), [0.77, 0.51, 0.08, 1]];
|
||||
_genericMessages pushback [localize LSTRING(Status_Tourniquet_Applied), [0.77, 0.51, 0.08, 1]];
|
||||
};
|
||||
if (_target getvariable[QGVAR(hasPain), false]) then {
|
||||
_genericMessages pushback [localize STRING(Status_Pain), [1, 1, 1, 1]];
|
||||
_genericMessages pushback [localize LSTRING(Status_Pain), [1, 1, 1, 1]];
|
||||
};
|
||||
|
||||
_totalIvVolume = 0;
|
||||
@ -77,7 +77,7 @@ if (_show) then {
|
||||
};
|
||||
}foreach GVAR(IVBags);
|
||||
if (_totalIvVolume >= 1) then {
|
||||
_genericMessages pushback [format[localize STRING(receivingIvVolume), floor _totalIvVolume], [1, 1, 1, 1]];
|
||||
_genericMessages pushback [format[localize LSTRING(receivingIvVolume), floor _totalIvVolume], [1, 1, 1, 1]];
|
||||
};
|
||||
|
||||
_damaged = [false, false, false, false, false, false];
|
||||
@ -133,17 +133,17 @@ if (_show) then {
|
||||
if (_target getHitPointDamage _x > 0 && {_forEachIndex == _selectionN}) then {
|
||||
_pointDamage = _target getHitPointDamage _x;
|
||||
_severity = switch (true) do {
|
||||
case (_pointDamage > 0.5): {localize STRING(HeavilyWounded)};
|
||||
case (_pointDamage > 0.1): {localize STRING(LightlyWounded)};
|
||||
default {localize STRING(VeryLightlyWounded)};
|
||||
case (_pointDamage > 0.5): {localize LSTRING(HeavilyWounded)};
|
||||
case (_pointDamage > 0.1): {localize LSTRING(LightlyWounded)};
|
||||
default {localize LSTRING(VeryLightlyWounded)};
|
||||
};
|
||||
_part = localize ([
|
||||
STRING(Head),
|
||||
STRING(Torso),
|
||||
STRING(LeftArm),
|
||||
STRING(RightArm),
|
||||
STRING(LeftLeg),
|
||||
STRING(RightLeg)
|
||||
LSTRING(Head),
|
||||
LSTRING(Torso),
|
||||
LSTRING(LeftArm),
|
||||
LSTRING(RightArm),
|
||||
LSTRING(LeftLeg),
|
||||
LSTRING(RightLeg)
|
||||
] select _forEachIndex);
|
||||
_allInjuryTexts pushBack [format ["%1 %2", _severity, toLower _part], [1,1,1,1]];
|
||||
};
|
||||
@ -186,7 +186,7 @@ if (_show) then {
|
||||
_lbCtrl lbSetColor [_foreachIndex + _amountOfGeneric, _x select 1];
|
||||
}foreach _allInjuryTexts;
|
||||
if (count _allInjuryTexts == 0) then {
|
||||
_lbCtrl lbAdd (localize STRING(NoInjuriesBodypart));
|
||||
_lbCtrl lbAdd (localize LSTRING(NoInjuriesBodypart));
|
||||
};
|
||||
|
||||
_logCtrl = (_display displayCtrl 302);
|
||||
|
@ -58,7 +58,7 @@ if (_show) then {
|
||||
}foreach _log;
|
||||
|
||||
if (count _triageCardTexts == 0) then {
|
||||
_lbCtrl lbAdd (localize STRING(TriageCard_NoEntry));
|
||||
_lbCtrl lbAdd (localize LSTRING(TriageCard_NoEntry));
|
||||
};
|
||||
{
|
||||
_lbCtrl lbAdd _x;
|
||||
|
@ -17,10 +17,10 @@ private ["_unit","_return","_status"];
|
||||
_unit = _this select 0;
|
||||
_status = _unit getvariable [QGVAR(triageLevel), -1];
|
||||
_return = switch (_status) do {
|
||||
case 1: {[localize STRING(Triage_Status_Minor), 1, [0, 0.5, 0, 0.9]]};
|
||||
case 2: {[localize STRING(Triage_Status_Delayed), 2, [0.7, 0.5, 0, 0.9]]};
|
||||
case 3: {[localize STRING(Triage_Status_Immediate), 3, [0.4, 0.07, 0.07, 0.9]]};
|
||||
case 4: {[localize STRING(Triage_Status_Deceased), 4, [0, 0, 0, 0.9]]};
|
||||
default {[localize STRING(Triage_Status_None), 0, [0, 0, 0, 0.9]]};
|
||||
case 1: {[localize LSTRING(Triage_Status_Minor), 1, [0, 0.5, 0, 0.9]]};
|
||||
case 2: {[localize LSTRING(Triage_Status_Delayed), 2, [0.7, 0.5, 0, 0.9]]};
|
||||
case 3: {[localize LSTRING(Triage_Status_Immediate), 3, [0.4, 0.07, 0.07, 0.9]]};
|
||||
case 4: {[localize LSTRING(Triage_Status_Deceased), 4, [0, 0, 0, 0.9]]};
|
||||
default {[localize LSTRING(Triage_Status_None), 0, [0, 0, 0, 0.9]]};
|
||||
};
|
||||
_return;
|
||||
|
@ -37,6 +37,6 @@ if !([_target] call FUNC(hasMedicalEnabled)) exitwith {
|
||||
};
|
||||
}foreach _items;*/
|
||||
|
||||
[_target, "activity", STRING(Activity_bandagedPatient), [[_caller] call EFUNC(common,getName)]] call FUNC(addToLog);
|
||||
[_target, "activity", LSTRING(Activity_bandagedPatient), [[_caller] call EFUNC(common,getName)]] call FUNC(addToLog);
|
||||
|
||||
true;
|
||||
|
@ -32,6 +32,6 @@ _items = _this select 4;
|
||||
};
|
||||
}foreach _items;
|
||||
|
||||
[_target, "activity", STRING(Activity_usedItem), [[_caller] call EFUNC(common,getName), _className]] call FUNC(addToLog);
|
||||
[_target, "activity", LSTRING(Activity_usedItem), [[_caller] call EFUNC(common,getName), _className]] call FUNC(addToLog);
|
||||
|
||||
true;
|
||||
|
@ -29,4 +29,4 @@ if (count _items == 0) exitwith {};
|
||||
_removeItem = _items select 0;
|
||||
[[_target, _className], QUOTE(DFUNC(treatmentIVLocal)), _target] call EFUNC(common,execRemoteFnc); /* TODO Replace by event system */
|
||||
[_target, _removeItem] call FUNC(addToTriageCard);
|
||||
[_target, "activity", STRING(Activity_gaveIV), [[_caller] call EFUNC(common,getName)]] call FUNC(addToLog);
|
||||
[_target, "activity", LSTRING(Activity_gaveIV), [[_caller] call EFUNC(common,getName)]] call FUNC(addToLog);
|
||||
|
@ -43,7 +43,7 @@ _removeItem = _items select 0;
|
||||
[[_target, _removeItem, _selectionName], QUOTE(DFUNC(treatmentTourniquetLocal)), _target] call EFUNC(common,execRemoteFnc); /* TODO Replace by event system */
|
||||
|
||||
[_target, _removeItem] call FUNC(addToTriageCard);
|
||||
[_target, "activity", STRING(Activity_appliedTourniquet), [[_caller] call EFUNC(common,getName)]] call FUNC(addToLog);
|
||||
[_target, "activity", LSTRING(Activity_appliedTourniquet), [[_caller] call EFUNC(common,getName)]] call FUNC(addToLog);
|
||||
|
||||
|
||||
true;
|
||||
|
@ -4,7 +4,7 @@
|
||||
if (!hasInterface) exitWith {};
|
||||
|
||||
//Add Keybinds:
|
||||
["ACE3 Equipment", QGVAR(openGPS), (localize STRING(toggleUnit)),
|
||||
["ACE3 Equipment", QGVAR(openGPS), (localize LSTRING(toggleUnit)),
|
||||
{
|
||||
// canInteractWith (can use on map)
|
||||
if !([ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
@ -17,7 +17,7 @@ if (!hasInterface) exitWith {};
|
||||
{false},
|
||||
[0xC7, [false, false, false]], false] call cba_fnc_addKeybind; //Home Key
|
||||
|
||||
["ACE3 Equipment", QGVAR(closeGPS), (localize STRING(closeUnit)),
|
||||
["ACE3 Equipment", QGVAR(closeGPS), (localize LSTRING(closeUnit)),
|
||||
{
|
||||
// canInteractWith (can use on map)
|
||||
if !([ACE_player, objNull, ["notOnMap", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
|
@ -88,10 +88,10 @@ if (GVAR(currentApplicationPage) == APP_MODE_MARK) then {
|
||||
|
||||
|
||||
if ((count GVAR(newWaypointPosition)) == 0) then {
|
||||
(_display displayCtrl IDC_MODEMARK_HEADER) ctrlSetText (localize STRING(wpEnterCords));
|
||||
(_display displayCtrl IDC_MODEMARK_HEADER) ctrlSetText (localize LSTRING(wpEnterCords));
|
||||
(_display displayCtrl IDC_MODEMARK_CORDSEDIT) ctrlSetText "";
|
||||
} else {
|
||||
(_display displayCtrl IDC_MODEMARK_HEADER) ctrlSetText format [(localize STRING(wpEnterName)), mapGridPosition GVAR(newWaypointPosition)];
|
||||
(_display displayCtrl IDC_MODEMARK_HEADER) ctrlSetText format [(localize LSTRING(wpEnterName)), mapGridPosition GVAR(newWaypointPosition)];
|
||||
(_display displayCtrl IDC_MODEMARK_CORDSEDIT) ctrlSetText format ["[%1]", mapGridPosition GVAR(newWaypointPosition)];
|
||||
};
|
||||
ctrlSetFocus (_display displayCtrl IDC_MODEMARK_CORDSEDIT);
|
||||
|
@ -181,18 +181,18 @@ case (APP_MODE_SETUP): {
|
||||
_settingListBox = _display displayCtrl IDC_MODESETTINGS;
|
||||
lbClear _settingListBox;
|
||||
|
||||
_settingListBox lbAdd (localize STRING(settingUseMils));
|
||||
_settingListBox lbAdd (localize LSTRING(settingUseMils));
|
||||
if (GVAR(settingUseMils)) then {
|
||||
_settingListBox lbSetTextRight [0, (localize STRING(settingMils))];
|
||||
_settingListBox lbSetTextRight [0, (localize LSTRING(settingMils))];
|
||||
} else {
|
||||
_settingListBox lbSetTextRight [0, (localize STRING(settingDegrees))];
|
||||
_settingListBox lbSetTextRight [0, (localize LSTRING(settingDegrees))];
|
||||
};
|
||||
|
||||
_settingListBox lbAdd (localize STRING(settingShowWP));
|
||||
_settingListBox lbAdd (localize LSTRING(settingShowWP));
|
||||
if (GVAR(settingShowAllWaypointsOnMap)) then {
|
||||
_settingListBox lbSetTextRight [1, (localize STRING(settingOn))];
|
||||
_settingListBox lbSetTextRight [1, (localize LSTRING(settingOn))];
|
||||
} else {
|
||||
_settingListBox lbSetTextRight [1, (localize STRING(settingOff))];
|
||||
_settingListBox lbSetTextRight [1, (localize LSTRING(settingOff))];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -51,7 +51,7 @@ _fireModes = getArray (configFile >> "CfgWeapons" >> _tubeWeaponName >> "modes")
|
||||
_currentFireMode = (weaponState [_mortarVeh, [0]]) select 2;
|
||||
_currentChargeMode = _fireModes find _currentFireMode;
|
||||
|
||||
_text = format ["<t size='0.8'>%1: %2 <img image='%3'/></t>", (localize STRING(rangetable_charge)), _currentChargeMode, QUOTE(PATHTOF(UI\ui_charges.paa))];
|
||||
_text = format ["<t size='0.8'>%1: %2 <img image='%3'/></t>", (localize LSTRING(rangetable_charge)), _currentChargeMode, QUOTE(PATHTOF(UI\ui_charges.paa))];
|
||||
_chargeText ctrlSetStructuredText parseText _text;
|
||||
if (shownArtilleryComputer && {!GVAR(allowComputerRangefinder)}) then {
|
||||
//Don't like this solution, but it works
|
||||
|
@ -39,7 +39,7 @@ _muzzleVelocities = [];
|
||||
_showToPlayer = getNumber (configFile >> "CfgWeapons" >> _weaponName >> _x >> "showToPlayer");
|
||||
if (_showToPlayer == 1) then {
|
||||
_artilleryCharge = getNumber (configFile >> "CfgWeapons" >> _weaponName >> _x >> "artilleryCharge");
|
||||
LIST_CHARGE lbAdd format ["%1: %2", (localize STRING(rangetable_charge)), (count _muzzleVelocities)];
|
||||
LIST_CHARGE lbAdd format ["%1: %2", (localize LSTRING(rangetable_charge)), (count _muzzleVelocities)];
|
||||
LIST_CHARGE lbSetData [(count _muzzleVelocities), str (_artilleryCharge * _initSpeed)];
|
||||
_muzzleVelocities pushBack _artilleryCharge;
|
||||
};
|
||||
|
@ -14,13 +14,13 @@ if (!hasInterface) exitWith {};
|
||||
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
||||
};
|
||||
|
||||
_dialog displayCtrl 111 ctrlSetText format ["%1 - %2 %3", [ACE_player] call EFUNC(common,getName), localize STRING(Weight), [ACE_player] call FUNC(getWeight)];
|
||||
_dialog displayCtrl 111 ctrlSetText format ["%1 - %2 %3", [ACE_player] call EFUNC(common,getName), localize LSTRING(Weight), [ACE_player] call FUNC(getWeight)];
|
||||
|
||||
}, 0, _this select 0] call CBA_fnc_addPerFrameHandler;
|
||||
|
||||
}] call EFUNC(common,addEventHandler);
|
||||
|
||||
["ACE3 Movement", QGVAR(climb), localize STRING(Climb),
|
||||
["ACE3 Movement", QGVAR(climb), localize LSTRING(Climb),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
|
@ -20,7 +20,7 @@ private "_unit";
|
||||
_unit = _this select 0;
|
||||
|
||||
if !([_unit] call FUNC(canClimb)) exitWith {
|
||||
[localize STRING(CanNotClimb)] call EFUNC(common,displayTextStructured);
|
||||
[localize LSTRING(CanNotClimb)] call EFUNC(common,displayTextStructured);
|
||||
};
|
||||
|
||||
if !(_unit getVariable [QGVAR(isClimbInit), false]) then {
|
||||
|
@ -8,7 +8,7 @@ if (!hasInterface) exitWith {};
|
||||
GVAR(ShowNamesTime) = -10;
|
||||
|
||||
// Add keybinds
|
||||
["ACE3 Common", QGVAR(showNameTags), localize STRING(ShowNames),
|
||||
["ACE3 Common", QGVAR(showNameTags), localize LSTRING(ShowNames),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
|
@ -37,7 +37,7 @@ GVAR(ppEffectMuzzleFlash) ppEffectCommit 0;
|
||||
["playerTurretChanged", {_this call FUNC(updatePPEffects)}] call EFUNC(common,addEventHandler);
|
||||
|
||||
// Add keybinds
|
||||
["ACE3 Equipment", QGVAR(IncreaseNVGBrightness), localize STRING(IncreaseNVGBrightness),
|
||||
["ACE3 Equipment", QGVAR(IncreaseNVGBrightness), localize LSTRING(IncreaseNVGBrightness),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, ["isNotEscorting", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
@ -51,7 +51,7 @@ GVAR(ppEffectMuzzleFlash) ppEffectCommit 0;
|
||||
{false},
|
||||
[201, [false, false, true]], false] call cba_fnc_addKeybind; //PageUp + ALT
|
||||
|
||||
["ACE3 Equipment", QGVAR(DecreaseNVGBrightness), localize STRING(DecreaseNVGBrightness),
|
||||
["ACE3 Equipment", QGVAR(DecreaseNVGBrightness), localize LSTRING(DecreaseNVGBrightness),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, ["isNotEscorting", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
|
@ -29,5 +29,5 @@ _player setVariable [QGVAR(NVGBrightness), _brightness, false];
|
||||
GVAR(ppEffectNVGBrightness) ppEffectAdjust [1, 1, _brightness / 4, [0, 0, 0, 0], [0, 0, 0, 1], [0, 0, 0, 1]];
|
||||
GVAR(ppEffectNVGBrightness) ppEffectCommit 0;
|
||||
|
||||
[format [(localize STRING(NVGBrightness)), (_brightness * 100)]] call EFUNC(common,displayTextStructured);
|
||||
[format [(localize LSTRING(NVGBrightness)), (_brightness * 100)]] call EFUNC(common,displayTextStructured);
|
||||
playSound "ACE_Sound_Click";
|
||||
|
@ -75,6 +75,6 @@ FUNC(clipboardExport) = {
|
||||
};
|
||||
[_compiledConfig] call FUNC(clipboardExport);
|
||||
|
||||
[STRING(settingsExported)] call EFUNC(common,displayTextStructured);
|
||||
[LSTRING(settingsExported)] call EFUNC(common,displayTextStructured);
|
||||
|
||||
|
||||
|
@ -26,7 +26,7 @@ _settingsMenu = uiNamespace getVariable 'ACE_settingsMenu';
|
||||
|
||||
switch (GVAR(optionMenu_openTab)) do {
|
||||
case (MENU_TAB_OPTIONS): {
|
||||
_localizedHeader = format ["%1: %2", (localize STRING(OpenConfigMenu)), (localize STRING(TabOptions))];
|
||||
_localizedHeader = format ["%1: %2", (localize LSTRING(OpenConfigMenu)), (localize LSTRING(TabOptions))];
|
||||
ctrlSetText [13, _localizedHeader];
|
||||
lbClear 400;
|
||||
|
||||
@ -39,7 +39,7 @@ case (MENU_TAB_OPTIONS): {
|
||||
(_settingsMenu displayCtrl 413) ctrlShow false;
|
||||
};
|
||||
case (MENU_TAB_COLORS): {
|
||||
_localizedHeader = format ["%1: %2", (localize STRING(OpenConfigMenu)), (localize STRING(TabColors))];
|
||||
_localizedHeader = format ["%1: %2", (localize LSTRING(OpenConfigMenu)), (localize LSTRING(TabColors))];
|
||||
ctrlSetText [13, _localizedHeader];
|
||||
|
||||
lbClear 400;
|
||||
|
@ -26,7 +26,7 @@ _settingsMenu = uiNamespace getVariable 'ACE_serverSettingsMenu';
|
||||
|
||||
switch (GVAR(optionMenu_openTab)) do {
|
||||
case (MENU_TAB_SERVER_OPTIONS): {
|
||||
_localizedHeader = format ["%1: %2", (localize STRING(OpenConfigMenu)), (localize STRING(TabOptions))];
|
||||
_localizedHeader = format ["%1: %2", (localize LSTRING(OpenConfigMenu)), (localize LSTRING(TabOptions))];
|
||||
ctrlSetText [13, _localizedHeader];
|
||||
lbClear 400;
|
||||
|
||||
@ -43,7 +43,7 @@ case (MENU_TAB_SERVER_OPTIONS): {
|
||||
(_settingsMenu displayCtrl 416) ctrlEnable false;
|
||||
};
|
||||
case (MENU_TAB_SERVER_COLORS): {
|
||||
_localizedHeader = format ["%1: %2", (localize STRING(OpenConfigMenu)), (localize STRING(TabColors))];
|
||||
_localizedHeader = format ["%1: %2", (localize LSTRING(OpenConfigMenu)), (localize LSTRING(TabColors))];
|
||||
ctrlSetText [13, _localizedHeader];
|
||||
|
||||
lbClear 400;
|
||||
@ -67,7 +67,7 @@ case (MENU_TAB_SERVER_COLORS): {
|
||||
(_settingsMenu displayCtrl 416) ctrlEnable false;
|
||||
};
|
||||
case (MENU_TAB_SERVER_VALUES): {
|
||||
_localizedHeader = format ["%1: %2", (localize STRING(OpenConfigMenu)), (localize STRING(TabValues))];
|
||||
_localizedHeader = format ["%1: %2", (localize LSTRING(OpenConfigMenu)), (localize LSTRING(TabValues))];
|
||||
ctrlSetText [13, _localizedHeader];
|
||||
|
||||
lbClear 400;
|
||||
|
@ -61,7 +61,7 @@ _menu = uiNamespace getvariable "ACE_serverSettingsMenu";
|
||||
(_menu displayCtrl 1003) ctrlEnable false;
|
||||
|
||||
if (GVAR(ClientSettingsExportIncluded)) then {
|
||||
(_settingsMenu displayCtrl 1102) ctrlSetText localize (STRING(exClientSettings));
|
||||
(_settingsMenu displayCtrl 1102) ctrlSetText localize (LSTRING(exClientSettings));
|
||||
} else {
|
||||
(_settingsMenu displayCtrl 1102) ctrlSetText localize (STRING(inClientSettings));
|
||||
(_settingsMenu displayCtrl 1102) ctrlSetText localize (LSTRING(inClientSettings));
|
||||
};
|
||||
|
@ -56,8 +56,8 @@ if (count _collection > 0) then {
|
||||
// Created disable/enable options for bools
|
||||
if ((_setting select 1) == "BOOL") then {
|
||||
lbClear 400;
|
||||
lbAdd [400, (localize STRING(Disabled))];
|
||||
lbAdd [400, (localize STRING(Enabled))];
|
||||
lbAdd [400, (localize LSTRING(Disabled))];
|
||||
lbAdd [400, (localize LSTRING(Enabled))];
|
||||
_settingsValue = [0, 1] select _settingsValue;
|
||||
} else {
|
||||
lbClear 400;
|
||||
@ -77,10 +77,10 @@ if (count _collection > 0) then {
|
||||
|
||||
// Created disable/enable options for bools
|
||||
_expectedType = switch (_setting select 1) do {
|
||||
case "STRING": {STRING(stringType)};
|
||||
case "ARRAY": {STRING(arrayType)};
|
||||
case "SCALAR": {STRING(scalarType)};
|
||||
default {STRING(unknownType)};
|
||||
case "STRING": {LSTRING(stringType)};
|
||||
case "ARRAY": {LSTRING(arrayType)};
|
||||
case "SCALAR": {LSTRING(scalarType)};
|
||||
default {LSTRING(unknownType)};
|
||||
};
|
||||
(_settingsMenu displayCtrl 414) ctrlSetText format["%1", _settingsValue];
|
||||
(_settingsMenu displayCtrl 415) ctrlSetText format[localize _expectedType];
|
||||
|
@ -37,7 +37,7 @@ switch (GVAR(optionMenu_openTab)) do {
|
||||
|
||||
// Created disable/enable options for bools
|
||||
_settingsText = if ((_x select 1) == "BOOL") then {
|
||||
[(localize STRING(Disabled)), (localize STRING(Enabled))] select _settingsValue;
|
||||
[(localize LSTRING(Disabled)), (localize LSTRING(Enabled))] select _settingsValue;
|
||||
} else {
|
||||
(_x select 5) select _settingsValue;
|
||||
};
|
||||
|
@ -56,8 +56,8 @@ if (count _collection > 0) then {
|
||||
// Created disable/enable options for bools
|
||||
if ((_setting select 1) == "BOOL") then {
|
||||
lbClear 400;
|
||||
lbAdd [400, (localize STRING(Disabled))];
|
||||
lbAdd [400, (localize STRING(Enabled))];
|
||||
lbAdd [400, (localize LSTRING(Disabled))];
|
||||
lbAdd [400, (localize LSTRING(Enabled))];
|
||||
_settingsValue = [0, 1] select _settingsValue;
|
||||
} else {
|
||||
lbClear 400;
|
||||
|
@ -34,7 +34,7 @@ switch (GVAR(optionMenu_openTab)) do {
|
||||
|
||||
// Created disable/enable options for bools
|
||||
_settingsText = if ((_x select 1) == "BOOL") then {
|
||||
[(localize STRING(Disabled)), (localize STRING(Enabled))] select _settingsValue;
|
||||
[(localize LSTRING(Disabled)), (localize LSTRING(Enabled))] select _settingsValue;
|
||||
} else {
|
||||
(_x select 5) select _settingsValue;
|
||||
};
|
||||
|
@ -4,7 +4,7 @@
|
||||
if !(hasInterface) exitWith {};
|
||||
|
||||
// Add keybinds
|
||||
["ACE3 Weapons", QGVAR(unjamWeapon), localize STRING(UnjamWeapon),
|
||||
["ACE3 Weapons", QGVAR(unjamWeapon), localize LSTRING(UnjamWeapon),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
|
@ -52,6 +52,6 @@ if (_weapon in _jammedWeapons) then {
|
||||
};
|
||||
|
||||
if (GVAR(DisplayTextOnJam)) then {
|
||||
[localize STRING(WeaponUnjammed)] call EFUNC(common,displayTextStructured);
|
||||
[localize LSTRING(WeaponUnjammed)] call EFUNC(common,displayTextStructured);
|
||||
};
|
||||
};
|
||||
|
@ -62,7 +62,7 @@ if (_unit getVariable [QGVAR(JammingActionID), -1] == -1) then {
|
||||
playSound3D ["a3\sounds_f\weapons\Other\dry9.wss", _this select 0];
|
||||
|
||||
if (!(missionNamespace getVariable [QGVAR(knowAboutJam), false]) && {(_this select 1) ammo currentWeapon (_this select 1) > 0} && {GVAR(DisplayTextOnJam)}) then {
|
||||
[localize STRING(WeaponJammed)] call EFUNC(common,displayTextStructured);
|
||||
[localize LSTRING(WeaponJammed)] call EFUNC(common,displayTextStructured);
|
||||
GVAR(knowAboutJam) = true;
|
||||
};
|
||||
};
|
||||
@ -75,7 +75,7 @@ if (_unit getVariable [QGVAR(JammingActionID), -1] == -1) then {
|
||||
[_this select 1, currentWeapon (_this select 1), false] call FUNC(clearJam);
|
||||
};
|
||||
|
||||
//_id = [_unit, format ["<t color=""#FFFF00"" >%1</t>", localize STRING(UnjamWeapon)], "DefaultAction", _condition, _statement, _condition2, _statement2, 10] call EFUNC(common,addActionMenuEventHandler);
|
||||
//_id = [_unit, format ["<t color=""#FFFF00"" >%1</t>", localize LSTRING(UnjamWeapon)], "DefaultAction", _condition, _statement, _condition2, _statement2, 10] call EFUNC(common,addActionMenuEventHandler);
|
||||
_id = [_unit, "DefaultAction", _condition, _statement] call EFUNC(common,addActionEventHandler);
|
||||
|
||||
_unit setVariable [QGVAR(JammingActionID), _id];
|
||||
|
@ -22,4 +22,4 @@ _player playActionNow "GestureDismountMuzzle";
|
||||
_player playAction "GestureMountMuzzle";
|
||||
playSound "ACE_BarrelSwap";
|
||||
|
||||
[10, [_player, _weapon], {(_this select 0) call FUNC(swapBarrelCallback)}, {}, (localize STRING(SwappingBarrel))] call EFUNC(common,progressBar);
|
||||
[10, [_player, _weapon], {(_this select 0) call FUNC(swapBarrelCallback)}, {}, (localize LSTRING(SwappingBarrel))] call EFUNC(common,progressBar);
|
||||
|
@ -16,6 +16,6 @@
|
||||
EXPLODE_2_PVT(_this,_player,_weapon);
|
||||
|
||||
// don't consume the barrel, but rotate through them.
|
||||
[localize STRING(SwappedBarrel), QUOTE(PATHTOF(UI\spare_barrel_ca.paa))] call EFUNC(common,displayTextPicture);
|
||||
[localize LSTRING(SwappedBarrel), QUOTE(PATHTOF(UI\spare_barrel_ca.paa))] call EFUNC(common,displayTextPicture);
|
||||
|
||||
_player setVariable [format [QGVAR(%1), _weapon], [0, 0], false];
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
if (!hasInterface) exitWith {};
|
||||
|
||||
["ACE3 Equipment", QGVAR(showAltimeter), localize STRING(showAltimeter),
|
||||
["ACE3 Equipment", QGVAR(showAltimeter), localize LSTRING(showAltimeter),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, ["isNotEscorting", "isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
|
@ -4,7 +4,7 @@
|
||||
if !(hasInterface) exitWith {};
|
||||
|
||||
// Add keybinds
|
||||
["ACE3 Weapons", QGVAR(checkAmmo), localize STRING(checkAmmo),
|
||||
["ACE3 Weapons", QGVAR(checkAmmo), localize LSTRING(checkAmmo),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, (vehicle ACE_player), ["isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
|
@ -66,4 +66,4 @@ _player playActionNow "PutDown";
|
||||
[_player, _magazineType, _maxAmmo] call EFUNC(common,removeSpecificMagazine);
|
||||
|
||||
// Call progress bar
|
||||
[4, [_player, _target, [_magazineType, _maxAmmo]], _onFinish, _onFailure, (localize STRING(LinkingBelt)), _condition] call EFUNC(common,progressBar);
|
||||
[4, [_player, _target, [_magazineType, _maxAmmo]], _onFinish, _onFailure, (localize LSTRING(LinkingBelt)), _condition] call EFUNC(common,progressBar);
|
||||
|
@ -30,7 +30,7 @@ _loadableMissiles = [_unit, _weapon] call FUNC(getLoadableMissiles);
|
||||
private ["_name", "_displayName", "_statement", "_condition", "_action"];
|
||||
|
||||
_name = format [QGVAR(Missile_%1), _x];
|
||||
_displayName = format [localize STRING(LoadMagazine), getText (configFile >> "CfgMagazines" >> _x >> "displayName")];
|
||||
_displayName = format [localize LSTRING(LoadMagazine), getText (configFile >> "CfgMagazines" >> _x >> "displayName")];
|
||||
|
||||
_statement = {
|
||||
(_this select 2) call DFUNC(load);
|
||||
|
@ -34,15 +34,15 @@ _onSuccess = {
|
||||
(_this select 0 select 0) removeMagazine (_this select 0 select 3);
|
||||
["reloadLauncher", _this select 0 select 1, _this select 0] call DEFUNC(common,targetEvent);
|
||||
|
||||
[localize STRING(LauncherLoaded)] call DEFUNC(common,displayTextStructured);
|
||||
[localize LSTRING(LauncherLoaded)] call DEFUNC(common,displayTextStructured);
|
||||
};
|
||||
|
||||
_onFailure = {
|
||||
[localize ESTRING(common,ActionAborted)] call DEFUNC(common,displayTextStructured);
|
||||
[localize LESTRING(common,ActionAborted)] call DEFUNC(common,displayTextStructured);
|
||||
};
|
||||
|
||||
_condition = {
|
||||
(_this select 0) call DFUNC(canLoad) && {(_this select 0 select 0) distance (_this select 0 select 1) < 4}
|
||||
};
|
||||
|
||||
[_reloadTime, [_unit, _target, _weapon, _magazine], _onSuccess, _onFailure, localize STRING(LoadingLauncher), _condition] call EFUNC(common,progressBar);
|
||||
[_reloadTime, [_unit, _target, _weapon, _magazine], _onSuccess, _onFailure, localize LSTRING(LoadingLauncher), _condition] call EFUNC(common,progressBar);
|
||||
|
@ -38,7 +38,7 @@ if (count _position == 0) then {_position = getPosATL _unit};
|
||||
|
||||
_position set [2, 0];
|
||||
|
||||
[localize STRING(Deploy)] call EFUNC(common,displayTextStructured);
|
||||
[localize LSTRING(Deploy)] call EFUNC(common,displayTextStructured);
|
||||
|
||||
[{
|
||||
_rallypoint = _this select 0;
|
||||
@ -53,6 +53,6 @@ _position set [2, 0];
|
||||
|
||||
["rallypointMoved", [_rallypoint, _side, _position]] call EFUNC(common,globalEvent);
|
||||
|
||||
[localize STRING(Deployed)] call EFUNC(common,displayTextStructured);
|
||||
[localize LSTRING(Deployed)] call EFUNC(common,displayTextStructured);
|
||||
},
|
||||
[_rallypoint, _unit, _position, _rallypoint], 5, 1] call EFUNC(common,waitAndExecute);
|
||||
|
@ -31,4 +31,4 @@ _rallypoint = missionNamespace getVariable [_rallypoint, objNull],
|
||||
if (isNull _rallypoint) exitWith {};
|
||||
|
||||
_unit setPosASL getPosASL _rallypoint;
|
||||
[[localize STRING(TeleportedToRallypoint), localize STRING(TeleportedToBase)] select _toBase] call EFUNC(common,displayTextStructured);
|
||||
[[localize LSTRING(TeleportedToRallypoint), localize LSTRING(TeleportedToBase)] select _toBase] call EFUNC(common,displayTextStructured);
|
||||
|
@ -9,7 +9,7 @@ if (!hasInterface) exitWith {};
|
||||
|
||||
|
||||
// Add keybinds
|
||||
["ACE3 Weapons", QGVAR(safeMode), localize STRING(SafeMode),
|
||||
["ACE3 Weapons", QGVAR(safeMode), localize LSTRING(SafeMode),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, ["isNotEscorting"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
|
@ -47,7 +47,7 @@ if (_unit getVariable [QGVAR(actionID), -1] == -1) then {
|
||||
[_this select 1, currentWeapon (_this select 1), currentMuzzle (_this select 1)] call FUNC(unlockSafety);
|
||||
};
|
||||
|
||||
//_id = [_unit, format ["<t color=""#FFFF00"" >%1</t>", localize STRING(TakeOffSafety)], "DefaultAction", _condition, {}, {true}, _statement, 10] call EFUNC(common,addActionMenuEventHandler);
|
||||
//_id = [_unit, format ["<t color=""#FFFF00"" >%1</t>", localize LSTRING(TakeOffSafety)], "DefaultAction", _condition, {}, {true}, _statement, 10] call EFUNC(common,addActionMenuEventHandler);
|
||||
_id = [_unit, "DefaultAction", _condition, {}] call EFUNC(common,addActionEventHandler);
|
||||
|
||||
_unit setVariable [QGVAR(actionID), _id];
|
||||
@ -62,4 +62,4 @@ if ((typeName _muzzle) == (typeName "")) then {
|
||||
|
||||
private "_picture";
|
||||
_picture = getText (configFile >> "CfgWeapons" >> _weapon >> "picture");
|
||||
[localize STRING(PutOnSafety), _picture] call EFUNC(common,displayTextPicture);
|
||||
[localize LSTRING(PutOnSafety), _picture] call EFUNC(common,displayTextPicture);
|
||||
|
@ -59,4 +59,4 @@ if (inputAction "nextWeapon" > 0) then {
|
||||
|
||||
private "_picture";
|
||||
_picture = getText (configFile >> "CfgWeapons" >> _weapon >> "picture");
|
||||
[localize STRING(TookOffSafety), _picture] call EFUNC(common,displayTextPicture);
|
||||
[localize LSTRING(TookOffSafety), _picture] call EFUNC(common,displayTextPicture);
|
||||
|
@ -33,7 +33,7 @@ if !(hasInterface) exitWith {};
|
||||
|
||||
|
||||
// Add keybinds
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustUpMinor), localize STRING(AdjustUpMinor),
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustUpMinor), localize LSTRING(AdjustUpMinor),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
@ -46,7 +46,7 @@ if !(hasInterface) exitWith {};
|
||||
{false},
|
||||
[201, [false, false, false]], true] call cba_fnc_addKeybind;
|
||||
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustDownMinor), localize STRING(AdjustDownMinor),
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustDownMinor), localize LSTRING(AdjustDownMinor),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
@ -59,7 +59,7 @@ if !(hasInterface) exitWith {};
|
||||
{false},
|
||||
[209, [false, false, false]], true] call cba_fnc_addKeybind;
|
||||
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustLeftMinor), localize STRING(AdjustLeftMinor),
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustLeftMinor), localize LSTRING(AdjustLeftMinor),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
@ -72,7 +72,7 @@ if !(hasInterface) exitWith {};
|
||||
{false},
|
||||
[209, [false, true, false]], true] call cba_fnc_addKeybind;
|
||||
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustRightMinor), localize STRING(AdjustRightMinor),
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustRightMinor), localize LSTRING(AdjustRightMinor),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
@ -85,7 +85,7 @@ if !(hasInterface) exitWith {};
|
||||
{false},
|
||||
[201, [false, true, false]], true] call cba_fnc_addKeybind;
|
||||
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustUpMajor), localize STRING(AdjustUpMajor),
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustUpMajor), localize LSTRING(AdjustUpMajor),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
@ -98,7 +98,7 @@ if !(hasInterface) exitWith {};
|
||||
{false},
|
||||
[201, [true, false, false]], true] call cba_fnc_addKeybind;
|
||||
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustDownMajor), localize STRING(AdjustDownMajor),
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustDownMajor), localize LSTRING(AdjustDownMajor),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
@ -111,7 +111,7 @@ if !(hasInterface) exitWith {};
|
||||
{false},
|
||||
[209, [true, false, false]], true] call cba_fnc_addKeybind;
|
||||
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustLeftMajor), localize STRING(AdjustLeftMajor),
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustLeftMajor), localize LSTRING(AdjustLeftMajor),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
@ -124,7 +124,7 @@ if !(hasInterface) exitWith {};
|
||||
{false},
|
||||
[209, [true, true, false]], true] call cba_fnc_addKeybind;
|
||||
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustRightMajor), localize STRING(AdjustRightMajor),
|
||||
["ACE3 Scope Adjustment", QGVAR(AdjustRightMajor), localize LSTRING(AdjustRightMajor),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
|
@ -41,7 +41,7 @@ if (GVAR(EnableSafeZone)) then {
|
||||
|
||||
// exitWith doesn't exit past the "if(EnableSafeZone)" block
|
||||
if (_leave) exitWith {
|
||||
[localize STRING(TooCloseToEnemy)] call EFUNC(common,displayTextStructured);
|
||||
[localize LSTRING(TooCloseToEnemy)] call EFUNC(common,displayTextStructured);
|
||||
};
|
||||
|
||||
// should switch locality
|
||||
@ -88,7 +88,7 @@ DFUNC(pfhSwitchUnit) = {
|
||||
[[_oldUnit, _oldOwner], QUOTE({(_this select 0) setOwner (_this select 1)}), 1] call EFUNC(common,execRemoteFnc);
|
||||
};
|
||||
|
||||
[localize STRING(SwitchedUnit)] call EFUNC(common,displayTextStructured);
|
||||
[localize LSTRING(SwitchedUnit)] call EFUNC(common,displayTextStructured);
|
||||
|
||||
[(_this select 1)] call cba_fnc_removePerFrameHandler;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// by commy2
|
||||
|
||||
["ACE3 Equipment", QGVAR(AzimuthKey), localize STRING(AzimuthKey),
|
||||
["ACE3 Equipment", QGVAR(AzimuthKey), localize LSTRING(AzimuthKey),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, ["isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
@ -29,7 +29,7 @@
|
||||
[15, [false, false, false]], false, 0] call CBA_fnc_addKeybind; //Tab Key
|
||||
|
||||
|
||||
["ACE3 Equipment", QGVAR(DistanceKey), localize STRING(DistanceKey),
|
||||
["ACE3 Equipment", QGVAR(DistanceKey), localize LSTRING(DistanceKey),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, ["isNotInside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
|
@ -54,7 +54,7 @@ case (_funcType == "canLockpick"): {
|
||||
_returnValue = true;
|
||||
};
|
||||
case (_funcType == "startLockpick"): {
|
||||
[_vehLockpickStrenth, [_unit, _veh, "finishLockpick"], {(_this select 0) call FUNC(lockpick)}, {}, (localize STRING(Action_LockpickInUse)), _condition] call EFUNC(common,progressBar);
|
||||
[_vehLockpickStrenth, [_unit, _veh, "finishLockpick"], {(_this select 0) call FUNC(lockpick)}, {}, (localize LSTRING(Action_LockpickInUse)), _condition] call EFUNC(common,progressBar);
|
||||
_returnValue = true;
|
||||
};
|
||||
case (_funcType == "finishLockpick"): {
|
||||
|
@ -4,7 +4,7 @@
|
||||
if !(hasInterface) exitWith {};
|
||||
|
||||
// Add keybinds
|
||||
["ACE3 Vehicles", QGVAR(speedLimiter), localize STRING(SpeedLimiter),
|
||||
["ACE3 Vehicles", QGVAR(speedLimiter), localize LSTRING(SpeedLimiter),
|
||||
{
|
||||
// Conditions: canInteract
|
||||
if !([ACE_player, objNull, ["isnotinside"]] call EFUNC(common,canInteractWith)) exitWith {false};
|
||||
|
@ -7,12 +7,12 @@ _driver = _this select 0;
|
||||
_vehicle = _this select 1;
|
||||
|
||||
if (GETGVAR(isSpeedLimiter,false)) exitWith {
|
||||
[localize STRING(Off)] call EFUNC(common,displayTextStructured);
|
||||
[localize LSTRING(Off)] call EFUNC(common,displayTextStructured);
|
||||
playSound "ACE_Sound_Click";
|
||||
GVAR(isSpeedLimiter) = false;
|
||||
};
|
||||
|
||||
[localize STRING(On)] call EFUNC(common,displayTextStructured);
|
||||
[localize LSTRING(On)] call EFUNC(common,displayTextStructured);
|
||||
playSound "ACE_Sound_Click";
|
||||
GVAR(isSpeedLimiter) = true;
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user