Example #1
0
 public bool SelectBorder(CrosswalkBorderSelectPropertyPanel selectPanel, Func <Event, bool> afterAction)
 {
     if (Tool.Mode == CrosswalkBorderToolMode && selectPanel == CrosswalkBorderToolMode.SelectPanel)
     {
         Tool.SetDefaultMode();
         return(true);
     }
     else
     {
         Tool.SetMode(CrosswalkBorderToolMode);
         CrosswalkBorderToolMode.SelectPanel      = selectPanel;
         CrosswalkBorderToolMode.AfterSelectPanel = afterAction;
         selectPanel.Focus();
         return(false);
     }
 }
Example #2
0
        private void FillBorder(CrosswalkBorderSelectPropertyPanel panel, Action <MarkupRegularLine> action, MarkupRegularLine[] lines, MarkupRegularLine value)
        {
            panel.OnValueChanged -= action;
            panel.Clear();
            panel.AddRange(lines);
            panel.Value = value;

            if (Settings.ShowPanelTip)
            {
                panel.isVisible     = true;
                panel.EnableControl = lines.Any();
            }
            else
            {
                panel.EnableControl = true;
                panel.isVisible     = lines.Any();
            }

            panel.OnValueChanged += action;
        }
Example #3
0
 public bool SelectBorder(CrosswalkBorderSelectPropertyPanel selectPanel) => SelectBorder(selectPanel, null);
Example #4
0
 public void LeaveBorder(CrosswalkBorderSelectPropertyPanel selectPanel) => HoverBorderPanel = null;
Example #5
0
 public void HoverBorder(CrosswalkBorderSelectPropertyPanel selectPanel) => HoverBorderPanel = selectPanel;