mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #2430 from acemod/microDagr-customDrawEvents
microDagr - Add ability to access draw event for minimap
This commit is contained in:
commit
d6d64b58b0
@ -3,6 +3,9 @@
|
|||||||
|
|
||||||
if (!hasInterface) exitWith {};
|
if (!hasInterface) exitWith {};
|
||||||
|
|
||||||
|
//Functions that are called for each draw of the map:
|
||||||
|
GVAR(miniMapDrawHandlers) = [];
|
||||||
|
|
||||||
//Add deviceKey entry:
|
//Add deviceKey entry:
|
||||||
private ["_conditonCode", "_toggleCode", "_closeCode"];
|
private ["_conditonCode", "_toggleCode", "_closeCode"];
|
||||||
_conditonCode = {
|
_conditonCode = {
|
||||||
|
@ -48,6 +48,9 @@ if (GVAR(currentApplicationPage) == 1) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
} else { //Map Mode:
|
} else { //Map Mode:
|
||||||
|
//Call all added minimap draw event handlers:
|
||||||
|
{_this call _x;} forEach GVAR(miniMapDrawHandlers);
|
||||||
|
|
||||||
if (GVAR(mapAutoTrackPosition)) then {
|
if (GVAR(mapAutoTrackPosition)) then {
|
||||||
_theMap ctrlMapAnimAdd [0, (GVAR(mapZoom)/_mapSize), (getPosASL ACE_player)];
|
_theMap ctrlMapAnimAdd [0, (GVAR(mapZoom)/_mapSize), (getPosASL ACE_player)];
|
||||||
ctrlMapAnimCommit _theMap;
|
ctrlMapAnimCommit _theMap;
|
||||||
|
Loading…
Reference in New Issue
Block a user