Exemplo n.º 1
0
        public static OCICharMale Add(string _path)
        {
            ChaControl chara = Singleton <Character> .Instance.CreateChara((byte)0, Singleton <Scene> .Instance.commonSpace, -1, (ChaFileControl)null);

            chara.chaFile.LoadCharaFile(_path, byte.MaxValue, true, true);
            chara.fileStatus.neckLookPtn = 3;
            OICharInfo _info = new OICharInfo(chara.chaFile, Studio.Studio.GetNewIndex());

            return(AddObjectMale.Add(chara, _info, (ObjectCtrlInfo)null, (TreeNodeObject)null, true, Studio.Studio.optionSystem.initialPosition));
        }
Exemplo n.º 2
0
        public static OCICharMale Load(
            OICharInfo _info,
            ObjectCtrlInfo _parent,
            TreeNodeObject _parentNode)
        {
            OCICharMale ociCharMale = AddObjectMale.Add(Singleton <Character> .Instance.CreateChara((byte)0, Singleton <Scene> .Instance.commonSpace, -1, _info.charFile), _info, _parent, _parentNode, false, -1);

            foreach (KeyValuePair <int, List <ObjectInfo> > keyValuePair in _info.child)
            {
                KeyValuePair <int, List <ObjectInfo> > v = keyValuePair;
                AddObjectAssist.LoadChild(v.Value, (ObjectCtrlInfo)ociCharMale, ociCharMale.dicAccessoryPoint.First <KeyValuePair <TreeNodeObject, int> >((Func <KeyValuePair <TreeNodeObject, int>, bool>)(x => x.Value == v.Key)).Key);
            }
            return(ociCharMale);
        }
Exemplo n.º 3
0
        public void AddMale(string _path)
        {
            OCICharMale ociCharMale = AddObjectMale.Add(_path);

            Singleton <UndoRedoManager> .Instance.Clear();

            if (Studio.Studio.optionSystem.autoHide)
            {
                this.rootButtonCtrl.OnClick(-1);
            }
            if (!Studio.Studio.optionSystem.autoSelect || ociCharMale == null)
            {
                return;
            }
            this.m_TreeNodeCtrl.SelectSingle(ociCharMale.treeNodeObject, true);
        }