mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-09 08:53:34 +08:00
Logistics Panel Info fix again
This commit is contained in:
@@ -1412,6 +1412,7 @@ public static class LogisticsPatch
|
|||||||
|
|
||||||
var itemCount = storage.count;
|
var itemCount = storage.count;
|
||||||
var itemLimit = _layout == EStationTipLayout.InterstellarLogistics ? _remoteStorageMaxTotal : _localStorageMaxTotal;
|
var itemLimit = _layout == EStationTipLayout.InterstellarLogistics ? _remoteStorageMaxTotal : _localStorageMaxTotal;
|
||||||
|
var barPositionChanged = false;
|
||||||
if (storageState.ItemCount != itemCount)
|
if (storageState.ItemCount != itemCount)
|
||||||
{
|
{
|
||||||
storageState.ItemCount = itemCount;
|
storageState.ItemCount = itemCount;
|
||||||
@@ -1431,6 +1432,7 @@ public static class LogisticsPatch
|
|||||||
);
|
);
|
||||||
_sliderCurrent[i].gameObject.SetActive(true);
|
_sliderCurrent[i].gameObject.SetActive(true);
|
||||||
}
|
}
|
||||||
|
barPositionChanged = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (itemCount > itemLimit) itemCount = itemLimit;
|
if (itemCount > itemLimit) itemCount = itemLimit;
|
||||||
@@ -1442,6 +1444,10 @@ public static class LogisticsPatch
|
|||||||
if (storageState.ItemOrdered != itemOrdered)
|
if (storageState.ItemOrdered != itemOrdered)
|
||||||
{
|
{
|
||||||
storageState.ItemOrdered = itemOrdered;
|
storageState.ItemOrdered = itemOrdered;
|
||||||
|
barPositionChanged = true;
|
||||||
|
}
|
||||||
|
if (barPositionChanged)
|
||||||
|
{
|
||||||
switch (itemOrdered)
|
switch (itemOrdered)
|
||||||
{
|
{
|
||||||
case > 0:
|
case > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user