示例#1
0
            public PMDFormat(BinaryReader bin, GameObject caller, string path)
            {
                EntryPathes(path);

                this.caller = caller;

                try {
                    this.head              = new Header(bin);
                    this.vertex_list       = new VertexList(bin);
                    this.face_vertex_list  = new FaceVertexList(bin);
                    this.material_list     = new MaterialList(bin);
                    this.bone_list         = new BoneList(bin);
                    this.ik_list           = new IKList(bin); read_count++;
                    this.skin_list         = new SkinList(bin); read_count++;
                    this.skin_name_list    = new SkinNameList(bin);
                    this.bone_name_list    = new BoneNameList(bin);
                    this.bone_display_list = new BoneDisplayList(bin);
                    this.eg_head           = new EnglishHeader(bin);
                    if (this.eg_head.english_name_compatibility != 0)
                    {
                        this.eg_bone_name_list    = new EnglishBoneNameList(bin, bone_list.bone_count);
                        this.eg_skin_name_list    = new EnglishSkinNameList(bin, skin_list.skin_count);
                        this.eg_bone_display_list = new EnglishBoneDisplayList(bin, bone_name_list.bone_disp_name_count);
                    }
                    this.toon_texture_list    = new ToonTextureList(bin);
                    this.rigidbody_list       = new RigidbodyList(bin);
                    this.rigidbody_joint_list = new RigidbodyJointList(bin);
                } catch {
                    Debug.Log("Don't read full format");
                }
            }
        public FormStudio()
        {
            InitializeComponent();
            if (Settings.Default.ApplicationSkinName != string.Empty && Settings.Default.ApplicationSkinName != null)
            {
                PaletteModeManager cpu = (PaletteModeManager)Enum.Parse(typeof(PaletteModeManager), Settings.Default["ApplicationSkinName"].ToString());

                kryptonManager1.GlobalPaletteMode = cpu;
            }
            SkinNameList.AddRange(System.Enum.GetNames(typeof(PaletteModeManager)));
        }
			public PMDFormat(BinaryReader bin, GameObject caller, string path)
			{
				EntryPathes(path);
				
				this.caller = caller;
				
				try {
					this.head = new Header(bin);
					this.vertex_list = new VertexList(bin);
					this.face_vertex_list = new FaceVertexList(bin);
					this.material_list = new MaterialList(bin);
					this.bone_list = new BoneList(bin); 
					this.ik_list = new IKList(bin); read_count++;
					this.skin_list = new SkinList(bin); read_count++;
					this.skin_name_list = new SkinNameList(bin);
					this.bone_name_list = new BoneNameList(bin);
					this.bone_display_list = new BoneDisplayList(bin);
					this.eg_head = new EnglishHeader(bin);
					if (this.eg_head.english_name_compatibility != 0)
					{
						this.eg_bone_name_list = new EnglishBoneNameList(bin, bone_list.bone_count);
						this.eg_skin_name_list = new EnglishSkinNameList(bin, skin_list.skin_count);
						this.eg_bone_display_list = new EnglishBoneDisplayList(bin, bone_name_list.bone_disp_name_count);
					}
					this.toon_texture_list = new ToonTextureList(bin);
					this.rigidbody_list = new RigidbodyList(bin);
					this.rigidbody_joint_list = new RigidbodyJointList(bin);
				} catch {
					Debug.Log("Don't read full format");
				}
			}