1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 16:13:31 +08:00

minor fix

This commit is contained in:
2025-01-04 17:25:35 +08:00
parent bd794aa479
commit 27f04376ae
2 changed files with 3 additions and 1 deletions

View File

@@ -306,6 +306,8 @@ public static class LogisticsPatch
{ {
private static int ItemIdHintUnderMouse() private static int ItemIdHintUnderMouse()
{ {
var itemId = GameMain.data.mainPlayer.inhandItemId;
if (itemId > 0) return itemId;
List<RaycastResult> targets = []; List<RaycastResult> targets = [];
var pointer = new PointerEventData(EventSystem.current) var pointer = new PointerEventData(EventSystem.current)
{ {

View File

@@ -291,7 +291,7 @@ public static class UIConfigWindow
wnd.AddSlider(x + 10f, y, tab2, PlanetFunctions.OrbitalCollectorMaxBuildCount, new OcMapper(), "G", 200f); wnd.AddSlider(x + 10f, y, tab2, PlanetFunctions.OrbitalCollectorMaxBuildCount, new OcMapper(), "G", 200f);
x = 400f; x = 400f;
y += 54f; 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"); 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; y += 36f;
wnd.AddCheckBox(x, y, tab2, LogisticsPatch.AllowOverflowInLogisticsEnabled, "Allow overflow for Logistic Stations and Advanced Mining Machines"); wnd.AddCheckBox(x, y, tab2, LogisticsPatch.AllowOverflowInLogisticsEnabled, "Allow overflow for Logistic Stations and Advanced Mining Machines");