From 127d100628c3573df61d2833cb9238da03ddf7c0 Mon Sep 17 00:00:00 2001 From: ulteq Date: Fri, 10 Apr 2015 20:17:26 +0200 Subject: [PATCH] Overworked the scope adjustment keybinds: *Fixed duplicate actionIDs *Introduced minor/major steps *Reset the stringtable.xml --- addons/scopes/XEH_postInit.sqf | 16 +++--- addons/scopes/stringtable.xml | 96 ++++++---------------------------- 2 files changed, 24 insertions(+), 88 deletions(-) diff --git a/addons/scopes/XEH_postInit.sqf b/addons/scopes/XEH_postInit.sqf index 104024d5b7..50edd494cb 100644 --- a/addons/scopes/XEH_postInit.sqf +++ b/addons/scopes/XEH_postInit.sqf @@ -33,7 +33,7 @@ if !(hasInterface) exitWith {}; // Add keybinds -["ACE3", QGVAR(AdjustUp), localize "STR_ACE_Scopes_AdjustUp", +["ACE3", QGVAR(AdjustUpMinor), localize "STR_ACE_Scopes_AdjustUpMinor", { // Conditions: canInteract if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false}; @@ -48,7 +48,7 @@ if !(hasInterface) exitWith {}; {false}, [201, [false, false, false]], true] call cba_fnc_addKeybind; -["ACE3", QGVAR(AdjustDown), localize "STR_ACE_Scopes_AdjustDown", +["ACE3", QGVAR(AdjustDownMinor), localize "STR_ACE_Scopes_AdjustDownMinor", { // Conditions: canInteract if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false}; @@ -63,7 +63,7 @@ if !(hasInterface) exitWith {}; {false}, [209, [false, false, false]], true] call cba_fnc_addKeybind; -["ACE3", QGVAR(AdjustLeft), localize "STR_ACE_Scopes_AdjustLeft", +["ACE3", QGVAR(AdjustLeftMinor), localize "STR_ACE_Scopes_AdjustLeftMinor", { // Conditions: canInteract if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false}; @@ -78,7 +78,7 @@ if !(hasInterface) exitWith {}; {false}, [209, [false, true, false]], true] call cba_fnc_addKeybind; -["ACE3", QGVAR(AdjustRight), localize "STR_ACE_Scopes_AdjustRight", +["ACE3", QGVAR(AdjustRightMinor), localize "STR_ACE_Scopes_AdjustRightMinor", { // Conditions: canInteract if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false}; @@ -93,7 +93,7 @@ if !(hasInterface) exitWith {}; {false}, [201, [false, true, false]], true] call cba_fnc_addKeybind; -["ACE3", QGVAR(AdjustUp), localize "STR_ACE_Scopes_AdjustUp1mil", +["ACE3", QGVAR(AdjustUpMajor), localize "STR_ACE_Scopes_AdjustUpMajor", { // Conditions: canInteract if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false}; @@ -108,7 +108,7 @@ if !(hasInterface) exitWith {}; {false}, [201, [true, false, false]], true] call cba_fnc_addKeybind; -["ACE3", QGVAR(AdjustDown), localize "STR_ACE_Scopes_AdjustDown1mil", +["ACE3", QGVAR(AdjustDownMajor), localize "STR_ACE_Scopes_AdjustDownMajor", { // Conditions: canInteract if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false}; @@ -123,7 +123,7 @@ if !(hasInterface) exitWith {}; {false}, [209, [true, false, false]], true] call cba_fnc_addKeybind; -["ACE3", QGVAR(AdjustLeft), localize "STR_ACE_Scopes_AdjustLeft1mil", +["ACE3", QGVAR(AdjustLeftMajor), localize "STR_ACE_Scopes_AdjustLeftMajor", { // Conditions: canInteract if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false}; @@ -138,7 +138,7 @@ if !(hasInterface) exitWith {}; {false}, [209, [true, true, false]], true] call cba_fnc_addKeybind; -["ACE3", QGVAR(AdjustRight), localize "STR_ACE_Scopes_AdjustRight1mil", +["ACE3", QGVAR(AdjustRightMajor), localize "STR_ACE_Scopes_AdjustRightMajor", { // Conditions: canInteract if !([ACE_player, objNull, []] call EFUNC(common,canInteractWith)) exitWith {false}; diff --git a/addons/scopes/stringtable.xml b/addons/scopes/stringtable.xml index 474167578e..eb1ff4178c 100644 --- a/addons/scopes/stringtable.xml +++ b/addons/scopes/stringtable.xml @@ -2,93 +2,29 @@ - - Adjust Elevation Up 0.1 mil - Magasság Állítása Felfelé 0.1 mil - Optik-Elevation erhöhen 0.1 mil - Ajustar Elevação Acima 0.1 mil - Hausse + 0.1 mil - Regulacja krzyża w pionie + 0.1 mil - Zvýšit náměr 0.1 mil - Ajustar elevación arriba 0.1 mil - Вверх по вертикали 0.1 mil + + "Minor adjustment up - - Adjust Elevation Down 0.1 mil - Magasság Állítása Lefelé 0.1 mil - Optik-Elevation verringern 0.1 mil - Ajustar Elevação Abaixo 0.1 mil - Hausse - 0.1 mil - Regulacja krzyża w pionie - 0.1 mil - Snížit náměr 0.1 mil - Ajustar elevación abajo 0.1 mil - Вниз по вертикали 0.1 mil + + "Minor adjustment down - - Adjust Windage Right 0.1 mil - Oldalirány Állítása Jobbra 0.1 mil - Optik-Azimuth erhöhen 0.1 mil - Ajustar Azimute à Direita 0.1 mil - Dérive + 0.1 mil - Regulacja krzyża w poziomie + 0.1 mil - Náměr doprava (vítr) 0.1 mil - Ajustar deriva a la derecha 0.1 mil - Вправо на уровне 0.1 mil + + "Minor adjustment right - - Adjust Windage Left 0.1 mil - Oldalirány Állítása Balra 0.1 mil - Optik-Azimuth verringern 0.1 mil - Ajustar Azimute à Esquerda 0.1 mil - Dérive - 0.1 mil - Regulacja krzyża w poziomie - 0.1 mil - Náměr doleva (vítr) 0.1 mil - Ajustar deriva a la izquierda 0.1 mil - Влево на уровне 0.1 mil + + "Minor adjustment left - - Adjust Elevation Up 1 mil - Magasság Állítása Felfelé 1 mil - Optik-Elevation erhöhen 1 mil - Ajustar Elevação Acima 1 mil - Hausse + 1 mil - Regulacja krzyża w pionie + 1 mil - Zvýšit náměr 1 mil - Ajustar elevación arriba 1 mil - Вверх по вертикали 1 mil + + Major adjustment up - - Adjust Elevation Down 1 mil - Magasság Állítása Lefelé 1 mil - Optik-Elevation verringern 1 mil - Ajustar Elevação Abaixo 1 mil - Hausse - 1 mil - Regulacja krzyża w pionie - 1 mil - Snížit náměr 1 mil - Ajustar elevación abajo 1 mil - Вниз по вертикали 1 mil + + Major adjustment down - - Adjust Windage Right 1 mil - Oldalirány Állítása Jobbra 1 mil - Optik-Azimuth erhöhen 1 mil - Ajustar Azimute à Direita 1 mil - Dérive + 1 mil - Regulacja krzyża w poziomie + 1 mil - Náměr doprava (vítr) 1 mil - Ajustar deriva a la derecha 1 mil - Вправо на уровне 1 mil + + Major adjustment right - - Adjust Windage Left 1 mil - Oldalirány Állítása Balra 1 mil - Optik-Azimuth verringern 1 mil - Ajustar Azimute à Esquerda 1 mil - Dérive - 1 mil - Regulacja krzyża w poziomie - 1 mil - Náměr doleva (vítr) 1 mil - Ajustar deriva a la izquierda 1 mil - Влево на уровне 1 mil + + Major adjustment left \ No newline at end of file