暂存
This commit is contained in:
@@ -13,7 +13,7 @@ namespace WulaFallenEmpire
|
||||
public RecipeDef recipe;
|
||||
public int targetCount = 1;
|
||||
public int currentCount = 0;
|
||||
public bool paused = true;
|
||||
public bool paused = false;
|
||||
|
||||
// 生产状态
|
||||
public ProductionState state = ProductionState.Gathering;
|
||||
@@ -50,7 +50,7 @@ namespace WulaFallenEmpire
|
||||
Scribe_Defs.Look(ref recipe, "recipe");
|
||||
Scribe_Values.Look(ref targetCount, "targetCount", 1);
|
||||
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 state, "state", ProductionState.Gathering);
|
||||
|
||||
|
||||
@@ -483,8 +483,13 @@ namespace WulaFallenEmpire
|
||||
else if (order.state == GlobalProductionOrder.ProductionState.Gathering)
|
||||
{
|
||||
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);
|
||||
GUI.color = Color.white;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -497,10 +502,12 @@ namespace WulaFallenEmpire
|
||||
|
||||
if (order.paused && order.state != GlobalProductionOrder.ProductionState.Completed)
|
||||
{
|
||||
statusText = $"[||] {statusText}";
|
||||
GUI.color = Color.yellow;
|
||||
statusText = "WULA_Paused".Translate() + ": " + statusText;
|
||||
}
|
||||
|
||||
Widgets.Label(statusRect, statusText);
|
||||
GUI.color = Color.white;
|
||||
}
|
||||
|
||||
// 控制按钮区域
|
||||
|
||||
Reference in New Issue
Block a user