This commit is contained in:
2025-12-23 13:18:08 +08:00
parent a0f90cf71a
commit 84f5bf036c
3 changed files with 36 additions and 26 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -189,36 +189,46 @@ namespace ArachnaeSwarm
private string GetTooltip()
{
var sb = new System.Text.StringBuilder();
bool isIncubating = ootheca.isIncubating;
// 孵化目标
if (ootheca.incubatingPawnKind != null)
{
sb.AppendLine("正在孵化: " + ootheca.incubatingPawnKind.LabelCap);
}
// 进度信息
sb.AppendLine();
sb.AppendLine("孵化进度: " + ootheca.AdjustedProgressPercent.ToStringPercent());
sb.AppendLine("品质进度: " + ootheca.QualityPercent.ToStringPercent());
// 剩余时间
float daysRemaining = ootheca.GetRemainingDays();
if (daysRemaining > 0 && daysRemaining < float.MaxValue)
if (isIncubating && ootheca.incubatingPawnKind != null)
{
// 孵化中状态
sb.AppendLine("【孵化中】");
sb.AppendLine("目标: " + ootheca.incubatingPawnKind.LabelCap);
sb.AppendLine("孵化进度: " + ootheca.AdjustedProgressPercent.ToStringPercent());
sb.AppendLine("品质进度: " + ootheca.QualityPercent.ToStringPercent());
float daysRemaining = ootheca.GetRemainingDays();
if (daysRemaining > 0 && daysRemaining < float.MaxValue)
{
sb.AppendLine("剩余时间: " + daysRemaining.ToString("F1") + " 天");
}
sb.AppendLine();
sb.AppendLine("剩余时间: " + daysRemaining.ToString("F1") + " 天");
sb.AppendLine("速度: " + ootheca.SpeedMultiplier.ToStringPercent());
sb.AppendLine("质量: " + ootheca.QualityMultiplier.ToStringPercent());
}
else
{
// 空闲状态
var config = ootheca.IncubatorData?.SelectedConfig;
if (config != null)
{
sb.AppendLine("【就绪】");
sb.AppendLine("目标: " + config.pawnKind.LabelCap);
sb.AppendLine("孵化时间: " + config.daysRequired + " 天");
}
else
{
sb.AppendLine("【未选择目标】");
sb.AppendLine("点击上方标题选择孵化目标");
}
sb.AppendLine();
sb.AppendLine("当前速度加成: " + ootheca.SpeedMultiplier.ToStringPercent());
sb.AppendLine("当前质量加成: " + ootheca.QualityMultiplier.ToStringPercent());
}
// 速度和质量乘数
sb.AppendLine();
sb.AppendLine("速度倍率: " + ootheca.SpeedMultiplier.ToStringPercent());
sb.AppendLine("质量倍率: " + ootheca.QualityMultiplier.ToStringPercent());
// 详细因子
sb.AppendLine();
sb.AppendLine(ootheca.GetSpeedFactorsDescription());
sb.AppendLine();
sb.AppendLine(ootheca.GetQualityFactorsDescription());
return sb.ToString().TrimEndNewlines();
}