Exemple #1
0
        //-----------------------------------------------------------------------------
        // Methods
        //-----------------------------------------------------------------------------

        public void OpenObjectPropertiesEditor(IPropertyObject propertyObject)
        {
            if (propertyObject != null)
            {
                editorControl.OpenObjectProperties(propertyObject);

                if (objectEditorForm == null || objectEditorForm.IsDisposed)
                {
                    objectEditorForm = new ObjectEditor(editorControl);
                    objectEditorForm.SetObject(propertyObject);
                    objectEditorForm.Show(this);
                }
                else
                {
                    objectEditorForm.SetObject(propertyObject);
                }
            }
        }
Exemple #2
0
 public override void Open(EditorControl editorControl)
 {
     editorControl.OpenLevel(level);
     editorControl.OpenObjectProperties(level);
 }
        //-----------------------------------------------------------------------------
        // Overridden Methods
        //-----------------------------------------------------------------------------

        public override void Open(EditorControl editorControl)
        {
            // Open the dungeon's properties.
            editorControl.OpenObjectProperties(dungeon);
        }
Exemple #4
0
 public override void Open(EditorControl editorControl)
 {
     editorControl.OpenObjectProperties(world);
 }