public bool checkSaveLocation()
 {
     if (m_saveLocation != "")
     {
         return(true);
     }
     else
     {
         SimpleFileBrowser.ShowSaveDialog(OpenFolder, null, true, null, "Select Output Folder", "Select");
     }
     return(false);
 }
Example #2
0
 public bool CheckSaveLocation(System.Action saveCallback, SimpleFileBrowser.OnCancel cancelCallback)
 {
     if (m_saveLocation != "")
     {
         return(true);
     }
     else
     {
         cancelRecordCallback = new System.Action(cancelCallback);
         beginRecordCallback  = saveCallback;
         SimpleFileBrowser.ShowSaveDialog(OpenFolder, CancelRecord, true, null, "Select Output Folder", "Select");
     }
     return(false);
 }
    void Awake()
    {
        m_instance = this;

        itemHeight = ((RectTransform)itemPrefab.transform).sizeDelta.y;

        nullPointerEventData = new UnityEngine.EventSystems.PointerEventData(null);

        InitializeFiletypeIcons();
        filetypeIcons = null;

        SetExcludedExtensions(excludeExtensions);
        excludeExtensions = null;

        filenameInputField.onValidateInput += OnValidateFilenameInput;

        InitializeQuickLinks();
    }
Example #4
0
 public void BrowseSaveFile()
 {
     SimpleFileBrowser.ShowSaveDialog(SaveFile, null, true, null, "Select Output File", "Select");
 }
Example #5
0
//	void LateUpdate ()
//	{
//
//		if ( Input.GetKeyDown ( KeyCode.Y ) )
//		{
//			BrowseSaveFile ();
//		}
//
//		if ( Input.GetKeyDown ( KeyCode.H ) )
//		{
//			BrowseLoadFile ();
//		}
//
//	}


    public void BrowseLoadFile()
    {
        SimpleFileBrowser.ShowLoadDialog(LoadFile, null, false, null, "Select Input File", "Select");
    }
Example #6
0
//	string saveLocation = "";

    void Awake()
    {
        browser = new SimpleFileBrowser();
        browser.AcceptNonExistingFilename = true;
    }
Example #7
0
 public void SetFileBrowser(SimpleFileBrowser fileBrowser)
 {
     this.fileBrowser = fileBrowser;
 }