暂存
This commit is contained in:
Binary file not shown.
@@ -39,6 +39,7 @@
|
||||
<WULA_Unknown>未知</WULA_Unknown>
|
||||
<WULA_Delete>删除</WULA_Delete>
|
||||
<WULA_Pause>暂停</WULA_Pause>
|
||||
<WULA_Paused>已暂停</WULA_Paused>
|
||||
<WULA_Resume>恢复</WULA_Resume>
|
||||
<WULA_InsufficientResources>资源不足</WULA_InsufficientResources>
|
||||
<WULA_FixedIngredients>固定原料</WULA_FixedIngredients>
|
||||
|
||||
@@ -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