(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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user