IVCS -> IVCS Compatible
This commit is contained in:
@@ -310,7 +310,7 @@ public static class BoneData //todo: DI, do not show IVCS unless IVCS is install
|
|||||||
{ BoneFamily.Arms, null },
|
{ BoneFamily.Arms, null },
|
||||||
{ BoneFamily.Hands, null },
|
{ BoneFamily.Hands, null },
|
||||||
{ BoneFamily.Tail, null },
|
{ BoneFamily.Tail, null },
|
||||||
{ BoneFamily.Groin, "NSFW IVCS Bones" },
|
{ BoneFamily.Groin, "NSFW IVCS Compatible Bones" },
|
||||||
{ BoneFamily.Legs, null },
|
{ BoneFamily.Legs, null },
|
||||||
{ BoneFamily.Feet, null },
|
{ BoneFamily.Feet, null },
|
||||||
{ BoneFamily.Earrings, "Some mods utilize these bones for their physics properties" },
|
{ 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;
|
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)
|
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 BoneFamily Family;
|
||||||
|
|
||||||
public bool IsDefault;
|
public bool IsDefault;
|
||||||
public bool IsIVCS;
|
public bool IsIVCSCompatible;
|
||||||
|
|
||||||
public string? Parent;
|
public string? Parent;
|
||||||
public string? MirroredCodename;
|
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++]);
|
Family = ParseFamilyName(fields[i++]);
|
||||||
|
|
||||||
IsDefault = bool.Parse(fields[i++]);
|
IsDefault = bool.Parse(fields[i++]);
|
||||||
IsIVCS = bool.Parse(fields[i++]);
|
IsIVCSCompatible = bool.Parse(fields[i++]);
|
||||||
|
|
||||||
Parent = fields[i].IsNullOrEmpty() ? null : fields[i];
|
Parent = fields[i].IsNullOrEmpty() ? null : fields[i];
|
||||||
i++;
|
i++;
|
||||||
@@ -595,7 +595,7 @@ public static class BoneData //todo: DI, do not show IVCS unless IVCS is install
|
|||||||
DisplayName = dispName.ToString(),
|
DisplayName = dispName.ToString(),
|
||||||
Family = BoneFamily.Hair,
|
Family = BoneFamily.Hair,
|
||||||
IsDefault = false,
|
IsDefault = false,
|
||||||
IsIVCS = false,
|
IsIVCSCompatible = false,
|
||||||
Parent = "j_kao",
|
Parent = "j_kao",
|
||||||
Children = Array.Empty<string>(),
|
Children = Array.Empty<string>(),
|
||||||
MirroredCodename = null
|
MirroredCodename = null
|
||||||
|
|||||||
@@ -479,7 +479,7 @@ public class BoneEditorPanel
|
|||||||
|
|
||||||
//----------------------------------
|
//----------------------------------
|
||||||
ImGui.TableNextColumn();
|
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)
|
if (flagUpdate)
|
||||||
{
|
{
|
||||||
@@ -488,7 +488,7 @@ public class BoneEditorPanel
|
|||||||
_editorManager.ModifyBoneTransform(codename, transform);
|
_editorManager.ModifyBoneTransform(codename, transform);
|
||||||
if (_isMirrorModeEnabled && bone.Basis?.TwinBone != null) //todo: put it inside manager
|
if (_isMirrorModeEnabled && bone.Basis?.TwinBone != null) //todo: put it inside manager
|
||||||
_editorManager.ModifyBoneTransform(bone.Basis.TwinBone.BoneName,
|
_editorManager.ModifyBoneTransform(bone.Basis.TwinBone.BoneName,
|
||||||
BoneData.IsIVCSBone(codename) ? transform.GetSpecialReflection() : transform.GetStandardReflection());
|
BoneData.IsIVCSCompatibleBone(codename) ? transform.GetSpecialReflection() : transform.GetStandardReflection());
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui.TableNextRow();
|
ImGui.TableNextRow();
|
||||||
|
|||||||
Reference in New Issue
Block a user