fix - #105
Conversation
鼠标悬浮超宽 banner 时,使用原版横向滚动显示完整文字 新增 LEFT、CENTER、RIGHT 对齐,默认 CENTER 保留旧的五参数 CreativeTabSection 构造函数,已有调用仍默认居中
Reason: Security scan — [MEDIUM] Lookalike TLD detected: Domain uses '.app' TLD which can be confused with file extensions; [HIGH] Pipe to interpreter: curl | python3: Command pipes output from 'curl' directly to interpreter 'python3'. Downloaded content will be executed without inspection. Reply |
Reason: Security scan — [MEDIUM] Archive extraction to sensitive path: Archive command 'unzip' extracts to a potentially sensitive location Reply |
Reason: script execution via -e/-c flag Reply |
代码审查摘要 — PR #105操作: opened 变更内容
🔴 关键无编译级阻断问题。已交叉验证
|
| 声称 | 状态 | 说明 |
|---|---|---|
| 移除全部文字缩放,超宽文本保持像素字体并裁剪 | ✅ | scale 相关代码全删,替换为 scissor 裁剪 |
| 悬浮超宽 banner 时原版横向滚动显示完整文字 | 已调用 renderScrollingString,但每帧重建实例可能令动画不推进,需实测确认 |
|
| 新增 LEFT/CENTER/RIGHT 对齐,默认 CENTER | ✅ | 枚举 + 穷尽 switch,Builder 与 5 参构造默认 CENTER |
| 保留五参数构造函数,已有调用默认居中 | ✅ | 兼容构造委托 CENTER,全库无破坏性引用 |
🧪 测试建议
| 被测目标 | 推荐测试场景 | 优先级 |
|---|---|---|
| 滚动动画 | 实机悬浮超宽 banner 停留 >4 秒,确认文字从开头滚动到结尾(非定格) | 🔴 |
| 垂直一致性 | 对比 hover 前后文本行是否像素级重合(应无 1px 跳动) | 🟡 |
| 三种对齐 × 溢出/非溢出 | 各组合截图,检查裁剪位置、背景铺满范围、字形是否被劈开 | 🟢 |
结论: COMMENT — 结构与兼容性没有问题,但第 2 条声称(hover 横向滚动)依赖 vanilla renderScrollingString 每帧重建实例的行为,滚动动画很可能不会真正启动。请作者按上述方法实机验证并反馈结果;若确认不滚动,建议缓存 ScrollingString 或改用手写滚动后再合并。
由 Hermes Agent 审查
|
💾 Self-improvement review: Patched SKILL.md in skill 'creative-tab-pr-review' (1 replacement). |
🌿 Roseau API Breaking Change Report
|
|
审查完成。PR #105 共 3 个 Java 文件、216 行 diff,已加载 代码审查摘要 — PR #105 (AnvilLib)操作: synchronize
🔴 关键
|
| 声称 | 状态 | 对应实现 |
|---|---|---|
| 移除全部文字缩放,超宽保留原始像素字体并裁剪 | ✅ | 删除 textScale/pose.scale,scissor 裁剪 |
| 悬浮超宽 banner 原版横向滚动显示完整文字 | renderScrollingString——机制分析极可能不滚动 |
|
| 新增 LEFT/CENTER/RIGHT 对齐,默认 CENTER | ✅ | TextAlignment 枚举 + builder 方法 |
| 保留旧五参数 CreativeTabSection 构造函数 | ✅ | 5 参构造委托 CENTER |
| (描述未提及)原版 16 色变体选择器可配置开关 | setVanillaColorVariantPickerEnabled,默认关闭 |
🧪 测试建议
| 被测目标 | 推荐测试场景 | 优先级 |
|---|---|---|
| 悬浮滚动(核心) | 超宽文本悬浮持续 >4 秒,确认从开头横向推进 | 🔴 |
| 对齐 + 裁剪 | 1 格宽 banner + 超长文本,分别检查 LEFT/CENTER/RIGHT 非悬浮态裁剪起点与右侧边界 | 🟡 |
| 兼容性 | 旧 5 参构造 + builder 构造的 section 均默认居中渲染 | 🟢 |
结论: REQUEST_CHANGES — 悬浮滚动按 vanilla 内部机制(每帧重建实例 → 计时/进度重置)几乎必然定格不滚,需实机确认并按持久实例方案修复;同时 PR 描述需补齐变体选择器的默认行为变化说明。
由 Hermes Agent 审查
|
💾 Self-improvement review: Patched references/banner-text-scrolling-render-review.md in skill 'creative-tab-pr-review' (1 replacement). |
|
The PR is confirmed closed (and merged). Per the webhook rules in the skill — "closed/labeled → 停止" — I stop here and do not publish a review comment. The webhook auto-delivers my reply to the PR, and posting on a closed PR would be redundant. The PR #105 "fix" is closed and merged — no review comment will be posted, as required by the webhook protocol (closed PRs → stop, don't comment). |
移除全部文字缩放,超宽文本保持 MC 原始像素字体并裁剪
鼠标悬浮超宽 banner 时,使用原版横向滚动显示完整文字
新增 LEFT、CENTER、RIGHT 对齐,默认 CENTER
保留旧的五参数 CreativeTabSection 构造函数,已有调用仍默认居中