Beispiel #1
0
 public void RegisterInputWindow(Dictionary <string, Func <AttrItem, string, InputWindow> > target)
 {
     target.Add("bool", (source, toEdit) => new Selector(toEdit
                                                         , InputWindowSelector.SelectComboBox("bool"), "Input Bool"));
     target.Add("sineinterpolation", (source, toEdit) => new Selector(toEdit
                                                                      , InputWindowSelector.SelectComboBox("sineinterpolation"), "Input Sine Interpolation Mode"));
     target.Add("code", (source, toEdit) => new CodeInput(toEdit));
     target.Add("userDefinedNode", (source, toEdit) => new NodeDefInput(toEdit, source));
     target.Add("plainFile", (src, tar) => new PathInput(tar, "File (*.*)|*.*", src));
 }
 public override TreeNode GetTreeNode(DocumentData documentData)
 {
     return(new CreateSimpleBullet(documentData,
                                   InputWindowSelector.SelectComboBox("bulletStyle")[0],
                                   InputWindowSelector.SelectComboBox("color")[0],
                                   string.Join("+", PositionX.Select((s) => $"({s})")) + "," + string.Join("+", PositionY.Select((s) => $"({s})")),
                                   string.Join("*", Velocity.Select((s) => $"({s})")),
                                   string.Join("+", Angle.Select((s) => $"({s})")),
                                   "false",
                                   "0",
                                   "false",
                                   "true",
                                   "0",
                                   "false",
                                   "0",
                                   "0",
                                   "0",
                                   "false"));
 }