mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-09 14:53:30 +08:00
minor fix
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user