feat: 新增设备孵化器,包含通量控制、幼虫交互和孵化进度管理功能
This commit is contained in:
@@ -403,6 +403,13 @@ namespace ArachnaeSwarm
|
||||
if (label.Contains("拆除") || label.Contains("Deconstruct") || label.Contains("半径") || label.Contains("Radius"))
|
||||
continue;
|
||||
}
|
||||
|
||||
// 强制将基础组件(如 Refuelable)甚至默认排序为 -100 的东西移到后面
|
||||
if (gizmo.Order >= -100f && gizmo.Order <= 0f)
|
||||
{
|
||||
gizmo.Order = -90f;
|
||||
}
|
||||
|
||||
yield return gizmo;
|
||||
}
|
||||
|
||||
@@ -421,7 +428,8 @@ namespace ArachnaeSwarm
|
||||
defaultLabel = "ARA_Gizmo_AddOrder".Translate(config != null ? 1 : 0, 1),
|
||||
defaultDesc = "ARA_Gizmo_AddOrderDesc_Item".Translate(),
|
||||
icon = ContentFinder<Texture2D>.Get("ArachnaeSwarm/UI/Commands/ARA_NodeSwarmIcon", false),
|
||||
action = () => EquipmentIncubatorData?.ShowFloatMenu()
|
||||
action = () => EquipmentIncubatorData?.ShowFloatMenu(),
|
||||
Order = 100f
|
||||
};
|
||||
}
|
||||
|
||||
@@ -435,7 +443,8 @@ namespace ArachnaeSwarm
|
||||
defaultLabel = "ARA_Gizmo_CallLarva".Translate(),
|
||||
defaultDesc = BuildCallLarvaDescription(config),
|
||||
icon = ContentFinder<Texture2D>.Get("ArachnaeSwarm/UI/Commands/ARA_CallLarva", false),
|
||||
action = CallLarva
|
||||
action = CallLarva,
|
||||
Order = 100f
|
||||
};
|
||||
}
|
||||
else
|
||||
@@ -448,7 +457,8 @@ namespace ArachnaeSwarm
|
||||
defaultLabel = statusText,
|
||||
defaultDesc = "ARA_Gizmo_LarvaWorkingDesc".Translate(0),
|
||||
icon = ContentFinder<Texture2D>.Get("ArachnaeSwarm/UI/Commands/ARA_CallLarva", false),
|
||||
Disabled = true
|
||||
Disabled = true,
|
||||
Order = 100f
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -459,7 +469,8 @@ namespace ArachnaeSwarm
|
||||
{
|
||||
defaultLabel = "ARA_OothecaIncubator.CancelIncubation".Translate(),
|
||||
icon = ContentFinder<Texture2D>.Get("UI/Commands/Cancel", false),
|
||||
action = CancelIncubation
|
||||
action = CancelIncubation,
|
||||
Order = 100f
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user