|
223 | 223 |
|
224 | 224 | [[ELSTRING(main,DisplayName), LSTRING(AIControl)], QGVAR(toggleAIPATH), [LSTRING(ToggleAIPATH), LSTRING(ToggleAIPATH_Description)], {
|
225 | 225 | if (!isNull curatorCamera && {!GETMVAR(RscDisplayCurator_search,false)}) then {
|
226 |
| - private _enabled = 0; |
227 |
| - private _disabled = 0; |
228 |
| - |
229 | 226 | {
|
230 | 227 | if (!isPlayer _x && {_x == vehicle _x || {_x == driver vehicle _x}}) then {
|
231 | 228 | private _isPathEnabled = _x checkAIFeature "PATH";
|
232 | 229 | private _eventName = [QEGVAR(common,enableAI), QEGVAR(common,disableAI)] select _isPathEnabled;
|
233 | 230 | [_eventName, [_x, "PATH"], _x] call CBA_fnc_globalEvent;
|
234 | 231 |
|
235 |
| - if (_isPathEnabled) then { |
236 |
| - _disabled = _disabled + 1; |
237 |
| - } else { |
238 |
| - _enabled = _enabled + 1; |
239 |
| - }; |
| 232 | + private _icon = [ |
| 233 | + "\a3\3den\Data\Displays\Display3DEN\PanelRight\modeWaypoints_ca.paa", |
| 234 | + "\a3\3den\Data\CfgWaypoints\hold_ca.paa" |
| 235 | + ] select _isPathEnabled; |
| 236 | + |
| 237 | + [[ |
| 238 | + ["ICON", [_x, _icon]] |
| 239 | + ], 3, _x] call EFUNC(common,drawHint); |
240 | 240 | };
|
241 | 241 | } forEach SELECTED_OBJECTS;
|
242 | 242 |
|
243 |
| - [ |
244 |
| - "%1 - %2: %3 - %4: %5", |
245 |
| - LLSTRING(AIPathToggled), |
246 |
| - LELSTRING(common,Enabled), |
247 |
| - _enabled, |
248 |
| - LELSTRING(common,Disabled), |
249 |
| - _disabled |
250 |
| - ] call EFUNC(common,showMessage); |
251 |
| - |
252 | 243 | true // handled
|
253 | 244 | };
|
254 | 245 | }, {}, [0, [false, false, false]]] call CBA_fnc_addKeybind; // Default: Unbound
|
0 commit comments