This commit is contained in:
2025-11-22 17:15:14 +08:00
parent b67a42ade1
commit 5b1c9ca5ec
4 changed files with 12 additions and 4 deletions

View File

@@ -39,6 +39,7 @@
<WULA_Unknown>未知</WULA_Unknown> <WULA_Unknown>未知</WULA_Unknown>
<WULA_Delete>删除</WULA_Delete> <WULA_Delete>删除</WULA_Delete>
<WULA_Pause>暂停</WULA_Pause> <WULA_Pause>暂停</WULA_Pause>
<WULA_Paused>已暂停</WULA_Paused>
<WULA_Resume>恢复</WULA_Resume> <WULA_Resume>恢复</WULA_Resume>
<WULA_InsufficientResources>资源不足</WULA_InsufficientResources> <WULA_InsufficientResources>资源不足</WULA_InsufficientResources>
<WULA_FixedIngredients>固定原料</WULA_FixedIngredients> <WULA_FixedIngredients>固定原料</WULA_FixedIngredients>

View File

@@ -13,7 +13,7 @@ namespace WulaFallenEmpire
public RecipeDef recipe; public RecipeDef recipe;
public int targetCount = 1; public int targetCount = 1;
public int currentCount = 0; public int currentCount = 0;
public bool paused = true; public bool paused = false;
// 生产状态 // 生产状态
public ProductionState state = ProductionState.Gathering; public ProductionState state = ProductionState.Gathering;
@@ -50,7 +50,7 @@ namespace WulaFallenEmpire
Scribe_Defs.Look(ref recipe, "recipe"); Scribe_Defs.Look(ref recipe, "recipe");
Scribe_Values.Look(ref targetCount, "targetCount", 1); Scribe_Values.Look(ref targetCount, "targetCount", 1);
Scribe_Values.Look(ref currentCount, "currentCount", 0); Scribe_Values.Look(ref currentCount, "currentCount", 0);
Scribe_Values.Look(ref paused, "paused", true); Scribe_Values.Look(ref paused, "paused", false);
Scribe_Values.Look(ref _progress, "progress", 0f); Scribe_Values.Look(ref _progress, "progress", 0f);
Scribe_Values.Look(ref state, "state", ProductionState.Gathering); Scribe_Values.Look(ref state, "state", ProductionState.Gathering);

View File

@@ -483,8 +483,13 @@ namespace WulaFallenEmpire
else if (order.state == GlobalProductionOrder.ProductionState.Gathering) else if (order.state == GlobalProductionOrder.ProductionState.Gathering)
{ {
string statusText = "WULA_GatheringMaterials".Translate(); string statusText = "WULA_GatheringMaterials".Translate();
if (order.paused) statusText = $"[||] {statusText}"; if (order.paused)
{
GUI.color = Color.yellow;
statusText = "WULA_Paused".Translate() + ": " + statusText;
}
Widgets.Label(statusRect, statusText); Widgets.Label(statusRect, statusText);
GUI.color = Color.white;
} }
else else
{ {
@@ -497,10 +502,12 @@ namespace WulaFallenEmpire
if (order.paused && order.state != GlobalProductionOrder.ProductionState.Completed) if (order.paused && order.state != GlobalProductionOrder.ProductionState.Completed)
{ {
statusText = $"[||] {statusText}"; GUI.color = Color.yellow;
statusText = "WULA_Paused".Translate() + ": " + statusText;
} }
Widgets.Label(statusRect, statusText); Widgets.Label(statusRect, statusText);
GUI.color = Color.white;
} }
// 控制按钮区域 // 控制按钮区域