mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-14 08:58:09 +00:00
Add more aamp hashes
This commit is contained in:
parent
c648a78de9
commit
7632cc10da
9 changed files with 24 additions and 1 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -550,7 +550,29 @@ namespace Bfres.Structs
|
|||
RenameDialog dialog = new RenameDialog();
|
||||
dialog.SetString(Text);
|
||||
|
||||
if (dialog.ShowDialog() == DialogResult.OK) { BoneName = dialog.textBox1.Text; }
|
||||
if (dialog.ShowDialog() == DialogResult.OK) { RenameBone(dialog.textBox1.Text); }
|
||||
}
|
||||
|
||||
//Method to readjust the dictionaries for the skeleton
|
||||
public void RenameBone(string Name)
|
||||
{
|
||||
if (((FSKL)skeletonParent).node.SkeletonU != null)
|
||||
{
|
||||
BoneU.Name = Name;
|
||||
Text = Name;
|
||||
BoneName = Name;
|
||||
|
||||
//Adjust dictionaries
|
||||
var Skeleton = ((FSKL)skeletonParent).node.SkeletonU;
|
||||
Skeleton.Bones.Remove(BoneU);
|
||||
Skeleton.Bones.Add(Name, BoneU);
|
||||
}
|
||||
else
|
||||
{
|
||||
Bone.Name = Name;
|
||||
Text = Name;
|
||||
BoneName = Name;
|
||||
}
|
||||
}
|
||||
|
||||
public void CloneBaseInstance(STBone genericBone)
|
||||
|
|
|
@ -184,6 +184,7 @@ namespace FirstPlugin
|
|||
case Aampv2.ParamType.BufferFloat: return $"{entry.HashString}: !BufferFloat [ {WriteFloats((float[])entry.Value)} ]";
|
||||
case Aampv2.ParamType.BufferInt: return $"{entry.HashString}: !BufferInt [ {WriteInts((int[])entry.Value)} ]";
|
||||
case Aampv2.ParamType.BufferUint: return $"{entry.HashString}: !BufferUint [ {WriteUints((uint[])entry.Value)} ]";
|
||||
case Aampv2.ParamType.Quat: return $"{entry.HashString}: !BufferUint [ {WriteFloats((float[])entry.Value)} ]";
|
||||
case Aampv2.ParamType.Color4F: return $"{entry.HashString}: {WriteColor4F((Vector4F)entry.Value)}";
|
||||
case Aampv2.ParamType.Vector2F: return $"{entry.HashString}: {WriteVec2F((Vector2F)entry.Value)}";
|
||||
case Aampv2.ParamType.Vector3F: return $"{entry.HashString}: {WriteVec3F((Vector3F)entry.Value)}";
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue