/// <summary>
 /// React to layer changes
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void IScene_LayerChanged(object sender, LayerChangedArgs e)
 {
     UpdatePanelStatus();
 }
Ejemplo n.º 2
0
        private void OnLayerChanged(object sender, LayerChangedArgs e)
        {
            if (EditorManager.GUI.UIUpdateLock > 0)
            return;

              switch (e.action)
              {
            case LayerChangedArgs.Action.Removed:
              if (SelectedObject==e.layer)
            SelectedObject = null;
              break;

            case LayerChangedArgs.Action.NameChanged:
            case LayerChangedArgs.Action.PropertyChanged:
            case LayerChangedArgs.Action.VisibleChanged:
              if (SelectedObject==e.layer)
            InvalidatePropertyGrid();
              break;

            case LayerChangedArgs.Action.Clicked:
            case LayerChangedArgs.Action.Selected:
              SelectedObject = e.layer;
              break;
            case LayerChangedArgs.Action.LockStatusChanged:
              if (SelectedObject==e.layer)
              {
            this.ReadOnly = !e.layer.Modifiable;
            InvalidatePropertyGrid();
              }
              break;
              }
        }
Ejemplo n.º 3
0
        void EditorScene_LayerChanged(object sender, LayerChangedArgs e)
        {
            // Exit isolate selection mode when changing the visibility status of a layer
              if (e.action == LayerChangedArgs.Action.VisibleChanged)
              {
            ToolStripButton_IsolateSelection.Checked = false;
            visionView.IsolateSelection(false, false);
              }

              // Process to engine view
              visionView.OnLayerChanged(sender, e);
        }
Ejemplo n.º 4
0
 public override void OnLayerActionTriggered(LayerChangedArgs.Action action)
 {
     base.OnLayerActionTriggered(action);
       // we do not listen to the Clicked event anymore because that one is sent too often. [#3614]
       if (/*action == LayerChangedArgs.Action.Clicked || */action == LayerChangedArgs.Action.Selected)
       {
     EditorManager.ActiveView.SetViewSettings(EditorManager.ActiveView.DefaultViewSettings, true); // set back default view settings
     EditorManager.ActiveView.UpdateView(false);
       }
 }
Ejemplo n.º 5
0
 void EditorScene_LayerChanged(object sender, LayerChangedArgs e)
 {
     if (e.action == LayerChangedArgs.Action.Selected)
       {
      FillScriptList();
       }
 }
Ejemplo n.º 6
0
        /// <summary>
        /// Listens for the OnLayerChanged event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void EditorScene_LayerChanged(object sender, LayerChangedArgs e)
        {
            if (EditorManager.GUI.UIUpdateLock > 0)
            return;

              UpdateLayerToolbar();

              bool needInvoke = this.InvokeRequired;

              if (e.action == LayerChangedArgs.Action.ContentChanged)
            UpdatedLayerInfoPanelVisible = true;
        }
Ejemplo n.º 7
0
 public void IScene_LayerChanged(object sender, LayerChangedArgs e)
 {
     if (e.action == LayerChangedArgs.Action.LockStatusChanged)
     UpdateStatus();
 }
Ejemplo n.º 8
0
 void EditorScene_LayerChanged(object sender, LayerChangedArgs e)
 {
     if (e.action == LayerChangedArgs.Action.Selected)
       {
     if (!displayAllToolStripMenuItem.Checked)
     {
       listView1.Items.Clear();
       AddScriptsRecursively(e.layer.Root.ChildCollection);
     }
       }
 }