disable map cursor coordinates in mp

This commit is contained in:
commy2 2015-04-08 10:45:57 +02:00
parent b18bcf8835
commit a47cdb9738
4 changed files with 15 additions and 12 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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 {

View 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);