Ejemplo n.º 1
0
        public static OCICamera Load(
            OICameraInfo _info,
            ObjectCtrlInfo _parent,
            TreeNodeObject _parentNode)
        {
            ChangeAmount _source   = _info.changeAmount.Clone();
            OCICamera    ociCamera = AddObjectCamera.Load(_info, _parent, _parentNode, false, -1);

            _info.changeAmount.Copy(_source, true, true, true);
            return(ociCamera);
        }
Ejemplo n.º 2
0
        public void AddCamera()
        {
            if (this.cameraCount != int.MaxValue)
            {
                ++this.cameraCount;
            }
            OCICamera ociCamera = AddObjectCamera.Add();

            Singleton <UndoRedoManager> .Instance.Clear();

            if (Studio.Studio.optionSystem.autoSelect && ociCamera != null)
            {
                this.m_TreeNodeCtrl.SelectSingle(ociCamera.treeNodeObject, true);
            }
            this._cameraSelector.Init();
        }
Ejemplo n.º 3
0
        public static void LoadChild(
            ObjectInfo _child,
            ObjectCtrlInfo _parent     = null,
            TreeNodeObject _parentNode = null)
        {
            switch (_child.kind)
            {
            case 0:
                OICharInfo _info = _child as OICharInfo;
                if (_info.sex == 1)
                {
                    AddObjectFemale.Load(_info, _parent, _parentNode);
                    break;
                }
                AddObjectMale.Load(_info, _parent, _parentNode);
                break;

            case 1:
                AddObjectItem.Load(_child as OIItemInfo, _parent, _parentNode);
                break;

            case 2:
                AddObjectLight.Load(_child as OILightInfo, _parent, _parentNode);
                break;

            case 3:
                AddObjectFolder.Load(_child as OIFolderInfo, _parent, _parentNode);
                break;

            case 4:
                AddObjectRoute.Load(_child as OIRouteInfo, _parent, _parentNode);
                break;

            case 5:
                AddObjectCamera.Load(_child as OICameraInfo, _parent, _parentNode);
                break;
            }
        }
Ejemplo n.º 4
0
 public static OCICamera Add()
 {
     return(AddObjectCamera.Load(new OICameraInfo(Studio.Studio.GetNewIndex()), (ObjectCtrlInfo)null, (TreeNodeObject)null, true, Studio.Studio.optionSystem.initialPosition));
 }