适配原神5.7版本更新,修复打开自定义标记的bug (#1124)

This commit is contained in:
ddaodan
2025-06-18 16:29:03 +08:00
committed by GitHub
parent a83468e630
commit d7d69ef83b
6 changed files with 167 additions and 22 deletions

View File

@@ -773,13 +773,13 @@ async function adjustViewForReward(boxIconRo, token) {
*/
/**
* 关闭自定义标记,使用前确保在地图界面
* 关闭自定义标记
* @returns {Promise<void>}
*/
async function closeCustomMarks() {
// await genshin.returnMainUi();
// keyPress("M");
await sleep(600);
await genshin.returnMainUi();
keyPress("M");
await sleep(1000);
click(60, 1020);
await sleep(600);
@@ -797,11 +797,13 @@ async function closeCustomMarks() {
}
/**
* 打开自定义标记,使用前确保在地图界面
* 打开自定义标记
* @returns {Promise<void>}
*/
async function openCustomMarks() {
await sleep(600);
await genshin.returnMainUi();
keyPress("M");
await sleep(1000);
click(60, 1020);
await sleep(600);