mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #2344 from acemod/322hideclock
hide clock on map if no watch in inventory, #414
This commit is contained in:
commit
736be74c2b
@ -99,3 +99,13 @@ call FUNC(determineZoom);
|
||||
};
|
||||
};
|
||||
}] call EFUNC(common,addEventHandler);
|
||||
|
||||
// hide clock on map if player has no watch
|
||||
GVAR(hasWatch) = true;
|
||||
|
||||
["playerInventoryChanged", {
|
||||
if (isNull (_this select 0)) exitWith {
|
||||
GVAR(hasWatch) = true;
|
||||
};
|
||||
GVAR(hasWatch) = "ItemWatch" in (_this select 1 select 17);
|
||||
}] call EFUNC(common,addEventHandler);
|
||||
|
@ -2,3 +2,6 @@
|
||||
#include "script_component.hpp"
|
||||
|
||||
((_this select 0) displayCtrl 1016) ctrlShow GVAR(mapShowCursorCoordinates);
|
||||
|
||||
// hide clock when no watch in inventory, or whatever never ever
|
||||
((_this select 0) displayCtrl 101) ctrlShow GVAR(hasWatch);
|
||||
|
Loading…
Reference in New Issue
Block a user