Ejemplo n.º 1
0
        private void InitResourceTypeManager()
        {
            ResourceTypeManager.Init();

            ResourceTypeManager.Instance.Register(new ResourceType(RESOURCE_TYPE_ENTITY_TYPE_NAME, "Entity Type", new string[]
            {
                RESOURCE_TYPE_ENTITY_TYPE_EXTENSION
            }, DefaultResourceTypeImages.EntityType_16));

            ResourceTypeManager.Instance.Register(new ResourceType("Configuration", "Configuration File", new string[]
            {
                "config"
            }, DefaultResourceTypeImages.Config_16));
        }
Ejemplo n.º 2
0
        private void InitResourceTypeManager()
        {
            ResourceTypeManager.Init();

            ResourceTypeManager.Instance.Register(new EntityTypeResourceType("EntityType", "Entity Type", new string[]
            {
                "type"
            }, DefaultResourceTypeImages.EntityType_16));

            ResourceTypeManager.Instance.Register(new ConfigurationResourceType("Configuration", "Configuration File", new string[]
            {
                "config"
            }, DefaultResourceTypeImages.Config_16));
        }
Ejemplo n.º 3
0
        private void DebugForm_Load(object sender, EventArgs e)
        {
            RefreshAll();

            ResourceUtils.OnUITypeEditorEditValue += new ResourceUtils.OnUITypeEditorEditValueDelegate(ResourceUtils_OnUITypeEditorEditValue);

            ResourceTypeManager.Init();

            //Register default types
            ResourceTypeManager.Instance.Register(new ResourceType("Texture", "Texture",
                                                                   new string[] {
                "jpg", "jif", "jpeg", "jpe", "tga", "targa", "dds", "png", "bmp", "psd", "hdr", "ico",
                "gif", "tif", "tiff", "exr", "j2k", "j2c", "jp2"
            },
                                                                   DefaultResourceTypeImages.GetByName("Texture_16")));
            ResourceTypeManager.Instance.Register(new ResourceType("Mesh", "Mesh",
                                                                   new string[] { "mesh" }, DefaultResourceTypeImages.GetByName("Mesh_16")));
            ResourceTypeManager.Instance.Register(new ResourceType("PhysicsModel", "Physics Model",
                                                                   new string[] { "physics" }, DefaultResourceTypeImages.GetByName("PhysicsModel_16")));
            ResourceTypeManager.Instance.Register(new ResourceType("EntityType", "Entity Type",
                                                                   new string[] { "type" }, DefaultResourceTypeImages.GetByName("EntityType_16")));
            ResourceTypeManager.Instance.Register(new ResourceType("ParticleSystem", "Particle System",
                                                                   new string[] { "particle" },
                                                                   DefaultResourceTypeImages.GetByName("ParticleSystem_16")));
            ResourceTypeManager.Instance.Register(new ResourceType("Material", "Material",
                                                                   new string[] { "highMaterial" }, DefaultResourceTypeImages.GetByName("Material_16")));
            ResourceTypeManager.Instance.Register(new ResourceType("GUI", "Graphic User Interface",
                                                                   new string[] { "gui" }, DefaultResourceTypeImages.GetByName("Gui_16")));
            ResourceTypeManager.Instance.Register(new ResourceType("Sound", "Sound",
                                                                   new string[] { "ogg", "wav" }, DefaultResourceTypeImages.GetByName("Sound_16")));
            ResourceTypeManager.Instance.Register(new ResourceType("Video", "Video",
                                                                   new string[] { "ogv" }, DefaultResourceTypeImages.GetByName("Video_16")));
            ResourceTypeManager.Instance.Register(new ResourceType("Language", "Language",
                                                                   new string[] { "language" }, DefaultResourceTypeImages.GetByName("Language_16")));
            ResourceTypeManager.Instance.Register(new ResourceType("Skeleton", "Skeleton",
                                                                   new string[] { "skeleton" }, DefaultResourceTypeImages.GetByName("Skeleton_16")));
            ResourceTypeManager.Instance.Register(new ResourceType("FontDefinition", "Font Definition",
                                                                   new string[] { "fontDefinition" }, DefaultResourceTypeImages.GetByName("FontDefinition_16")));
            ResourceTypeManager.Instance.Register(new ResourceType("AnimationTree", "Animation Tree",
                                                                   new string[] { "animationTree" }, DefaultResourceTypeImages.GetByName("AnimationTree_16")));
        }