fix: 自动编队干员技能描述过长时点击位置错误

This commit is contained in:
status102
2026-02-09 22:39:49 +08:00
parent a76ac22c13
commit 8d983f2c8c
2 changed files with 4 additions and 4 deletions

View File

@@ -30,7 +30,7 @@
],
"templThreshold": 0.75,
"rectMove_Doc": "识别后 move 给 click 用",
"rectMove": [-5, 0, 360, 355]
"rectMove": [-5, 0, 350, 100]
},
"BattleQuickFormationSkillLevel-OCR": {
"baseTask": "NumberOcrReplace",
@@ -40,7 +40,7 @@
"BattleQuickFormationSkillLevel-Base": {
"roi_Doc": "用于裁切出技能区域的 rect",
"roi": [0, 365, 360, 355],
"rectMove_Doc": "move for SkillLevel-Check and SkillLevel-OCR",
"rectMove_Doc": "从template移动到 SkillLevel-Check and SkillLevel-OCR 的 roi 区域",
"rectMove": [-54, -68, 25, 25]
},
"BattleQuickFormationSkillLevel-Swipe": {

View File

@@ -148,7 +148,7 @@ std::optional<asst::BattleQuickFormation::SkillResult>
if (result) {
// 拼接图片中的技能等级icon坐标转换回全图的icon坐标
Rect rect { result->first.x,
result->first.y + current_y - base_task->roi.y,
result->first.y + base_task->roi.y - last_y,
result->first.width,
result->first.height };
@@ -164,7 +164,7 @@ std::optional<asst::BattleQuickFormation::SkillResult>
if (result) {
// 拼接图片中的技能等级icon坐标转换回全图的icon坐标
Rect rect { result->first.x,
result->first.y + last_y - base_task->roi.y,
result->first.y + base_task->roi.y - last_y,
result->first.width,
result->first.height };