Dev UI 1533#1534
Closed
runhey wants to merge 3 commits into
Closed
Conversation
There was a problem hiding this comment.
Hey - 我在这里给出了一些高层次的反馈:
- 现在有很多 ROI 和阈值被硬编码并在不同资源之间重复(例如,各种锁定/解锁按钮和开火按钮都集中在 x≈700 / x≈1100 一带);建议将这些共享坐标进行集中管理,或者从一个通用的布局辅助工具中派生出来,这样当 UI 再次变动时,可以降低维护成本。
- 有几个阈值被放宽了(例如 MAIN_GOTO_MALL 从 0.7 降到 0.5,MAIN_GOTO_DAILY 降到 0.6);如果这是为了补偿模板变得更嘈杂,那么与其依赖更低的相似度得分(容易导致误报),可能更值得收紧 ROI 或模板图像本身。
- 对于那些 roi_front 和 roi_back 在尺寸或位置上出现较大差异的规则,建议保持一个一致的约定(例如,roi_front 严格包住图标本身,roi_back 则作为一个更稳定、更宽泛的区域),这样未来对 ROI 的调整会更容易理解、也更不容易出错。
给 AI Agent 的提示
Please address the comments from this code review:
## Overall Comments
- A lot of ROI and threshold values are now hard-coded and duplicated across assets (e.g., various lock/unlock and fire buttons around x≈700 / x≈1100); consider centralizing these shared coordinates or deriving them from a common layout helper to reduce maintenance overhead when the UI shifts again.
- Several thresholds were relaxed (e.g., MAIN_GOTO_MALL from 0.7 to 0.5, MAIN_GOTO_DAILY to 0.6); if these are compensating for noisier templates, it may be worth tightening the ROI or template images instead of relying on much lower similarity scores to avoid false positives.
- For rules where roi_front and roi_back now differ significantly in size or position, it would help to keep a consistent convention (e.g., roi_front tightly around the icon, roi_back as a stable wider region) so future ROI adjustments are easier to reason about and less error-prone.请帮我变得更有用!请对每条评论点 👍 或 👎,我会利用这些反馈改进后续的评审质量。
Original comment in English
Hey - I've left some high level feedback:
- A lot of ROI and threshold values are now hard-coded and duplicated across assets (e.g., various lock/unlock and fire buttons around x≈700 / x≈1100); consider centralizing these shared coordinates or deriving them from a common layout helper to reduce maintenance overhead when the UI shifts again.
- Several thresholds were relaxed (e.g., MAIN_GOTO_MALL from 0.7 to 0.5, MAIN_GOTO_DAILY to 0.6); if these are compensating for noisier templates, it may be worth tightening the ROI or template images instead of relying on much lower similarity scores to avoid false positives.
- For rules where roi_front and roi_back now differ significantly in size or position, it would help to keep a consistent convention (e.g., roi_front tightly around the icon, roi_back as a stable wider region) so future ROI adjustments are easier to reason about and less error-prone.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- A lot of ROI and threshold values are now hard-coded and duplicated across assets (e.g., various lock/unlock and fire buttons around x≈700 / x≈1100); consider centralizing these shared coordinates or deriving them from a common layout helper to reduce maintenance overhead when the UI shifts again.
- Several thresholds were relaxed (e.g., MAIN_GOTO_MALL from 0.7 to 0.5, MAIN_GOTO_DAILY to 0.6); if these are compensating for noisier templates, it may be worth tightening the ROI or template images instead of relying on much lower similarity scores to avoid false positives.
- For rules where roi_front and roi_back now differ significantly in size or position, it would help to keep a consistent convention (e.g., roi_front tightly around the icon, roi_back as a stable wider region) so future ROI adjustments are easier to reason about and less error-prone.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Change Summary
Reconstructed Intent点击此处展开- 这次改动最可能是应对游戏客户端 UI 布局更新后的资产重校准 - 游戏内各个副本的入口位置、锁定图标位置、挑战按钮位置发生了整体偏移 - 改动规模覆盖 6 个任务(EternitySea、EvoZone、FallenSun、Sougenbi、GoryouRealm、Orochi),属于跨任务协调变更Observed Constraints点击此处展开- **依赖游戏版本稳定性**:资产坐标与特定游戏客户端版本绑定,客户端更新后可能再次失效 - **ROI 语义变化**:部分入口图标的 roiFront 从"大区域匹配"变为"精确小区域匹配",匹配逻辑发生变化 - **PNG 资源同步**:ROI 调整需要同步更新对应的 PNG 模板图,缺少一方会导致匹配失败 - **多任务一致性**:多个任务同时调整,但未看到统一的坐标变换规则或相对位移记录Intent Alignment
Release Risk
Validation Gaps点击此处展开- 未看到对每个任务新 ROI 的实际识别率/点击成功率验证数据 - 未看到跨任务协调变更的一致性检查说明(例如:锁图标从 x=557 移到 x=699,是否所有任务的锁图标都移动了约 140px,还是每任务独立测量) - 未看到游戏客户端版本或屏幕分辨率兼容性说明(1920x1080?其他分辨率?) - PNG 资源更新后的模板质量未经验证
|
Findings
|
Contributor
|
觉醒部分的各个麒麟需要调整下,带花车的部分需要截掉 |
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.
由 Sourcery 提供的摘要
更新 UI 自动化资源定义,使其与修订后的游戏内布局保持一致,并提升在多项任务中的检测/交互稳定性。
改进内容:
Original summary in English
Summary by Sourcery
Update UI automation asset definitions to align with revised in-game layouts and improve detection/interaction reliability across multiple tasks.
Enhancements: