private void AddToProperty() { To = AddUIComponent <MarkupLineSelectPropertyPanel>(); To.Text = NodeMarkup.Localize.LineEditor_To; To.Position = EdgePosition.End; To.Init(); To.OnSelect += (panel) => Editor.SelectRuleEdge(panel); To.OnHover += Editor.HoverRuleEdge; To.OnLeave += Editor.LeaveRuleEdge; }
private void AddFromProperty() { From = AddUIComponent <MarkupLineSelectPropertyPanel>(); From.Text = NodeMarkup.Localize.LineEditor_From; From.Position = EdgePosition.Start; From.Init(); From.OnSelect += (panel) => Editor.SelectRuleEdge(panel); From.OnHover += Editor.HoverRuleEdge; From.OnLeave += Editor.LeaveRuleEdge; }
private void AddFromProperty() { From = AddUIComponent <MarkupLineSelectPropertyPanel>(); From.Text = NodeMarkup.Localize.LineEditor_From; From.Position = RulePosition.Start; From.Init(); From.AddRange(Editor.SupportPoints); From.SelectedObject = Rule.From; From.OnSelectChanged += FromChanged; From.OnSelect += ((panel) => Editor.SelectRuleEdge(panel)); From.OnHover += Editor.HoverRuleEdge; From.OnLeave += Editor.LeaveRuleEdge; }
private void AddToProperty() { To = AddUIComponent <MarkupLineSelectPropertyPanel>(); To.Text = NodeMarkup.Localize.LineEditor_To; To.Position = RulePosition.End; To.Init(); To.AddRange(Editor.SupportPoints); To.SelectedObject = Rule.To; To.OnSelectChanged += ToChanged; To.OnSelect += (panel) => Editor.SelectRuleEdge(panel); To.OnHover += Editor.HoverRuleEdge; To.OnLeave += Editor.LeaveRuleEdge; }
private void OnSelectPanel(RuleEdgeSelectPropertyPanel panel) => Editor.SelectRuleEdge(panel);