fix(Common): RegionalDevelopmentLevelButton 使用模板匹配来避免鼠标遮挡#685
Merged
Conversation
Contributor
There was a problem hiding this comment.
嘿,我已经 review 了你的改动,看起来非常棒!
帮我变得更有用!请在每一条评论上点 👍 或 👎,我会根据你的反馈来改进 review 质量。
Original comment in English
Hey - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Contributor
There was a problem hiding this comment.
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
RegionalDevelopmentLevelButtonrecognition 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) |
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixed #674
Summary by Sourcery
错误修复:
RegionalDevelopmentLevelButton的配置,防止鼠标悬停/点击被覆盖层或布局阻挡。Original summary in English
Summary by Sourcery
Bug Fixes: