コード例 #1
0
ファイル: UndoStep.cs プロジェクト: asm512/CodeWalker
        private void Update(WorldForm wf, ref MapSelection sel, Vector3 s)
        {
            CarGen?.SetScale(s);

            if (CarGen != sel.CarGenerator)
            {
                wf.SelectCarGen(CarGen);
            }
            wf.SetWidgetScale(s);
        }
コード例 #2
0
ファイル: UndoStep.cs プロジェクト: asm512/CodeWalker
        private void Update(WorldForm wf, ref MapSelection sel, Quaternion q)
        {
            CarGen?.SetOrientation(q);

            if (CarGen != sel.CarGenerator)
            {
                wf.SelectCarGen(CarGen);
            }
            wf.SetWidgetRotation(q);
        }
コード例 #3
0
        private void Update(WorldForm wf, ref MapSelection sel, Vector3 p)
        {
            CarGen?.SetPosition(p);

            if (CarGen != sel.CarGenerator)
            {
                wf.SelectObject(CarGen);
            }
            wf.SetWidgetPosition(p);
        }
コード例 #4
0
        private void Update(WorldForm wf, ProjectForm pf, ref MapSelection sel, Vector3 s)
        {
            CarGen?.SetScale(s);

            if (CarGen != sel.CarGenerator)
            {
                wf.SelectCarGen(CarGen);
            }
            wf.SetWidgetScale(s);
            if ((CarGen != null) && (pf != null))
            {
                pf.OnWorldCarGenModified(CarGen);
            }
        }
コード例 #5
0
        private void Update(WorldForm wf, ProjectForm pf, ref MapSelection sel, Quaternion q)
        {
            CarGen?.SetOrientation(q);

            if (CarGen != sel.CarGenerator)
            {
                wf.SelectCarGen(CarGen);
            }
            wf.SetWidgetRotation(q);
            if ((CarGen != null) && (pf != null))
            {
                pf.OnWorldCarGenModified(CarGen);
            }
        }