示例#1
0
            private static Texture2D GetBodyMask(KoiClothesOverlayController controller, MaskKind kind)
            {
                var newMask = controller.GetOverlayTex(kind.ToString(), false)?.Texture;

                if (newMask != null)
                {
                    // the field is needed for dumping, doesn't seem to be necessary to overwrite with the custom tex
                    //Traverse maskField = GetMaskField(controller, kind);
                    //maskField.SetValue(newMask);
                    return(newMask);
                }
                return(null);
            }
 internal Texture GetOriginalMask(MaskKind kind)
 {
     return(Hooks.GetMaskField(this, kind).GetValue <Texture>());
 }