(8d282f4cc) Hide the crew area and the chat box when using a controller (= aiming with a turret or similar item).

This commit is contained in:
Joonas Rikkonen
2019-04-10 15:13:25 +03:00
parent 488fded57f
commit 9f55da3677
4 changed files with 107 additions and 33 deletions
@@ -206,6 +206,7 @@ namespace Barotrauma.Items.Components
cam.OffsetAmount = MathHelper.Lerp(cam.OffsetAmount, (focusTarget as Item).Prefab.OffsetOnSelected, deltaTime * 10.0f);
}
HideHUDs(true);
#endif
if (!character.IsRemotePlayer || character.ViewTarget == focusTarget)
@@ -273,6 +274,7 @@ namespace Barotrauma.Items.Components
if (character.SelectedConstruction == this.item) character.SelectedConstruction = null;
character.AnimController.Anim = AnimController.Animation.None;
HideHUDs(false);
}
public override bool Select(Character activator)
@@ -338,5 +340,7 @@ namespace Barotrauma.Items.Components
limbPositions[i] = new LimbPos(limbPositions[i].limbType, flippedPos);
}
}
partial void HideHUDs(bool value);
}
}