cannonouscrash 12 Posted December 6, 2013 On the map, there is a button in the top right which moves the map to your current location, albeit zoomed out. Does anyone know of way to disable this? Share this post Link to post Share on other sites
Larrow 2821 Posted December 6, 2013 (edited) h = [] spawn { disableSerialization; while {true} do { waitUntil { visibleMap }; _display = uiNamespace getVariable "RSCDiary"; _ctrl = _display displayCtrl 1202; _ctrl ctrlEnable false; _ctrl ctrlsettextcolor [0,0,0,0]; _ctrl ctrlSetTooltip ""; _ctrl ctrlCommit 0; waitUntil { !visibleMap }; }; }; Disables and hides the button. Needs to constantly run (like above) to remove the button each time the map is opened. Edited December 6, 2013 by Larrow updated code to remove buttons tooltip aswell 1 Share this post Link to post Share on other sites
sxp2high 22 Posted December 7, 2013 This is pretty awesome, I've been trying to get rid of that as well. Thanks for posting! :) Share this post Link to post Share on other sites
cannonouscrash 12 Posted December 7, 2013 Cheers Larrow, Will give this ago later on today. Share this post Link to post Share on other sites
seacaptainjim 67 Posted April 6, 2023 Thanks for this Share this post Link to post Share on other sites
Larrow 2821 Posted April 6, 2023 3 hours ago, seacaptainjim said: Thanks for this Better off using some of the new event handlers nowadays rather than this while loop. See addMissionEventHandler Map. Share this post Link to post Share on other sites
seacaptainjim 67 Posted April 6, 2023 Like this? addMissionEventHandler ["Map", {_mapIsOpened; _display = uiNamespace getVariable "RSCDiary"; _ctrl = _display displayCtrl 1202; _ctrl ctrlEnable false; _ctrl ctrlsettextcolor [0,0,0,0]; _ctrl ctrlSetTooltip ""; _ctrl ctrlCommit 0; }; ]; Share this post Link to post Share on other sites
Larrow 2821 Posted April 7, 2023 addMissionEventHandler[ "Map", { params[ "_mapIsOpened" ]; if ( _mapIsOpened ) then { _display = uiNamespace getVariable "RSCDiary"; _ctrl = _display displayCtrl 1202; _ctrl ctrlEnable false; _ctrl ctrlSetTextColor [0,0,0,0]; _ctrl ctrlSetTooltip ""; _ctrl ctrlCommit 0; }; }]; untested 1 Share this post Link to post Share on other sites
seacaptainjim 67 Posted April 7, 2023 works beautifully! Thanks Larrow 🗺️ Share this post Link to post Share on other sites