mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-30 16:29:14 +00:00
49 lines
1.1 KiB
C#
49 lines
1.1 KiB
C#
using System;
|
|
using System.Windows.Forms;
|
|
using Bfres.Structs;
|
|
using Syroot.NintenTools.NSW.Bfres;
|
|
using ResU = Syroot.NintenTools.Bfres;
|
|
using Switch_Toolbox.Library;
|
|
|
|
namespace FirstPlugin
|
|
{
|
|
public partial class BoneInfoPanel : UserControl
|
|
{
|
|
public BoneInfoPanel()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
BfresBone activeBone;
|
|
|
|
bool Loaded = false;
|
|
public void LoadBone(BfresBone bn)
|
|
{
|
|
Loaded = false;
|
|
|
|
activeBone = bn;
|
|
|
|
parentTB.Text = "";
|
|
|
|
if (bn.parentIndex != -1)
|
|
parentTB.Text = bn.Parent.Text;
|
|
|
|
nameIndexUD.Value = bn.GetIndex();
|
|
|
|
nameTB.Bind(bn, "BoneName");
|
|
parentIndexUD.Bind(bn, "parentIndex");
|
|
visibleChk.Bind(bn, "Visible");
|
|
|
|
Loaded = true;
|
|
}
|
|
|
|
private void nameTB_TextChanged(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void visibleChk_CheckedChanged(object sender, EventArgs e) {
|
|
LibraryGUI.Instance.UpdateViewport();
|
|
}
|
|
}
|
|
}
|