From 27f04376aeb6b6dfad394aece1351665bdcc0e54 Mon Sep 17 00:00:00 2001 From: Soar Qin Date: Sat, 4 Jan 2025 17:25:35 +0800 Subject: [PATCH] minor fix --- UXAssist/Patches/LogisticsPatch.cs | 2 ++ UXAssist/UIConfigWindow.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/UXAssist/Patches/LogisticsPatch.cs b/UXAssist/Patches/LogisticsPatch.cs index 0027062..02b2ddd 100644 --- a/UXAssist/Patches/LogisticsPatch.cs +++ b/UXAssist/Patches/LogisticsPatch.cs @@ -306,6 +306,8 @@ public static class LogisticsPatch { private static int ItemIdHintUnderMouse() { + var itemId = GameMain.data.mainPlayer.inhandItemId; + if (itemId > 0) return itemId; List targets = []; var pointer = new PointerEventData(EventSystem.current) { diff --git a/UXAssist/UIConfigWindow.cs b/UXAssist/UIConfigWindow.cs index 6bdcb5d..19ae710 100644 --- a/UXAssist/UIConfigWindow.cs +++ b/UXAssist/UIConfigWindow.cs @@ -291,7 +291,7 @@ public static class UIConfigWindow wnd.AddSlider(x + 10f, y, tab2, PlanetFunctions.OrbitalCollectorMaxBuildCount, new OcMapper(), "G", 200f); x = 400f; y += 54f; - wnd.AddCheckBox(x, y, tab2, LogisticsPatch.LogisticsCapacityTweaksEnabled, "Enhance control for logistic storage limits"); + checkBoxForMeasureTextWidth = wnd.AddCheckBox(x, y, tab2, LogisticsPatch.LogisticsCapacityTweaksEnabled, "Enhance control for logistic storage limits"); wnd.AddTipsButton2(x + checkBoxForMeasureTextWidth.Width + 5f, y + 6f, tab2, "Enhance control for logistic storage limits", "Enhance control for logistic storage limits tips", "enhanced-logistic-limit-tips"); y += 36f; wnd.AddCheckBox(x, y, tab2, LogisticsPatch.AllowOverflowInLogisticsEnabled, "Allow overflow for Logistic Stations and Advanced Mining Machines");