Esempio n. 1
0
        private void Update(WorldForm wf, ref MapSelection sel, Vector3 p)
        {
            Entity?.SetPivotPositionFromWidget(p);

            if (Entity != sel.EntityDef)
            {
                wf.SelectObject(Entity);
            }
            wf.SetWidgetPosition(p);
        }
Esempio n. 2
0
        private void Update(WorldForm wf, ref MapSelection sel, Quaternion q)
        {
            CarGen?.SetOrientation(q);

            if (CarGen != sel.CarGenerator)
            {
                wf.SelectObject(CarGen);
            }
            wf.SetWidgetRotation(q);
        }
Esempio n. 3
0
        private void Update(WorldForm wf, ref MapSelection sel, Vector3 s)
        {
            Entity?.SetScale(s);

            if (Entity != sel.EntityDef)
            {
                wf.SelectObject(Entity);
            }
            wf.SetWidgetScale(s);
        }
Esempio n. 4
0
        private void Update(WorldForm wf, ref MapSelection sel, Vector3 p)
        {
            Audio?.SetPosition(p);

            if (Audio != sel.Audio)
            {
                wf.SelectObject(Audio);
            }
            wf.SetWidgetPosition(p);
        }
Esempio n. 5
0
        private void Update(WorldForm wf, ref MapSelection sel, Vector3 s)
        {
            CarGen?.SetScale(s);

            if (CarGen != sel.CarGenerator)
            {
                wf.SelectObject(CarGen);
            }
            wf.SetWidgetScale(s);
        }
Esempio n. 6
0
        private void Update(WorldForm wf, ref MapSelection sel, Quaternion q)
        {
            Entity?.SetPivotOrientationFromWidget(q);

            if (Entity != sel.EntityDef)
            {
                wf.SelectObject(Entity);
            }
            wf.SetWidgetRotation(q);
        }
Esempio n. 7
0
        private void Update(WorldForm wf, ref MapSelection sel, Quaternion q)
        {
            Audio?.SetOrientation(q);

            if (Audio != sel.Audio)
            {
                wf.SelectObject(Audio);
            }
            wf.SetWidgetRotation(q);
        }
Esempio n. 8
0
        private void Update(WorldForm wf, ref MapSelection sel, Vector3 p)
        {
            PathNode?.SetPosition(p);

            if (PathNode != sel.PathNode)
            {
                if (sel.PathLink != null)
                {
                    wf.SelectObject(sel.PathLink);
                }
                else
                {
                    wf.SelectObject(PathNode);
                }
            }
            wf.SetWidgetPosition(p);


            UpdateGraphics(wf);
        }
Esempio n. 9
0
        private void Update(WorldForm wf, ref MapSelection sel, Vector3 s)
        {
            LodLight?.SetScale(s);

            if (LodLight != sel.LodLight)
            {
                wf.SelectObject(LodLight);
            }
            wf.SetWidgetScale(s);

            UpdateGraphics(wf);
        }
Esempio n. 10
0
        private void Update(WorldForm wf, ref MapSelection sel, Quaternion q)
        {
            ScenarioNode?.SetOrientation(q);

            if (ScenarioNode != sel.ScenarioNode)
            {
                wf.SelectObject(ScenarioNode);
            }
            wf.SetWidgetRotation(q);

            //UpdateGraphics(wf);
        }
Esempio n. 11
0
        private void Update(WorldForm wf, ref MapSelection sel, Vector3 p)
        {
            ScenarioNode?.SetPosition(p);

            if (ScenarioNode != sel.ScenarioNode)
            {
                wf.SelectObject(ScenarioNode);
            }
            wf.SetWidgetPosition(p);

            UpdateGraphics(wf);
        }
Esempio n. 12
0
        private void Update(WorldForm wf, ref MapSelection sel, Quaternion q)
        {
            Portal?.SetOrientation(q);

            if (Portal != sel.NavPortal)
            {
                wf.SelectObject(Portal);
            }
            wf.SetWidgetRotation(q);

            //UpdateGraphics(wf);
        }
Esempio n. 13
0
        private void Update(WorldForm wf, ref MapSelection sel, Quaternion q)
        {
            LodLight?.SetOrientation(q);

            if (LodLight != sel.LodLight)
            {
                wf.SelectObject(LodLight);
            }
            wf.SetWidgetRotation(q);

            UpdateGraphics(wf);
        }
Esempio n. 14
0
        private void Update(WorldForm wf, ref MapSelection sel, Vector3 p)
        {
            Portal?.SetPosition(p);

            if (Portal != sel.NavPortal)
            {
                wf.SelectObject(Portal);
            }
            wf.SetWidgetPosition(p);


            UpdateGraphics(wf);
        }
Esempio n. 15
0
        private void Update(WorldForm wf, ref MapSelection sel, Vector3 p)
        {
            Node?.SetPosition(p);

            if (Node != sel.TrainTrackNode)
            {
                wf.SelectObject(Node);
            }
            wf.SetWidgetPosition(p);


            UpdateGraphics(wf);
        }
Esempio n. 16
0
        private void Update(WorldForm wf, ref MapSelection sel, Vector3 s)
        {
            if (Polygon != null)
            {
                Polygon.Scale = s;
            }

            if (Polygon != sel.CollisionPoly)
            {
                wf.SelectObject(Polygon);
            }
            wf.SetWidgetScale(s);

            UpdateGraphics(wf);
        }
Esempio n. 17
0
        private void Update(WorldForm wf, ref MapSelection sel, Vector3 s)
        {
            if (Bounds != null)
            {
                Bounds.Scale = s;
            }

            if (Bounds != sel.CollisionBounds)
            {
                wf.SelectObject(Bounds);
            }
            wf.SetWidgetScale(s);

            UpdateGraphics(wf);
        }
Esempio n. 18
0
        private void Update(WorldForm wf, ref MapSelection sel, Vector3 p)
        {
            if (Vertex != null)
            {
                if (Entity != null)
                {
                    Vertex.Position = Quaternion.Invert(Entity.Orientation).Multiply(p - Entity.Position);
                }
                else
                {
                    Vertex.Position = p;
                }
            }

            if (Vertex != sel.CollisionVertex)
            {
                wf.SelectObject(Vertex);
            }
            wf.SetWidgetPosition(p);

            UpdateGraphics(wf);
        }
Esempio n. 19
0
        private void Update(WorldForm wf, ref MapSelection sel, Quaternion q)
        {
            if (Polygon != null)
            {
                if (Entity != null)
                {
                    Polygon.Orientation = Quaternion.Invert(Entity.Orientation) * q;
                }
                else
                {
                    Polygon.Orientation = q;
                }
            }

            if (Polygon != sel.CollisionPoly)
            {
                wf.SelectObject(Polygon);
            }
            wf.SetWidgetRotation(q);

            UpdateGraphics(wf);
        }