예제 #1
0
        /// <summary>
        /// Native save file dialog async
        /// </summary>
        /// <param name="title">Dialog title</param>
        /// <param name="directory">Root directory</param>
        /// <param name="defaultName">Default file name</param>
        /// <param name="extensions">List of extension filters. Filter Example: new ExtensionFilter("Image Files", "jpg", "png").</param>
        /// <param name="callback">Callback for when the window closes.</param>
        public static void SaveFilePanelAsync(string title, string directory, string defaultName, ExtensionFilter[] extensions, Action <string> callback)
        {
            if (m_PlatformWrapper == null)
            {
                Initalize();
            }

            m_PlatformWrapper.SaveFilePanelAsync(title, directory, defaultName, extensions, callback);
        }
예제 #2
0
 /// <summary>
 /// Native save file dialog async
 /// </summary>
 /// <param name="title">Dialog title</param>
 /// <param name="directory">Root directory</param>
 /// <param name="defaultName">Default file name</param>
 /// <param name="extensions">List of extension filters. Filter Example: new ExtensionFilter("Image Files", "jpg", "png")</param>
 /// <param name="cb">Callback")</param>
 public static void SaveFilePanelAsync(string title, string directory, string defaultName, ExtensionFilter[] extensions, Action <string> cb)
 {
     _platformWrapper.SaveFilePanelAsync(title, directory, defaultName, extensions, cb);
 }
예제 #3
0
 /// <summary>
 /// Native save file dialog async
 /// </summary>
 /// <param name="_title">Dialog title</param>
 /// <param name="_directory">Root directory</param>
 /// <param name="_defaultName">Default file name</param>
 /// <param name="_extensions">List of extension filters. Filter Example: new ExtensionFilter("Image Files", "jpg", "png")</param>
 /// <param name="_cb">Callback")</param>
 public static void SaveFilePanelAsync(string _title, string _directory, string _defaultName, ExtensionFilter[] _extensions, Action <string> _cb)
 {
     _platformWrapper.SaveFilePanelAsync(_title, _directory, _defaultName, _extensions, _cb);
 }