Пример #1
0
        // Token: 0x060001F2 RID: 498 RVA: 0x00010D88 File Offset: 0x0000EF88
        public static string KindText(PmxMorph.OffsetKind kind)
        {
            string result = "-";

            switch (kind)
            {
            case PmxMorph.OffsetKind.Group:
                result = "グループ";
                break;

            case PmxMorph.OffsetKind.Vertex:
                result = "頂点";
                break;

            case PmxMorph.OffsetKind.Bone:
                result = "ボーン";
                break;

            case PmxMorph.OffsetKind.UV:
                result = "UV";
                break;

            case PmxMorph.OffsetKind.UVA1:
                result = "追加UV1";
                break;

            case PmxMorph.OffsetKind.UVA2:
                result = "追加UV2";
                break;

            case PmxMorph.OffsetKind.UVA3:
                result = "追加UV3";
                break;

            case PmxMorph.OffsetKind.UVA4:
                result = "追加UV4";
                break;

            case PmxMorph.OffsetKind.Material:
                result = "材質";
                break;

            case PmxMorph.OffsetKind.Flip:
                result = "フリップ";
                break;

            case PmxMorph.OffsetKind.Impulse:
                result = "インパルス";
                break;
            }
            return(result);
        }
Пример #2
0
        // Token: 0x060000C6 RID: 198 RVA: 0x0000DAB4 File Offset: 0x0000BCB4
        public static PmxBaseMorph CreateOffsetObject(PmxMorph.OffsetKind kind)
        {
            PmxBaseMorph result = null;

            switch (kind)
            {
            case PmxMorph.OffsetKind.Group:
            case PmxMorph.OffsetKind.Flip:
                result = new PmxGroupMorph();
                break;

            case PmxMorph.OffsetKind.Vertex:
                result = new PmxVertexMorph();
                break;

            case PmxMorph.OffsetKind.Bone:
                result = new PmxBoneMorph();
                break;

            case PmxMorph.OffsetKind.UV:
            case PmxMorph.OffsetKind.UVA1:
            case PmxMorph.OffsetKind.UVA2:
            case PmxMorph.OffsetKind.UVA3:
            case PmxMorph.OffsetKind.UVA4:
                result = new PmxUVMorph();
                break;

            case PmxMorph.OffsetKind.Material:
                result = new PmxMaterialMorph();
                break;

            case PmxMorph.OffsetKind.Impulse:
                result = new PmxImpulseMorph();
                break;
            }
            return(result);
        }