This commit is contained in:
1 parent
2054fa2558
commit
d77cc6a40e
8 files changed
+447
-8
No files matched your search
@@ -149,3 +149,32 @@ pub enum EditorCommand {
|
||||
snapshot: EditorEntitySnapshot,
|
||||
},
|
||||
}
|
||||
|
||||
impl EditorCommand {
|
||||
pub fn label(&self) -> &'static str {
|
||||
match self {
|
||||
EditorCommand::Spawn { .. } => "Spawn",
|
||||
EditorCommand::Despawn { .. } => "Delete",
|
||||
EditorCommand::Duplicate { .. } => "Duplicate",
|
||||
EditorCommand::Rename { .. } => "Rename",
|
||||
EditorCommand::SetTransform { .. } => "Move",
|
||||
EditorCommand::SetMaterial { .. } => "Set Material",
|
||||
EditorCommand::SetMaterialOverride { .. } => "Set Material Override",
|
||||
EditorCommand::SetLight { .. } => "Set Light",
|
||||
EditorCommand::SetPhysics { .. } => "Set Physics",
|
||||
EditorCommand::SetRigidBody { .. } => "Set Rigid Body",
|
||||
EditorCommand::SetCollider { .. } => "Set Collider",
|
||||
EditorCommand::SetPrimitive { .. } => "Set Primitive",
|
||||
EditorCommand::SetStaticMeshRenderer { .. } => "Set Static Mesh Renderer",
|
||||
EditorCommand::SetPostProcessVolume { .. } => "Set Post Process Volume",
|
||||
EditorCommand::SetTransformGroup { .. } => "Move Selection",
|
||||
EditorCommand::Reparent { .. } => "Reparent",
|
||||
EditorCommand::SetActorKind { .. } => "Set Actor Kind",
|
||||
EditorCommand::ReorderSibling { .. } => "Reorder Hierarchy",
|
||||
EditorCommand::SetEditorVisibility { .. } => "Set Visibility",
|
||||
EditorCommand::SetInspectorOrder { .. } => "Set Component Order",
|
||||
EditorCommand::AddComponent { .. } => "Add Component",
|
||||
EditorCommand::RemoveComponent { .. } => "Remove Component",
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user