Exemple #1
0
        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            int n = listBox1.SelectedIndex;

            if (n == -1 || n < 0 || n >= CurrentObjects.Count())
            {
                return;
            }
            GetProperties(CurrentObjects[n]);
            SObj s = Objects.FirstOrDefault(o => o.Index == CurrentObjects[n]);

            if (s != null)
            {
                s.Select();
                if (selectedIndex != -1)
                {
                    SObj d = Objects.FirstOrDefault(o => o.Index == CurrentObjects[selectedIndex]);
                    if (d != null)
                    {
                        d.Deselect();
                    }
                }
                if (!selectedByNode)
                {
                    graphEditor.Camera.AnimateViewToPanToBounds(s.GlobalFullBounds, 0);
                }
            }
            selectedIndex  = n;
            selectedByNode = false;
        }
Exemple #2
0
        private void addInputLinkToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int n = listBox1.SelectedIndex;

            if (n == -1)
            {
                return;
            }
            SObj s = Objects.FirstOrDefault(o => o.Index == CurrentObjects[n]);

            if (s.GetType() == Type.GetType("ME2Explorer.SequenceObjects.SAction"))
            {
                ((SAction)s).AddInputLink();
            }
        }
Exemple #3
0
 public static bool OnObjectMoved(SObj Object)
 {
     return true;
 }
Exemple #4
0
 public static bool OnPlayerEditObject(SPlayer Player, SObj Object, SPlayerObj PObj, bool IsCancelled, bool IsSaved, bool IsUpdate, Point3D Pos, Point3D Rotation)
 {
     return true;
 }
Exemple #5
0
 public static bool OnPlayerSelectObject(SPlayer Player, SObj Object, SPlayerObj PObj, SObjectsEnum Model, Point3D Pos)
 {
     return true;
 }