mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
disable map cursor coordinates in mp
This commit is contained in:
parent
b18bcf8835
commit
a47cdb9738
@ -19,15 +19,4 @@ call FUNC(determineZoom);
|
|||||||
((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ["Draw", {[] call FUNC(updateMapEffects);}];
|
((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ["Draw", {[] call FUNC(updateMapEffects);}];
|
||||||
};
|
};
|
||||||
|
|
||||||
// Note: doesn't work on postInit in SP, therefore use default setting
|
|
||||||
(findDisplay 12 displayCtrl 1016) ctrlShow GVAR(mapShowCursorCoordinates);
|
|
||||||
|
|
||||||
["mapDisplayLoaded", {
|
|
||||||
//hint str _this; systemChat str _this; diag_log str _this;
|
|
||||||
|
|
||||||
if (_this select 1 == "ingame") then {
|
|
||||||
((_this select 0) displayCtrl 1016) ctrlShow GVAR(mapShowCursorCoordinates);
|
|
||||||
};
|
|
||||||
}] call FUNC(addEventhandler);
|
|
||||||
|
|
||||||
ADDON = true;
|
ADDON = true;
|
||||||
|
@ -8,6 +8,7 @@ PREP(blueForceTrackingUpdate);
|
|||||||
PREP(determineMapLight);
|
PREP(determineMapLight);
|
||||||
PREP(determineZoom);
|
PREP(determineZoom);
|
||||||
PREP(moduleMap);
|
PREP(moduleMap);
|
||||||
|
PREP(onDrawMap);
|
||||||
PREP(updateMapEffects);
|
PREP(updateMapEffects);
|
||||||
|
|
||||||
ADDON = true;
|
ADDON = true;
|
||||||
|
@ -90,6 +90,7 @@ class RscDisplayMainMap {
|
|||||||
// Tweak map styling
|
// Tweak map styling
|
||||||
class controlsBackground {
|
class controlsBackground {
|
||||||
class CA_Map: RscMapControl {
|
class CA_Map: RscMapControl {
|
||||||
|
onDraw = QUOTE([ctrlParent (_this select 0)] call DFUNC(onDrawMap));
|
||||||
#include "MapTweaks.hpp"
|
#include "MapTweaks.hpp"
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -147,6 +148,13 @@ class RscDisplayDiary {
|
|||||||
|
|
||||||
// BRIEFING SCREEN
|
// BRIEFING SCREEN
|
||||||
class RscDisplayGetReady: RscDisplayMainMap {
|
class RscDisplayGetReady: RscDisplayMainMap {
|
||||||
|
// Tweak map styling
|
||||||
|
class controlsBackground {
|
||||||
|
class CA_Map: RscMapControl {
|
||||||
|
onDraw = QUOTE([ctrlParent (_this select 0)] call DFUNC(onDrawMap));
|
||||||
|
//#include "MapTweaks.hpp" @todo Shouldn't this apply to briefing too?
|
||||||
|
};
|
||||||
|
};
|
||||||
// get rid of the "center to player position" - button (as it works even on elite)
|
// get rid of the "center to player position" - button (as it works even on elite)
|
||||||
class controls {
|
class controls {
|
||||||
class TopRight: RscControlsGroup {
|
class TopRight: RscControlsGroup {
|
||||||
|
5
addons/map/functions/fnc_onDrawMap.sqf
Normal file
5
addons/map/functions/fnc_onDrawMap.sqf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
// by commy2
|
||||||
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
diag_log text str diag_frameno;
|
||||||
|
((_this select 0) displayCtrl 1016) ctrlShow GVAR(mapShowCursorCoordinates);
|
Loading…
Reference in New Issue
Block a user