diff --git a/Barotrauma/BarotraumaClient/Source/Items/CharacterInventory.cs b/Barotrauma/BarotraumaClient/Source/Items/CharacterInventory.cs index 4b232ad92..532e98df2 100644 --- a/Barotrauma/BarotraumaClient/Source/Items/CharacterInventory.cs +++ b/Barotrauma/BarotraumaClient/Source/Items/CharacterInventory.cs @@ -440,16 +440,6 @@ namespace Barotrauma } } - public override void Update(float deltaTime, Camera cam, bool isSubInventory = false) - { - if (!AccessibleWhenAlive && !character.IsDead) - { - syncItemsDelay = Math.Max(syncItemsDelay - deltaTime, 0.0f); - return; - } - - base.Update(deltaTime, cam); - //force personal slots open if an item is running out of battery/fuel/oxygen/etc if (hidePersonalSlots) { @@ -473,6 +463,7 @@ namespace Barotrauma { UpdateSubInventory(deltaTime, highlightedSubInventorySlot.SlotIndex, cam); } + } Rectangle hoverArea = GetSubInventoryHoverArea(highlightedSubInventorySlot); if (highlightedSubInventorySlot.Inventory?.slots == null || (!hoverArea.Contains(PlayerInput.MousePosition))) diff --git a/Barotrauma/BarotraumaClient/Source/Screens/SubEditorScreen.cs b/Barotrauma/BarotraumaClient/Source/Screens/SubEditorScreen.cs index c78088541..8d45d1ae0 100644 --- a/Barotrauma/BarotraumaClient/Source/Screens/SubEditorScreen.cs +++ b/Barotrauma/BarotraumaClient/Source/Screens/SubEditorScreen.cs @@ -1017,7 +1017,7 @@ namespace Barotrauma var previewImageButtonHolder = new GUILayoutGroup(new RectTransform(new Vector2(1.0f, 0.1f), rightColumn.RectTransform), isHorizontal: true) { Stretch = true, RelativeSpacing = 0.05f }; - new GUIButton(new RectTransform(new Vector2(0.5f, 1.0f), previewImageButtonHolder.RectTransform), TextManager.Get("SubPreviewImageGenerate")) + new GUIButton(new RectTransform(new Vector2(0.5f, 1.0f), previewImageButtonHolder.RectTransform), TextManager.Get("SubPreviewImageCreate")) { OnClicked = (btn, userdata) => {