mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
fix: 自动编队干员技能描述过长时点击位置错误
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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 };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user