private void RemovePathLink() { if (CurrentPathLink == null) { return; } if (CurrentPathNode == null) { return; } var r = CurrentPathNode.RemoveLink(CurrentPathLink); if (!r) { return; } LoadPathNodeTabPage(); if (ProjectForm.WorldForm != null) { ProjectForm.WorldForm.UpdatePathNodeGraphics(CurrentPathNode, false); } }
private void PathNodePositionTextBox_TextChanged(object sender, EventArgs e) { if (populatingui) { return; } if (CurrentPathNode == null) { return; } Vector3 v = FloatUtil.ParseVector3String(PathNodePositionTextBox.Text); bool change = false; lock (ProjectForm.ProjectSyncRoot) { if (CurrentPathNode.Position != v) { CurrentPathNode.SetPosition(v); ProjectForm.SetYndHasChanged(true); change = true; } } if (change) { if (ProjectForm.WorldForm != null) { ProjectForm.WorldForm.SetWidgetPosition(CurrentPathNode.Position); ProjectForm.WorldForm.UpdatePathNodeGraphics(CurrentPathNode, false); } //PathNodePositionTextBox.Text = FloatUtil.GetVector3String(CurrentPathNode.Position); } }
private void AddPathLink() { if (CurrentPathNode == null) { return; } var l = CurrentPathNode.AddLink(); LoadPathNodeTabPage(); PathNodeLinksListBox.SelectedItem = l; if (ProjectForm.WorldForm != null) { ProjectForm.WorldForm.UpdatePathNodeGraphics(CurrentPathNode, false); } }