feat: 新增装备孵化卵囊建筑,支持中子通量控制、孵化进度与品质管理及幼虫交互。

This commit is contained in:
2025-12-23 18:47:46 +08:00
parent a18e7d3c18
commit 9406a49d60
5 changed files with 3 additions and 15 deletions

Binary file not shown.

View File

@@ -404,12 +404,6 @@ namespace ArachnaeSwarm
continue;
}
// 强制将基础组件(如 Refuelable甚至默认排序为 -100 的东西移到后面
if (gizmo.Order >= -100f && gizmo.Order <= 0f)
{
gizmo.Order = -90f;
}
yield return gizmo;
}

View File

@@ -27,7 +27,7 @@ namespace ArachnaeSwarm
public Gizmo_EquipmentIncubationProgress(Building_EquipmentOotheca building)
{
this.building = building;
Order = -99f; // 在通量 Gizmo 之后显示
Order = -140f;
}
public override float GetWidth(float maxWidth)
@@ -116,9 +116,6 @@ namespace ArachnaeSwarm
string statusText = (config != null && config.IsResearchComplete) ? "就绪 - 点击上方切换目标" : "需要研究";
Widgets.Label(new Rect(innerRect.x, curY, innerRect.width, 20f), statusText);
curY += 20f;
string stats = $"速度:{building.SpeedMultiplier.ToStringPercent()} 质量:{building.QualityMultiplier.ToStringPercent()}";
Widgets.Label(new Rect(innerRect.x, curY, innerRect.width, 16f), stats);
GUI.color = Color.white;
}

View File

@@ -116,9 +116,6 @@ namespace ArachnaeSwarm
string statusText = (config != null && config.IsResearchComplete) ? "就绪 - 点击上方切换目标" : "需要研究";
Widgets.Label(new Rect(innerRect.x, curY, innerRect.width, 20f), statusText);
curY += 20f;
string stats = $"速度:{ootheca.SpeedMultiplier.ToStringPercent()} 质量:{ootheca.QualityMultiplier.ToStringPercent()}";
Widgets.Label(new Rect(innerRect.x, curY, innerRect.width, 16f), stats);
GUI.color = Color.white;
}

View File

@@ -62,8 +62,8 @@ namespace ArachnaeSwarm
{
case FluxMode.Manual: modeColor = new Color(0.5f, 0.5f, 0.5f, 0.9f); break;
case FluxMode.Quality: modeColor = new Color(0.3f, 0.6f, 0.9f, 0.9f); break;
case FluxMode.Balance: modeColor = new Color(0.2f, 0.7f, 0.2f, 0.9f); break;
case FluxMode.Speed: modeColor = new Color(0.9f, 0.5f, 0.2f, 0.9f); break;
case FluxMode.Balance: modeColor = new Color(0.9f, 0.5f, 0.2f, 0.9f); break;
case FluxMode.Speed: modeColor = new Color(0.2f, 0.7f, 0.2f, 0.9f); break;
default: modeColor = Color.gray; break;
}