/* * if (control == pictureBox1 || control == pictureBox2 || control == pictureBox3 || control == pictureBox4 || control == label4 || control == label5 || control == label6 || control == label7 || control == label8) * { * * continue; * } */ private void StartFirstUsingSettings() { if (!EdLib.HasFile(path_UserPackage, true)) { path_UserPackage = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "\\TetraProject\\Packages"; if (!EdLib.HasFile(path_UserPackage, true)) { EdLib.AskMsg("未能自动找到您的 Packages 路径,请您手动设置。"); } } EdLib.path_FileSelection = GetPath("{game}"); var pos = GetPath("{localgame}"); if (EdLib.HasFile(pos, true) && !pos.Contains("Debug")) { path_GameApp = GetPath(pos); path_CurrentPackage = PackageSelection(); SaveUserInfo(); loadAll(); return; } else { EdLib.AskMsg(GetPath("无法自动获取游戏目录,请您手动选择一些文件 TetraProject.exe, \n错误信息:{localgame}")); } StartFirstUsingSettingsFlag: EdLib.ShowFileSelection("找到您的游戏 TetraProject.exe"); if (EdLib.GetFileSelection()) { var path = System.IO.Path.GetFileName(EdLib.path_FileSelection); if (path != "TetraProject.exe") { if (EdLib.AskMsg("不是 TetraProject.exe,是否重新开始选择?。")) { goto StartFirstUsingSettingsFlag; } } else { path_GameApp = EdLib.path_FileSelection; } } path_CurrentPackage = PackageSelection(); SaveUserInfo(); loadAll(); }