mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-16 14:04:51 +08:00
Nav mesh progress
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user