mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
vector config, DONE
This commit is contained in:
parent
f344c499f5
commit
1737e3e7fa
@ -27,6 +27,7 @@ PREP(showFallOfShort);
|
||||
PREP(showText);
|
||||
PREP(nextMode);
|
||||
PREP(adjustBrightness);
|
||||
PREP(showReticle);
|
||||
|
||||
GVAR(holdKeyHandler) = -1;
|
||||
GVAR(isKeyDownAzimuth) = false;
|
||||
|
@ -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 {
|
||||
|
@ -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);
|
||||
};
|
||||
};
|
||||
|
||||
|
10
addons/vector/functions/fnc_showReticle.sqf
Normal file
10
addons/vector/functions/fnc_showReticle.sqf
Normal 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));
|
Loading…
Reference in New Issue
Block a user