mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
hide clock, use eventhandler
This commit is contained in:
parent
43c54d51e8
commit
29efc13556
@ -99,3 +99,14 @@ 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 ace_common_fnc_addEventhandler
|
||||
|
@ -4,6 +4,4 @@
|
||||
((_this select 0) displayCtrl 1016) ctrlShow GVAR(mapShowCursorCoordinates);
|
||||
|
||||
// hide time when no map in inventory
|
||||
if (!isNull ACE_player) then {
|
||||
((_this select 0) displayCtrl 101) ctrlShow ("ItemWatch" in assignedItems ACE_player);
|
||||
};
|
||||
((_this select 0) displayCtrl 101) ctrlShow GVAR(hasWatch);
|
||||
|
Loading…
Reference in New Issue
Block a user