Example #1
0
 static visualScriptType()
 {
     Type             = new DomNodeType("visualScriptType", moduleType.Type);
     moduleChild      = Type.DefineNewChildInfo("module", moduleType.Type, true);
     connectionChild  = Type.DefineNewChildInfo("connection", connectionType.Type, true);
     layerFolderChild = Type.DefineNewChildInfo("layerFolder", layerFolderType.Type, true);
     expressionChild  = Type.DefineNewChildInfo("expression", expressionType.Type, true);
     annotationChild  = Type.DefineNewChildInfo("annotation", annotationType.Type, true);
 }
Example #2
0
 static prototypeFolderType()
 {
     Type                 = new DomNodeType("prototypeFolderType");
     nameAttribute        = Type.DefineNewAttributeInfo("name", AttributeType.StringType);
     prototypeFolderChild = Type.DefineNewChildInfo("prototypeFolder", prototypeFolderType.Type, true);
     prototypeChild       = Type.DefineNewChildInfo("prototype", prototypeType.Type, true);
     Type.SetTag(new System.ComponentModel.PropertyDescriptorCollection(new PropertyDescriptor[] {
         new AttributePropertyDescriptor("name".Localize(), nameAttribute, null, "name".Localize(), false, null, null),
     }));
 }
Example #3
0
        static moduleType()
        {
            Type                         = new DomNodeType("moduleType");
            nameAttribute                = Type.DefineNewAttributeInfo("name", AttributeType.StringType, defaultValue: "module");
            labelAttribute               = Type.DefineNewAttributeInfo("label", AttributeType.StringType);
            xAttribute                   = Type.DefineNewAttributeInfo("x", AttributeType.IntType);
            yAttribute                   = Type.DefineNewAttributeInfo("y", AttributeType.IntType);
            visibleAttribute             = Type.DefineNewAttributeInfo("visible", AttributeType.BooleanType, defaultValue: true);
            showUnconnectedPinsAttribute = Type.DefineNewAttributeInfo("showUnconnectedPins", AttributeType.BooleanType, defaultValue: true);
            sourceGuidAttribute          = Type.DefineNewAttributeInfo("sourceGuid", AttributeType.StringType);
            validatedAttribute           = Type.DefineNewAttributeInfo("validated", AttributeType.BooleanType, true);
            dynamicPropertyChild         = Type.DefineNewChildInfo("dynamicProperty", dynamicPropertyType.Type, true);

            Type.SetIdAttribute(nameAttribute);
            Type.SetTag(new System.ComponentModel.PropertyDescriptorCollection(new PropertyDescriptor[] {
                new AttributePropertyDescriptor("name".Localize(), nameAttribute, null, "name".Localize(), false, null, null),
                new AttributePropertyDescriptor("label".Localize(), labelAttribute, null, "label".Localize(), false, null, null),
                new AttributePropertyDescriptor("x".Localize(), xAttribute, null, "x".Localize(), false, null, null),
                new AttributePropertyDescriptor("y".Localize(), yAttribute, null, "y".Localize(), false, null, null),
                new AttributePropertyDescriptor("visible".Localize(), visibleAttribute, null, "visible".Localize(), false, null, null),
                new AttributePropertyDescriptor("showUnconnectedPins".Localize(), showUnconnectedPinsAttribute, null, "showUnconnectedPins".Localize(), false, null, null),
                new AttributePropertyDescriptor("sourceGuid".Localize(), sourceGuidAttribute, null, "sourceGuid".Localize(), false, null, null),
                new AttributePropertyDescriptor("validated".Localize(), validatedAttribute, null, "validated".Localize(), false, null, null),
            }));
        }
