Exemplo n.º 1
0
        public void Register(IPluginHost host)
        {
            host.RegisterType <double>("#FF0000", "Number", 0.0, "NumberEditor", "StringDisplay", true);
            host.RegisterType <string>("#0000FF", "Text", "", "StringEditor", "StringDisplay", true);
            host.RegisterType <bool>("#00FFFF", "Condition", false, "BoolEditor", "StringDisplay", true);
            host.RegisterType <Action>("00FF00", "Button", null, "DefaultDisplay", "ActionDisplay", false);

            host.RegisterDisplay <IControl>("DefaultDisplay", typeof(DefaultDisplay));
            host.RegisterDisplay <IControl>("StringDisplay", typeof(StringDisplay));
            host.RegisterDisplay <IControl>("ActionDisplay", typeof(ActionDisplay));
            host.RegisterEditor <IControl>("NumberEditor", typeof(NumberEditor));
            host.RegisterEditor <IControl>("StringEditor", typeof(StringEditor));
            host.RegisterEditor <IControl>("EnumEditor", typeof(EnumEditor));
            host.RegisterEditor <IControl>("SliderEditor", typeof(SliderEditor));
            host.RegisterEditor <IControl>("BoolEditor", typeof(BoolEditor));
            host.RegisterEditor <IControl>("ToggleSwitch", typeof(UserControls.ToggleSwitch));
            host.RegisterEditor <IControl>("CheckBox", typeof(UserControls.CheckBox));


            host.AddNodeToMenu <NodeAdd, NodeDifference, NodeMultiply, NodeDivide, SliderTest>("Number", "Arithmetic");
            host.AddNodeToMenu <NodeSine>("Number", "Functions");
            host.AddNodeToMenu <Equal>("Number", "Comparisons");
            host.AddNodeToMenu <Node_Join_Strings, CharacterCounter>("Text");
            host.AddNodeToMenu <FlowSwitch, WaitForTrigger>("Flow Control");
        }
Exemplo n.º 2
0
        public void Register(IPluginHost host)
        {
            host.RegisterType <MouseButtons>("#FFFF00", "Mouse Button", MouseButtons.Left, "EnumEditor", "StringDisplay");
            host.RegisterType <Keys>("#FFA500", "Keyboard Button", Keys.A, "EnumEditor", "StringDisplay");

            host.AddNodeToMenu <MouseButtonTrigger>("Mouse", "Triggers");

            host.AddNodeToMenu <KeyboardButtonTrigger, KeyCombinationTrigger>("Keyboard", "Triggers");

            host.AddNodeToMenu <KeyPresser, TextTyper>("Keyboard", "Output");
        }
Exemplo n.º 3
0
        public void Register(IPluginHost host)
        {
            host.RegisterType <AllWindowsLayout>("#00FF00", "Window Layout", new AllWindowsLayout(), null, null, false);
            host.RegisterType <WindowStub>("#7D3E11", "Window", null, null, null, false);
            host.RegisterType <WindowLayout>("#00b9bc", "Window Position", null, null, null, false);


            host.AddNodeToMenu <WindowLayoutChanged>("Triggers");
            host.AddNodeToMenu <SetWindowLayout, SetWindowPos, GetWindowPos>("Window Management");
            // host.AddNodeToMenu<NotifyUser>("Interactivity");
        }
Exemplo n.º 4
0
        public void Register(IPluginHost host)
        {
            host.RegisterType <MouseButtons>("#FFFF00", "Mouse Button", MouseButtons.Left, "EnumEditor", "StringDisplay", true, null);
            host.RegisterType <KeyboardKey>("#FFA500", "Keyboard Button", new KeyboardKey((int)Keys.A), "KeyboardKeyEditor", "StringDisplay", true, new KeyboardKeySerializer());

            host.RegisterEditor <IControl, KeyboardKeyEditor>("KeyboardKeyEditor");

            host.AddNodeToMenu <MouseButtonTrigger, KeyboardButtonTrigger, KeyCombinationTrigger, TextTypedTrigger>("Triggers");

            // host.AddNodeToMenu<MouseButtonTrigger>("Mouse", "Triggers");

            host.AddNodeToMenu <KeyPresser, TextTyper, IsKeyDown>("Input", "Keyboard");
        }
Exemplo n.º 5
0
        public void Register(IPluginHost host)
        {
            host.RegisterType <AllWindowsLayout>("#00FF00", "Window Layout", new AllWindowsLayout(), null, null, false, null);
            host.RegisterType <Window.Window>("#00b38c", "Window", new Window.Window {
                hWnd = IntPtr.Zero
            }, null, null, false, null);
            host.RegisterType <Rectangle>("#0091bf", "Rectangle", new Rectangle(), null, null, false, null);
            host.RegisterType <Point>("#176931", "Point", null, null, null, true, null);

            host.AddNodeToMenu <WindowLayoutChanged, WindowMoved>("Triggers");
            host.AddNodeToMenu <SetWindowLayout, SetWindowPos, GetWindowPos, CurrentMonitorRect>("Window Management");
            host.AddNodeToMenu <CursorPosition>("Input", "Mouse");
            host.AddNodeToMenu <CustomRectangleNode>("Shapes");
            // host.AddNodeToMenu<NotifyUser>("Interactivity");
        }
Exemplo n.º 6
0
        public void Register(IPluginHost host)
        {
            host.RegisterType <double>("#FF0000", "Number", 0.0, "NumberEditor", "StringDisplay");
            host.RegisterType <string>("#0000FF", "Text", "", "StringEditor", "StringDisplay");
            host.RegisterType <bool>("#00FFFF", "Condition", false, "StringDisplay", "StringDisplay");
            host.RegisterType <Action>("00FF00", "Button", null, "DefaultDisplay", "ActionDisplay");
            host.RegisterType <MouseButtonEnum>("#FFFF00", "Mouse Button", MouseButtonEnum.LeftButton, "EnumEditor", "StringDisplay");

            host.RegisterDisplay <IControl>("DefaultDisplay", typeof(DefaultDisplay));
            host.RegisterDisplay <IControl>("StringDisplay", typeof(StringDisplay));
            host.RegisterDisplay <IControl>("ActionDisplay", typeof(ActionDisplay));
            host.RegisterEditor <IControl>("NumberEditor", typeof(NumberEditor));
            host.RegisterEditor <IControl>("StringEditor", typeof(StringEditor));
            host.RegisterEditor <IControl>("EnumEditor", typeof(EnumEditor));
            host.RegisterEditor <IControl>("SliderEditor", typeof(SliderEditor));


            host.AddNodeToMenu <NodeAdd, NodeDifference, NodeMultiply, NodeDivide, SliderTest>("Number", "Arithmetic");
            host.AddNodeToMenu <NodeSine>("Number", "Functions");
            host.AddNodeToMenu <Equal>("Number", "Comparisons");
            host.AddNodeToMenu <Node_Join_Strings>("Text");
            host.AddNodeToMenu <FlowSwitch>("Flow Control");
            host.AddNodeToMenu <MouseButton>("Input", "Mouse");
        }