// --------------------------------------------------------------------

        private void CreateEntity()
        {
            NewEntityWindow window = new NewEntityWindow();

            if (window.ShowDialog() == DialogResult.OK)
            {
                SceneObject root = ParseNode(mCurrentModel.RootNode, false);
                EditorEntityUtils.Create(root, window.EntityName);
            }
        }
        // --------------------------------------------------------------------

        private void CreateEntity()
        {
            NewEntityWindow window = new NewEntityWindow();
            if (window.ShowDialog() == DialogResult.OK)
            {
                SceneObject root = ParseNode(mCurrentModel.RootNode, false, null);
                OnyxProjectAsset entity = ProjectManager.Instance.Content.GetEntityByName(window.EntityName);
                if (entity == null)
                    EditorEntityUtils.Create(root, window.EntityName);
                else
                    AssetLoader<Entity>.Save(new Entity(root), entity.Path);
            }
		}
Beispiel #3
0
 private void excludeFromEntityToolStripMenuItem_Click(object sender, EventArgs e)
 {
     EditorEntityUtils.ExcludeSelection();
 }
Beispiel #4
0
 private void createEntityToolStripMenuItem_Click(object sender, EventArgs e)
 {
     EditorEntityUtils.CreateFromSelection();
 }
Beispiel #5
0
 private void toolStripCreateTemplate_Click(object sender, EventArgs e)
 {
     EditorEntityUtils.AddProxy();
 }