Exemplo n.º 1
0
	void processDisclaimerArea(){
		disclaimerVisible = 
		EditorGUILayout.Foldout(disclaimerVisible, GuiContents.disclaimerSection);
		if (!disclaimerVisible)
			return;
		using(var tmp = ExportGuiUtility.scopedGuiEnabled(false)){
			EditorGUILayout.TextArea(getDisclaimerText(), guiStyles.disclaimerTextArea);
		}
		if (GUILayout.Button("View full Disclaimer")){
			DisclaimerWindow.openDisclaimerWindow();
		}
	}
Exemplo n.º 2
0
        void processFurtherInstructions()
        {
            instructionsOpen = EditorGUILayout.Foldout(instructionsOpen, "Further information:");
            if (!instructionsOpen)
            {
                return;
            }

            using (var tmp = ExportGuiUtility.scopedGuiEnabled(false)){
                EditorGUILayout.TextArea(getInstructionsText(), guiStyles.disclaimerTextArea);
            }

            if (!string.IsNullOrEmpty(instructionsUrl))
            {
                if (GUILayout.Button("See online information"))
                {
                    Application.OpenURL(instructionsUrl);
                }
            }
        }
Exemplo n.º 3
0
	void processExportButtons(){
		GUILayout.BeginHorizontal();
		if (GUILayout.Button("2. Select Target Path")){
			var defaultName = getDefaultJsonFileName(exportType);
			var filePath = EditorUtility.SaveFilePanel("Export selected objects", "", defaultName, "json");
			if (!string.IsNullOrEmpty(filePath)){
				targetPath = filePath;
				var pathInProject = Utility.isInProjectPath(filePath);
				if (pathInProject)
					Debug.LogWarningFormat("File \'{0}\' is in project directory.\nTexture conversion willl not be performed", filePath);
			}
		}

		using(var tmp = ExportGuiUtility.scopedGuiEnabled(canExport())){
			if (GUILayout.Button("3. Begin export")){
				processExport();
			}
		}
		
		GUILayout.EndHorizontal();
	}