Exemplo n.º 1
0
 private static void ChangeSettingVisible(ChaCustom.CvsAccessory __instance)
 {
     if (!MakerAPI.InsideAndLoaded)
     {
         return;
     }
     if (GetController(MakerAPI.GetCharacterControl()).IsHairAccessory((int)__instance.slotNo) && ColorMatchToggle.GetSelectedValue())
     {
         Traverse.Create(AccessoriesApi.GetMakerAccessoryPageObject((int)__instance.slotNo).GetComponent <CvsAccessory>()).Field("btnInitColor").GetValue <Button>().transform.parent.gameObject.SetActive(false);
     }
 }
Exemplo n.º 2
0
 private static void ChangeUseColorVisible(ChaCustom.CvsAccessory __instance)
 {
     if (!MakerAPI.InsideAndLoaded)
     {
         return;
     }
     if (AccessoriesApi.SelectedMakerAccSlot == (int)__instance.slotNo && GetController(MakerAPI.GetCharacterControl()).IsHairAccessory((int)__instance.slotNo) && ColorMatchToggle.GetSelectedValue())
     {
         HideAccColors();
     }
 }