コード例 #1
0
ファイル: RulePanel.cs プロジェクト: garethhubball/NodeMarkup
 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;
 }
コード例 #2
0
ファイル: RulePanel.cs プロジェクト: garethhubball/NodeMarkup
 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;
 }
コード例 #3
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;
 }
コード例 #4
0
 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;
 }
コード例 #5
0
ファイル: RulePanel.cs プロジェクト: MacSergey/NodeMarkup
 private void OnSelectPanel(RuleEdgeSelectPropertyPanel panel) => Editor.SelectRuleEdge(panel);