mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Repair - Fix displayed text when repairing lights (#9555)
This commit is contained in:
parent
12f0cbbef9
commit
17daea0ff8
@ -36,6 +36,9 @@ if (_track) then {
|
||||
//IGNORE_STRING_WARNING(str_ace_repair_hit);
|
||||
private _text = LSTRING(Hit);
|
||||
|
||||
// Remove # prefix
|
||||
if ((_hitpoint select [0, 1]) == "#") then { _hitPoint = _hitPoint select [1] };
|
||||
|
||||
// Remove "Hit" from hitpoint name if one exists
|
||||
private _toFind = if ((toLower _hitPoint) find "hit" == 0) then {
|
||||
[_hitPoint, 3] call CBA_fnc_substr
|
||||
|
@ -1,4 +1,5 @@
|
||||
private _category = format ["ACE %1", LLSTRING(Repair)];
|
||||
private _catFullRepair = [_category, LLSTRING(fullRepair)];
|
||||
|
||||
[
|
||||
QGVAR(enabled), "CHECKBOX",
|
||||
@ -102,7 +103,7 @@ private _category = format ["ACE %1", LLSTRING(Repair)];
|
||||
[
|
||||
QGVAR(fullRepairLocation), "LIST",
|
||||
[LSTRING(fullRepairLocation), LSTRING(fullRepairLocation_description)],
|
||||
_category,
|
||||
_catFullRepair,
|
||||
[[0,1,2,3,4],[LSTRING(useAnywhere), LSTRING(repairVehicleOnly), LSTRING(repairFacilityOnly), LSTRING(vehicleAndFacility), ELSTRING(common,Disabled)],2], // [values, titles, defaultIndex]
|
||||
true, // isGlobal
|
||||
{[QGVAR(fullRepairLocation), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
||||
@ -111,7 +112,7 @@ private _category = format ["ACE %1", LLSTRING(Repair)];
|
||||
[
|
||||
QGVAR(engineerSetting_fullRepair), "LIST",
|
||||
[LSTRING(engineerSetting_fullRepair_name), LSTRING(engineerSetting_fullRepair_description)],
|
||||
_category,
|
||||
_catFullRepair,
|
||||
[[0,1,2],[LSTRING(engineerSetting_anyone), LSTRING(engineerSetting_EngineerOnly), LSTRING(engineerSetting_AdvancedOnly)],2], // [values, titles, defaultIndex]
|
||||
true, // isGlobal
|
||||
{[QGVAR(engineerSetting_fullRepair), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
||||
@ -120,7 +121,7 @@ private _category = format ["ACE %1", LLSTRING(Repair)];
|
||||
[
|
||||
QGVAR(timeCoefficientFullRepair), "SLIDER",
|
||||
[LSTRING(timeCoefficientFullRepair_name), LSTRING(timeCoefficientFullRepair_description)],
|
||||
_category,
|
||||
_catFullRepair,
|
||||
[0,3,1.5,2],
|
||||
true
|
||||
] call CBA_fnc_addSetting;
|
||||
@ -157,7 +158,7 @@ private _category = format ["ACE %1", LLSTRING(Repair)];
|
||||
QGVAR(fullRepairRequiredItems),
|
||||
"LIST",
|
||||
[LSTRING(FullRepairRequiredItems_DisplayName), LSTRING(FullRepairRequiredItems_Description)],
|
||||
_category,
|
||||
_catFullRepair,
|
||||
[[[], [ANY_TOOLKIT_FAKECLASS]], ["STR_A3_None", "STR_A3_CfgWeapons_Toolkit0"], 1],
|
||||
true
|
||||
] call CBA_fnc_addSetting;
|
||||
|
@ -505,19 +505,19 @@
|
||||
<Chinese>完整維修部分</Chinese>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Repair_RepairedPartially">
|
||||
<English>Partially repaired %1</English>
|
||||
<English>Partially repaired part</English>
|
||||
<German>Bauteil zum Teil repariert</German>
|
||||
<Polish>Częściowo naprawiono: %1</Polish>
|
||||
<Portuguese>%1 parcialmente reparado</Portuguese>
|
||||
<Russian>Частично отремонтировано: %1</Russian>
|
||||
<Spanish>Parcialmente reparada %1</Spanish>
|
||||
<Czech>%1 - částečně opraveno</Czech>
|
||||
<Italian>%1 parzialmente riparato</Italian>
|
||||
<French>%1 partiellement réparé(e).</French>
|
||||
<Japanese>%1 を部分的に修理しました</Japanese>
|
||||
<Korean>%1 부분적으로 수리됨</Korean>
|
||||
<Chinesesimp>%1已完成部分维修</Chinesesimp>
|
||||
<Chinese>%1已完成部分維修</Chinese>
|
||||
<Polish>Częściowo naprawiono część</Polish>
|
||||
<Portuguese>Parte parcialmente reparado</Portuguese>
|
||||
<Russian>Частично отремонтировано часть</Russian>
|
||||
<Spanish>Parcialmente reparada parte</Spanish>
|
||||
<Czech>Díl částečně opraveno</Czech>
|
||||
<Italian>Parte parzialmente riparato</Italian>
|
||||
<French>Pièce partiellement réparé(e).</French>
|
||||
<Japanese>部品 を部分的に修理しました</Japanese>
|
||||
<Korean>부품 부분적으로 수리됨</Korean>
|
||||
<Chinesesimp>零件已完成部分维修</Chinesesimp>
|
||||
<Chinese>零件已完成部分維修</Chinese>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Repair_RepairedHitPointFully">
|
||||
<English>Fully repaired %1</English>
|
||||
@ -583,6 +583,22 @@
|
||||
<Chinese>車殼</Chinese>
|
||||
<Turkish>Gövde</Turkish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Repair_HitLight">
|
||||
<English>Light</English>
|
||||
<Chinese>輕</Chinese>
|
||||
<French>Léger</French>
|
||||
<Spanish>Claro</Spanish>
|
||||
<Italian>Chiaro</Italian>
|
||||
<Polish>Light</Polish>
|
||||
<Russian>Светлый</Russian>
|
||||
<German>Hell</German>
|
||||
<Czech>Světlá</Czech>
|
||||
<Portuguese>Claro</Portuguese>
|
||||
<Korean>밝은</Korean>
|
||||
<Chinesesimp>轻型</Chinesesimp>
|
||||
<Japanese>軽</Japanese>
|
||||
<Turkish>Işık</Turkish>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Repair_HitEngine">
|
||||
<English>Engine</English>
|
||||
<German>Motor</German>
|
||||
|
Loading…
Reference in New Issue
Block a user