1
0
mirror of synced 2025-01-19 01:14:08 +01:00

Apply bone billboard flags

This commit is contained in:
KillzXGaming 2019-04-30 18:30:18 -04:00
parent 819568b636
commit 21255d7c31
5 changed files with 15 additions and 0 deletions

Binary file not shown.

View File

@ -693,6 +693,7 @@
this.billboardModeCB.ReadOnly = true;
this.billboardModeCB.Size = new System.Drawing.Size(144, 21);
this.billboardModeCB.TabIndex = 0;
this.billboardModeCB.SelectedIndexChanged += new System.EventHandler(this.billboardModeCB_SelectedIndexChanged);
//
// stDropDownPanel4
//

View File

@ -211,5 +211,19 @@ namespace FirstPlugin
{
}
private void billboardModeCB_SelectedIndexChanged(object sender, EventArgs e) {
if (activeBone == null || !IsLoaded)
return;
if (activeBone.BoneU != null)
{
activeBone.BoneU.FlagsBillboard = (ResU.BoneFlagsBillboard)billboardModeCB.SelectedItem;
}
else
{
activeBone.Bone.FlagsBillboard = (BoneFlagsBillboard)billboardModeCB.SelectedItem;
}
}
}
}