Advertisement
Phronk

disableCursorCoordsAndElev

Jul 15th, 2023
608
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.64 KB | None | 0 0
  1. //Disable map cursor grid coords/elevation, etc.
  2. []spawn
  3. {
  4.     waitUntil { !isNull ( findDisplay 12 ) };
  5.     disableSerialization;
  6.     ( findDisplay 12 displayCtrl 51 ) ctrlMapCursor [ "Track" , "Arrow" ];
  7.     _ctrls = [];
  8.     _ctrls pushBack 1202;
  9.     _ctrls pushBack 1204;
  10.     _ctrls pushBack 1201;
  11.     _ctrls pushBack 1205;
  12.     (findDisplay 12 displayCtrl 51) ctrlRemoveAllEventHandlers "MouseMoving";
  13.     if ( count _ctrls > 0 ) then
  14.     {
  15.         _display = findDisplay 12;
  16.         {
  17.             _ctrl = _display displayCtrl _x;
  18.             _ctrl ctrlEnable false;
  19.             _ctrl ctrlSetTextColor [ 0 , 0 , 0 , 0 ];
  20.             _ctrl ctrlSetToolTip "";
  21.             _ctrl ctrlCommit 0;
  22.         }forEach _ctrls;
  23.     };
  24. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement