Nav mesh progress

This commit is contained in:
dexyfex
2018-05-02 00:28:47 +10:00
Unverified
parent bab6668021
commit b18b1e7672
4 changed files with 64 additions and 38 deletions
+6 -6
View File
@@ -48,7 +48,7 @@ namespace CodeWalker.Project.Panels
AreaIDUpDown.Value = 0;
PartIDUpDown.Value = 0;
PortalIDUpDown.Value = 0;
PortalTypeUpDown.Value = 0;
PortalCountUpDown.Value = 0;
SetCheckedListBoxValues(FlagsCheckedListBox1, 0);
SetCheckedListBoxValues(FlagsCheckedListBox2, 0);
SetCheckedListBoxValues(FlagsCheckedListBox3, 0);
@@ -65,7 +65,7 @@ namespace CodeWalker.Project.Panels
AreaIDUpDown.Value = YnvPoly.AreaID;
PartIDUpDown.Value = YnvPoly.PartID;
PortalIDUpDown.Value = YnvPoly.PortalLinkID;
PortalTypeUpDown.Value = YnvPoly.PortalType;
PortalCountUpDown.Value = YnvPoly.PortalLinkCount;
SetCheckedListBoxValues(FlagsCheckedListBox1, YnvPoly.Flags1);
SetCheckedListBoxValues(FlagsCheckedListBox2, YnvPoly.Flags2);
SetCheckedListBoxValues(FlagsCheckedListBox3, YnvPoly.Flags3);
@@ -152,16 +152,16 @@ namespace CodeWalker.Project.Panels
}
}
private void PortalTypeUpDown_ValueChanged(object sender, EventArgs e)
private void PortalCountUpDown_ValueChanged(object sender, EventArgs e)
{
if (populatingui) return;
if (YnvPoly == null) return;
byte portalunk = (byte)PortalTypeUpDown.Value;
byte portalcount = (byte)PortalCountUpDown.Value;
lock (ProjectForm.ProjectSyncRoot)
{
if (YnvPoly.PortalType != portalunk)
if (YnvPoly.PortalLinkCount != portalcount)
{
YnvPoly.PortalType = portalunk;
YnvPoly.PortalLinkCount = portalcount;
ProjectForm.SetYnvHasChanged(true);
}
}