refactor: 使用固定分辨率值替换动态获取(应 https://github.com/babalae/bettergi-scripts-list/pull/2464 修改) (#2466)

Co-authored-by: 躁动的氨气 <131591012+zaodonganqi@users.noreply.github.com>
This commit is contained in:
云端客
2025-12-09 13:23:12 +08:00
committed by GitHub
parent 7fc3ff0fe3
commit bd982092ef
2 changed files with 8 additions and 4 deletions

View File

@@ -251,6 +251,10 @@
## 版本历史
### 1.1.8 (2025-12-09)
- **新增** **[1.1.8 新增]**
- 使用固定分辨率值替换动态获取(应 https://github.com/babalae/bettergi-scripts-list/pull/2464 修改)
### 1.1.7 (2025-12-05)
- **新增** **[1.1.7 新增]**

View File

@@ -249,8 +249,8 @@ const config = settings.refreshSettingsByLanguage ?
const genshinJson = {
width: genshin.width,
height: genshin.height,
width: 1920,//genshin.width,
height: 1080,//genshin.height,
}
@@ -2000,8 +2000,8 @@ const isInMainUI = () => {
file.ReadImageMatSync(`${main_interface.path}${main_interface.name}${main_interface.type}`),
0,
0,
640,
216
genshinJson.width / 3.0,
genshinJson.width / 5.0
);
let captureRegion = openCaptureGameRegion();
let res = findByCaptureGameRegion(captureRegion, paimonMenuRo);