コード例 #1
0
 public override bool DeInitPluginModule()
 {
     EditorManager.CustomSceneSerialization -= new CustomSceneSerializationEventHandler(SerializeMe);
     EditorManager.SceneChanged             -= new SceneChangedEventHandler(EditorManager_SceneChanged);
     panel.Close();
     panel.Dispose();
     panel = null;
     return(true);
 }
コード例 #2
0
 public override bool DeInitPluginModule()
 {
     EditorManager.CustomSceneSerialization -= new CustomSceneSerializationEventHandler(SerializeMe);
       EditorManager.SceneChanged -= new SceneChangedEventHandler(EditorManager_SceneChanged);
       panel.Close();
       panel.Dispose();
       panel = null;
       return true;
 }
コード例 #3
0
        public override bool InitPluginModule()
        {
            panel = new ScenePropertiesPanel(EditorManager.ApplicationLayout.DockingArea);

            // Listen to vForge's serialisation event so that we can hook into the serialisation process
            EditorManager.CustomSceneSerialization += new CustomSceneSerializationEventHandler(SerializeMe);

            // Listen to scene changes, so that we can disable the panel when no scene is active
            EditorManager.SceneChanged += new SceneChangedEventHandler(EditorManager_SceneChanged);

            // Activate our panel on first load
            panel.ShowDockable();

            // Initialize the panel with default data (hide by default)
            panel.Enabled = false;

            return(true);
        }
コード例 #4
0
        public override bool InitPluginModule()
        {
            panel = new ScenePropertiesPanel(EditorManager.ApplicationLayout.DockingArea);

              // Listen to vForge's serialisation event so that we can hook into the serialisation process
              EditorManager.CustomSceneSerialization  += new CustomSceneSerializationEventHandler(SerializeMe);

              // Listen to scene changes, so that we can disable the panel when no scene is active
              EditorManager.SceneChanged              += new SceneChangedEventHandler(EditorManager_SceneChanged);

              // Activate our panel on first load
              panel.ShowDockable();

              // Initialize the panel with default data (hide by default)
              panel.Enabled = false;

              return true;
        }