Skip to content

fix(Common): RegionalDevelopmentLevelButton 使用模板匹配来避免鼠标遮挡#685

Merged
he0119 merged 2 commits intomainfrom
fix/delivery-jobs-pointer
Feb 22, 2026
Merged

fix(Common): RegionalDevelopmentLevelButton 使用模板匹配来避免鼠标遮挡#685
he0119 merged 2 commits intomainfrom
fix/delivery-jobs-pointer

Conversation

@he0119
Copy link
Contributor

@he0119 he0119 commented Feb 22, 2026

fixed #674

Summary by Sourcery

错误修复:

  • 调整 RegionalDevelopmentLevelButton 的配置,防止鼠标悬停/点击被覆盖层或布局阻挡。
Original summary in English

Summary by Sourcery

Bug Fixes:

  • Adjust RegionalDevelopmentLevelButton configuration to prevent mouse hover/click from being blocked by overlays or layout.

Copilot AI review requested due to automatic review settings February 22, 2026 07:44
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嘿,我已经 review 了你的改动,看起来非常棒!


Sourcery 对开源项目是免费的——如果你觉得我们的 review 有帮助,请考虑分享 ✨
帮我变得更有用!请在每一条评论上点 👍 或 👎,我会根据你的反馈来改进 review 质量。
Original comment in English

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes issue #674 where the automatic delivery job transfer task would get stuck on the Regional Development interface. The root cause was that OCR recognition of the "Regional Development Level" button text was failing when the mouse cursor hovered over and blocked the text. The solution converts the button recognition from OCR to TemplateMatch with both normal and hover state images.

Changes:

  • Changed RegionalDevelopmentLevelButton recognition method from OCR to TemplateMatch
  • Added template images for both normal and hover states to handle mouse cursor interference
  • Maintained consistent implementation across PC (resource_fast) and mobile (resource_adb) resource layers

Reviewed changes

Copilot reviewed 1 out of 4 changed files in this pull request and generated no comments.

File Description
assets/resource_fast/pipeline/Common/Button.json Changed RegionalDevelopmentLevelButton from OCR-based recognition to TemplateMatch with template array including hover state
assets/resource_fast/image/Common/Button/RegionalDevelopmentLevelButton.png Added normal state template image for PC
assets/resource_fast/image/Common/Button/RegionalDevelopmentLevelButtonHover.png Added hover state template image for PC
assets/resource_adb/image/Common/Button/RegionalDevelopmentLevelButton.png Added normal state template image for mobile (no hover state needed)

@he0119 he0119 merged commit 1aa8387 into main Feb 22, 2026
21 checks passed
@he0119 he0119 deleted the fix/delivery-jobs-pointer branch February 22, 2026 08:04
HYY1116 pushed a commit to HYY1116/MaaEnd that referenced this pull request Feb 25, 2026
fixed MaaEnd#674

## Summary by Sourcery

错误修复:
- 调整 `RegionalDevelopmentLevelButton` 的配置,防止鼠标悬停/点击被覆盖层或布局阻挡。

<details>
<summary>Original summary in English</summary>

## Summary by Sourcery

Bug Fixes:
- Adjust RegionalDevelopmentLevelButton configuration to prevent mouse
hover/click from being blocked by overlays or layout.

</details>
MistEO pushed a commit that referenced this pull request Mar 9, 2026
fixed #674

## Summary by Sourcery

错误修复:
- 调整 `RegionalDevelopmentLevelButton` 的配置,防止鼠标悬停/点击被覆盖层或布局阻挡。

<details>
<summary>Original summary in English</summary>

## Summary by Sourcery

Bug Fixes:
- Adjust RegionalDevelopmentLevelButton configuration to prevent mouse
hover/click from being blocked by overlays or layout.

</details>
MistEO pushed a commit that referenced this pull request Mar 9, 2026
fixed #674

## Summary by Sourcery

错误修复:
- 调整 `RegionalDevelopmentLevelButton` 的配置,防止鼠标悬停/点击被覆盖层或布局阻挡。

<details>
<summary>Original summary in English</summary>

## Summary by Sourcery

Bug Fixes:
- Adjust RegionalDevelopmentLevelButton configuration to prevent mouse
hover/click from being blocked by overlays or layout.

</details>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

自动转交送货任务时卡在地区建设界面

2 participants