public bool isFileTypeField(GuiInspectorField field)
 {
     return field.isMemberOfClass("GuiInspectorTypeFileName");
 }
        public string getFullFilePath(GuiInspectorField field)
        {
            string fileName = field.getData();
            GuiInspector inspector = field.getInspector();
            SimObject objectx = inspector.getInspectObject();

            if (objectx.isMemberOfClass("Material"))
                {
                // Image filenames in materials are relative to the material's file.

                string objectPath = Util.filePath(Util.makeFullPath(objectx.getFilename(), Util.getMainDotCsDir()));
                return Util.makeFullPath(fileName, objectPath);
                }
            else
                return Util.makeFullPath(fileName, Util.getMainDotCsDir());
        }
        public bool isObjectTypeField(GuiInspectorField field)
        {
            // Inspector field types that refer to objects.

            switch (field.getClassName())
                {
                    case "GuiInspectorDatablockField":
                    case "GuiInspectorTypeSFXDescriptionName":
                    case "GuiInspectorTypeSFXEnvironmentName":
                    case "GuiInspectorTypeSFXTrackName":
                    case "GuiInspectorTypeSFXAmbienceName":
                    case "GuiInspectorTypeSFXSourceName":
                    case "GuiInspectorTypeGuiProfile":
                        return true;
                }

            // Other console types that refer to objects.

            switch (field.getInspectedFieldType())
                {
                    case "TypeSimObject":
                    case "TypeSimObjectName":
                    case "TypeMaterialName":
                    case "TypeCubemapName":
                    case "TypeGuiProfile":
                        return true;
                }

            return false;
        }