vector config, DONE

This commit is contained in:
commy2 2015-01-21 23:05:19 +01:00
parent f344c499f5
commit 1737e3e7fa
4 changed files with 30 additions and 0 deletions

View File

@ -27,6 +27,7 @@ PREP(showFallOfShort);
PREP(showText);
PREP(nextMode);
PREP(adjustBrightness);
PREP(showReticle);
GVAR(holdKeyHandler) = -1;
GVAR(isKeyDownAzimuth) = false;

View File

@ -7,6 +7,22 @@ Handles pressing the special vector keys.
*/
#include "script_component.hpp"
// set vector config settings
switch (GVAR(modeReticle)) do {
case (0): {
[false] call FUNC(adjustBrightness);
[false] call FUNC(showReticle);
};
case (1): {
[false] call FUNC(adjustBrightness);
[true] call FUNC(showReticle);
};
case (2): {
[true] call FUNC(adjustBrightness);
[true] call FUNC(showReticle);
};
};
private "_fnc_setPFH";
_fnc_setPFH = {
if (GVAR(holdKeyHandler) > -1) then {

View File

@ -293,12 +293,15 @@ switch (_this select 0) do {
switch (GVAR(configTemp)) do {
case (0): {
[false] call FUNC(adjustBrightness);
[false] call FUNC(showReticle);
};
case (1): {
[false] call FUNC(adjustBrightness);
[true] call FUNC(showReticle);
};
case (2): {
[true] call FUNC(adjustBrightness);
[true] call FUNC(showReticle);
};
};

View File

@ -0,0 +1,10 @@
/*
by commy2
Shows or hides the electronic reticle.
*/
#include "script_component.hpp"
((GETUVAR(ACE_dlgVector,displayNull)) displayCtrl 1302) ctrlSetText (["", QUOTE(PATHTOF(rsc\vector_crosshair.paa))] select (_this select 0));