Skip to content

Commit

Permalink
IVCS -> IVCS Compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
RisaDev committed Jul 29, 2024
1 parent 8fcfe9e commit 0d6f36e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions CustomizePlus/Core/Data/BoneData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public enum BoneFamily
{ BoneFamily.Arms, null },
{ BoneFamily.Hands, null },
{ BoneFamily.Tail, null },
{ BoneFamily.Groin, "NSFW IVCS Bones" },
{ BoneFamily.Groin, "NSFW IVCS Compatible Bones" },
{ BoneFamily.Legs, null },
{ BoneFamily.Feet, null },
{ BoneFamily.Earrings, "Some mods utilize these bones for their physics properties" },
Expand Down Expand Up @@ -449,9 +449,9 @@ public static int GetBoneRanking(string codename)
return BoneTable.TryGetValue(codename, out var row) ? row.RowIndex : 0;
}

public static bool IsIVCSBone(string codename)
public static bool IsIVCSCompatibleBone(string codename)
{
return BoneTable.TryGetValue(codename, out var row) && row.IsIVCS;
return BoneTable.TryGetValue(codename, out var row) && row.IsIVCSCompatible;
}

public static string? GetBoneMirror(string codename)
Expand Down Expand Up @@ -518,7 +518,7 @@ public struct BoneDatum : IComparable<BoneDatum>
public BoneFamily Family;

public bool IsDefault;
public bool IsIVCS;
public bool IsIVCSCompatible;

public string? Parent;
public string? MirroredCodename;
Expand All @@ -537,7 +537,7 @@ public BoneDatum(int row, string[] fields)
Family = ParseFamilyName(fields[i++]);

IsDefault = bool.Parse(fields[i++]);
IsIVCS = bool.Parse(fields[i++]);
IsIVCSCompatible = bool.Parse(fields[i++]);

Parent = fields[i].IsNullOrEmpty() ? null : fields[i];
i++;
Expand Down Expand Up @@ -595,7 +595,7 @@ private static IEnumerable<BoneDatum> ParseHairstyle(params string[] boneNames)
DisplayName = dispName.ToString(),
Family = BoneFamily.Hair,
IsDefault = false,
IsIVCS = false,
IsIVCSCompatible = false,
Parent = "j_kao",
Children = Array.Empty<string>(),
MirroredCodename = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ private void CompleteBoneEditor(EditRowParams bone)

//----------------------------------
ImGui.TableNextColumn();
CtrlHelper.StaticLabel(displayName, CtrlHelper.TextAlignment.Left, BoneData.IsIVCSBone(codename) ? $"(IVCS) {codename}" : codename);
CtrlHelper.StaticLabel(displayName, CtrlHelper.TextAlignment.Left, BoneData.IsIVCSCompatibleBone(codename) ? $"(IVCS Compatible) {codename}" : codename);

if (flagUpdate)
{
Expand All @@ -488,7 +488,7 @@ private void CompleteBoneEditor(EditRowParams bone)
_editorManager.ModifyBoneTransform(codename, transform);
if (_isMirrorModeEnabled && bone.Basis?.TwinBone != null) //todo: put it inside manager
_editorManager.ModifyBoneTransform(bone.Basis.TwinBone.BoneName,
BoneData.IsIVCSBone(codename) ? transform.GetSpecialReflection() : transform.GetStandardReflection());
BoneData.IsIVCSCompatibleBone(codename) ? transform.GetSpecialReflection() : transform.GetStandardReflection());
}

ImGui.TableNextRow();
Expand Down

0 comments on commit 0d6f36e

Please sign in to comment.