예제 #1
0
 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;
 }