Example #4
0
        static groupType()
        {
            Type          = new DomNodeType("groupType", moduleType.Type);
            nameAttribute = Type.DefineNewAttributeInfo("name", AttributeType.StringType, defaultValue: "group");
            //nameAttribute = moduleType.nameAttribute;
            labelAttribute                 = moduleType.labelAttribute;
            xAttribute                     = moduleType.xAttribute;
            yAttribute                     = moduleType.yAttribute;
            visibleAttribute               = moduleType.visibleAttribute;
            showUnconnectedPinsAttribute   = moduleType.showUnconnectedPinsAttribute;
            sourceGuidAttribute            = moduleType.sourceGuidAttribute;
            validatedAttribute             = moduleType.validatedAttribute;
            expandedAttribute              = Type.DefineNewAttributeInfo("expanded", AttributeType.BooleanType, defaultValue: true);
            showExpandedGroupPinsAttribute = Type.DefineNewAttributeInfo("showExpandedGroupPins", AttributeType.BooleanType, defaultValue: true);
            autosizeAttribute              = Type.DefineNewAttributeInfo("autosize", AttributeType.BooleanType, defaultValue: true);
            widthAttribute                 = Type.DefineNewAttributeInfo("width", AttributeType.IntType);
            heightAttribute                = Type.DefineNewAttributeInfo("height", AttributeType.IntType);
            minwidthAttribute              = Type.DefineNewAttributeInfo("minwidth", AttributeType.IntType);
            minheightAttribute             = Type.DefineNewAttributeInfo("minheight", AttributeType.IntType);
            dynamicPropertyChild           = moduleType.dynamicPropertyChild;
            inputChild                     = Type.DefineNewChildInfo("input", groupSocketType.Type, true);
            outputChild                    = Type.DefineNewChildInfo("output", groupSocketType.Type, true);
            moduleChild                    = Type.DefineNewChildInfo("module", moduleType.Type, true);
            connectionChild                = Type.DefineNewChildInfo("connection", connectionType.Type, true);
            annotationChild                = Type.DefineNewChildInfo("annotation", annotationType.Type, true);


            Type.SetIdAttribute(nameAttribute);
            Type.SetTag(new System.ComponentModel.PropertyDescriptorCollection(new PropertyDescriptor[] {
                new AttributePropertyDescriptor("name".Localize(), nameAttribute, null, "name".Localize(), false, null, null),
                new AttributePropertyDescriptor("label".Localize(), labelAttribute, null, "label".Localize(), false, null, null),
                new AttributePropertyDescriptor("x".Localize(), xAttribute, null, "x".Localize(), false, null, null),
                new AttributePropertyDescriptor("y".Localize(), yAttribute, null, "y".Localize(), false, null, null),
                new AttributePropertyDescriptor("visible".Localize(), visibleAttribute, null, "visible".Localize(), false, null, null),
                new AttributePropertyDescriptor("showUnconnectedPins".Localize(), showUnconnectedPinsAttribute, null, "showUnconnectedPins".Localize(), false, null, null),
                new AttributePropertyDescriptor("sourceGuid".Localize(), sourceGuidAttribute, null, "sourceGuid".Localize(), false, null, null),
                new AttributePropertyDescriptor("validated".Localize(), validatedAttribute, null, "validated".Localize(), false, null, null),
                new AttributePropertyDescriptor("expanded".Localize(), expandedAttribute, null, "expanded".Localize(), false, null, null),
                new AttributePropertyDescriptor("showExpandedGroupPins".Localize(), showExpandedGroupPinsAttribute, null, "showExpandedGroupPins".Localize(), false, null, null),
                new AttributePropertyDescriptor("autosize".Localize(), autosizeAttribute, null, "autosize".Localize(), false, null, null),
                new AttributePropertyDescriptor("width".Localize(), widthAttribute, null, "width".Localize(), false, null, null),
                new AttributePropertyDescriptor("height".Localize(), heightAttribute, null, "height".Localize(), false, null, null),
                new AttributePropertyDescriptor("minwidth".Localize(), minwidthAttribute, null, "minwidth".Localize(), false, null, null),
                new AttributePropertyDescriptor("minheight".Localize(), minheightAttribute, null, "minheight".Localize(), false, null, null),
            }));
        }
Example #5
0
        static templateType()
        {
            Type           = new DomNodeType("templateType");
            guidAttribute  = Type.DefineNewAttributeInfo("guid", AttributeType.StringType);
            labelAttribute = Type.DefineNewAttributeInfo("label", AttributeType.StringType);
            moduleChild    = Type.DefineNewChildInfo("module", moduleType.Type);

            Type.SetIdAttribute(guidAttribute);
            Type.SetTag(new System.ComponentModel.PropertyDescriptorCollection(
                            new PropertyDescriptor[] {
                new AttributePropertyDescriptor("guid".Localize(), templateType.guidAttribute, null, "guid".Localize(), false, null, null),
                new AttributePropertyDescriptor("label".Localize(), templateType.labelAttribute, null, "label".Localize(), false, null, null),
            }));
        }
Example #6
0
        static visualScriptDocumentType()
        {
            Type                 = new DomNodeType("visualScriptDocumentType", visualScriptType.Type);
            versionAttribute     = Type.DefineNewAttributeInfo("version", AttributeType.StringType, "0.1");
            moduleChild          = Type.DefineNewChildInfo("module", moduleType.Type, true);
            connectionChild      = Type.DefineNewChildInfo("connection", connectionType.Type, true);
            layerFolderChild     = Type.DefineNewChildInfo("layerFolder", layerFolderType.Type, true);
            expressionChild      = Type.DefineNewChildInfo("expression", expressionType.Type, true);
            annotationChild      = Type.DefineNewChildInfo("annotation", annotationType.Type, true);
            prototypeFolderChild = Type.DefineNewChildInfo("prototypeFolder", prototypeFolderType.Type, false);
            templateFolderChild  = Type.DefineNewChildInfo("templateFolder", templateFolderType.Type, false);

            Type.SetTag(new System.ComponentModel.PropertyDescriptorCollection(new PropertyDescriptor[] {
                new AttributePropertyDescriptor("version".Localize(), versionAttribute, null, "version".Localize(), false, null, null),
            }));
        }