public void onSelect()
 {
     if (UnityEngine.Application.platform == RuntimePlatform.Android)
     {
         //要求API level 21
         AndroidFilePicker.PickFolder((path) => {
             ConfigUtility.persistentDataPath = path;
             //AndroidTool.MakeToast("路徑:" + path);
         });
     }
     else
     {
         var openFolder =
             OpenFolder.Open(
                 "請選擇一個資料夾"
                 );
         var result = openFolder.ShowDialog();
         if (result == DialogResult.OK)
         {
             var path = openFolder.SelectedPath;
             ConfigUtility.persistentDataPath = path;
             //print(path);
         }
     }
 }
Esempio n. 2
0
 public void openPickFolder()
 {
     if (UnityEngine.Application.platform == RuntimePlatform.Android)
     {
         //要求API level 21
         AndroidFilePicker.PickFolder(callback);
     }
     else
     {
         var openFolder =
             OpenFolder.Open(
                 "請選擇一個資料夾"
                 );
         var result = openFolder.ShowDialog();
         if (result == DialogResult.OK)
         {
             var folderName = openFolder.SelectedPath;
             print(folderName);
         }
     }
 }
Esempio n. 3
0
 private void MetroButton3_Click(object sender, EventArgs e)
 {
     //OpenFolder(Program.AppConfigDir);
     OpenFolder.Open(Path.GetDirectoryName(ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal).FilePath));
 }
Esempio n. 4
0
 private void MetroButton2_Click(object sender, EventArgs e)
 {
     OpenFolder.Open(Program.LeagueConfigDirPath);
 }
Esempio n. 5
0
 private void MetroButton1_Click(object sender, EventArgs e)
 {
     OpenFolder.Open(Program.LeagueLogFileDirPath);
 }