Esempio n. 1
0
            internal static void CvsClothesCopy_CopyClothes_Postfix(TMP_Dropdown[] ___ddCoordeType, Toggle[] ___tglKind)
            {
                List <int> copySlots = new List <int>();

                for (int i = 0; i < Enum.GetNames(typeof(ChaFileDefine.ClothesKind)).Length; i++)
                {
                    if (___tglKind[i].isOn)
                    {
                        copySlots.Add(i);
                    }
                }

                MaterialRouterController pluginCtrl = GetController(MakerAPI.GetCharacterControl());

                if (pluginCtrl != null)
                {
                    pluginCtrl.ClothingCopiedEvent(___ddCoordeType[1].value, ___ddCoordeType[0].value, copySlots);
                    if (___ddCoordeType[0].value == CustomBase.Instance.chaCtrl.fileStatus.coordinateType)
                    {
                        CustomBase.Instance.chaCtrl.ChangeCoordinateTypeAndReload(false);
                    }
                }
            }