12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- #include "\a3\editor_f\Data\Scripts\dikCodes.h"
- private["_display","_dikCode","_shiftKey","_ctrlKey","_altKey","_displayName","_mapTypes","_currentMapType","_currentMapTypeIndex","_ctrlScreen","_markerIndex"];
- _display = _this select 0;
- _displayName = cTabIfOpen select 1;
- _dikCode = _this select 1;
- _shiftKey = _this select 2;
- _ctrlKey = _this select 3;
- _altKey = _this select 4;
- if (_dikCode == DIK_F1 && {_displayName in ["cTab_Tablet_dlg","cTab_Android_dlg"]}) exitWith {
- [_displayName,[["mode","BFT"]]] call cTab_fnc_setSettings;
- true
- };
- if (_dikCode == DIK_F2 && {_displayName in ["cTab_Tablet_dlg"]}) exitWith {
- [_displayName,[["mode","UAV"]]] call cTab_fnc_setSettings;
- true
- };
- if (_dikCode == DIK_F3 && {_displayName in ["cTab_Tablet_dlg"]}) exitWith {
- [_displayName,[["mode","HCAM"]]] call cTab_fnc_setSettings;
- true
- };
- if (_dikCode == DIK_F4 && {_displayName in ["cTab_Tablet_dlg","cTab_Android_dlg"]}) exitWith {
- [_displayName,[["mode","MESSAGE"]]] call cTab_fnc_setSettings;
- true
- };
- if (_dikCode == DIK_F5 && {_displayName in ["cTab_Tablet_dlg","cTab_Android_dlg","cTab_TAD_dlg","cTab_microDAGR_dlg","cTab_FBCB2_dlg"]}) exitWith {
- [_displayName] call cTab_fnc_toggleMapTools;
- true
- };
- if (_dikCode == DIK_F6 && {_displayName in ["cTab_Tablet_dlg","cTab_Android_dlg","cTab_TAD_dlg","cTab_microDAGR_dlg","cTab_FBCB2_dlg"]}) exitWith {
- [_displayName] call cTab_fnc_mapType_toggle;
- true
- };
- if (_dikCode == DIK_F7 && {_displayName in ["cTab_Tablet_dlg","cTab_Android_dlg","cTab_TAD_dlg","cTab_microDAGR_dlg","cTab_FBCB2_dlg"]}) exitWith {
- [_displayName] call cTab_fnc_centerMapOnPlayerPosition;
- true
- };
- if (_dikCode == DIK_DELETE && {cTabCursorOnMap}) exitWith {
- _mapTypes = [_displayName,"mapTypes"] call cTab_fnc_getSettings;
- _currentMapType = [_displayName,"mapType"] call cTab_fnc_getSettings;
- _currentMapTypeIndex = [_mapTypes,_currentMapType] call BIS_fnc_findInPairs;
- _ctrlScreen = _display displayCtrl (_mapTypes select _currentMapTypeIndex select 1);
- _markerIndex = [_ctrlScreen,cTabMapCursorPos] call cTab_fnc_findUserMarker;
- if (_markerIndex != -1) then {
- [call cTab_fnc_getPlayerEncryptionKey,_markerIndex] call cTab_fnc_deleteUserMarker;
- };
- true
- };
- false
|