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); }
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(); }
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; } }
public static OCICamera Add() { return(AddObjectCamera.Load(new OICameraInfo(Studio.Studio.GetNewIndex()), (ObjectCtrlInfo)null, (TreeNodeObject)null, true, Studio.Studio.optionSystem.initialPosition)); }