private static void MakerAPI_MakerFinishedLoading(object sender, EventArgs e) { SfwBoneEffect.Apply(MakerAPI.GetCharacterControl()); DisableNsfwAccAttachPoints(); DisableNsfwSliders(); DisableNsfwMakerCategories(); // Replace the stock skin type selection window with a dropdown // This is because the dropdown icons are all NSFW // This part replaces the original control with the new dropdown var replacement = _skinTypeReplacementControl.ControlObject; var toReplace = replacement.transform.parent.Find("tglSkinKind"); var id = toReplace.GetSiblingIndex(); toReplace.gameObject.SetActive(false); replacement.transform.SetSiblingIndex(id); }
private static void CharacterApi_CharacterReloaded(object sender, CharaReloadEventArgs e) { SfwBoneEffect.Apply(e.ReloadedCharacter); }