← 返回更新日志

Pi v0.45.6

2026-01-13 · GitHub 原文
### 新增 - `ctx.ui.custom()` 现在接受 `overlayOptions` 参数,用于设置覆盖层的位置和大小(锚点、边距、偏移量、百分比、绝对定位) ([#667](https://github.com/badlogic/pi-mono/pull/667) by [@nicobailon](https://github.com/nicobailon)) - `ctx.ui.custom()` 现在接受 `onHandle` 回调函数,用于获取 `OverlayHandle` 以控制覆盖层的可见性 ([#667](https://github.com/badlogic/pi-mono/pull/667) by [@nicobailon](https://github.com/nicobailon)) - 扩展示例:`overlay-qa-tests.ts`,包含 10 个命令,用于测试覆盖层的位置、动画和切换场景 ([#667](https://github.com/badlogic/pi-mono/pull/667) by [@nicobailon](https://github.com/nicobailon)) - 扩展示例:`doom-overlay/` - 以 35 FPS 帧率作为覆盖层运行的 DOOM 游戏(首次运行时自动下载 WAD 文件) ([#667](https://github.com/badlogic/pi-mono/pull/667) by [@nicobailon](https://github.com/nicobailon))