IVCS -> IVCS Compatible

This commit is contained in:
RisaDev
2024-07-29 22:20:52 +03:00
parent 8fcfe9e94d
commit 0d6f36e115
2 changed files with 8 additions and 8 deletions

View File

@@ -310,7 +310,7 @@ public static class BoneData //todo: DI, do not show IVCS unless IVCS is install
{ 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" },
@@ -449,9 +449,9 @@ public static class BoneData //todo: DI, do not show IVCS unless IVCS is install
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)
@@ -518,7 +518,7 @@ public static class BoneData //todo: DI, do not show IVCS unless IVCS is install
public BoneFamily Family;
public bool IsDefault;
public bool IsIVCS;
public bool IsIVCSCompatible;
public string? Parent;
public string? MirroredCodename;
@@ -537,7 +537,7 @@ public static class BoneData //todo: DI, do not show IVCS unless IVCS is install
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++;
@@ -595,7 +595,7 @@ public static class BoneData //todo: DI, do not show IVCS unless IVCS is install
DisplayName = dispName.ToString(),
Family = BoneFamily.Hair,
IsDefault = false,
IsIVCS = false,
IsIVCSCompatible = false,
Parent = "j_kao",
Children = Array.Empty<string>(),
MirroredCodename = null

View File

@@ -479,7 +479,7 @@ public class BoneEditorPanel
//----------------------------------
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)
{
@@ -488,7 +488,7 @@ public class BoneEditorPanel
_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();