mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
InteractionMenu - Auto Expand First Level
This commit is contained in:
parent
7db5a34b24
commit
554c303be0
@ -78,6 +78,21 @@ if (GVAR(useCursorMenu)) then {
|
|||||||
GVAR(selfMenuOffset) = ((positionCameraToWorld [0, 0, 2]) call EFUNC(common,positionToASL)) vectorDiff
|
GVAR(selfMenuOffset) = ((positionCameraToWorld [0, 0, 2]) call EFUNC(common,positionToASL)) vectorDiff
|
||||||
((positionCameraToWorld [0, 0, 0]) call EFUNC(common,positionToASL));
|
((positionCameraToWorld [0, 0, 0]) call EFUNC(common,positionToASL));
|
||||||
|
|
||||||
|
if (GVAR(menuAnimationSpeed) > 0) then {
|
||||||
|
//Auto expand the first level when self, mounted vehicle or zeus (skips the first animation as there is only one choice)
|
||||||
|
if (GVAR(openedMenuType) == 0) then {
|
||||||
|
if (isNull curatorCamera) then {
|
||||||
|
if (vehicle ACE_player != ACE_player) then {
|
||||||
|
GVAR(menuDepthPath) = [["ACE_SelfActions", (vehicle ACE_player)]];
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
GVAR(menuDepthPath) = [["ACE_ZeusActions", (getAssignedCuratorLogic player)]];
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
GVAR(menuDepthPath) = [["ACE_SelfActions", ACE_player]];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
["interactMenuOpened", [_menuType]] call EFUNC(common,localEvent);
|
["interactMenuOpened", [_menuType]] call EFUNC(common,localEvent);
|
||||||
|
|
||||||
true
|
true
|
||||||
|
Loading…
Reference in New Issue
Block a user