Visual bug: every screen's widgets rendered far off to the right of the panel instead of inside it. Root cause: I assumed Widget.setPos(x, y) in FTB Library takes absolute screen coords, but it takes coords relative to the parent panel. Net effect: every offset got applied twice (panel-pos + offset where the renderer also adds panel-pos again).
Fix: drop the getX()+ / getY()+ from every setPos call in alignWidgets(). Now using plain relative offsets.
Covers all 6 screens (Hub, TierUpgrade, Shop, Bounty, Plot, QuestLog) plus the contentTop()/contentBottom() helpers on BaseBnsScreen.
## Summary
Visual bug: every screen's widgets rendered far off to the right of the panel instead of inside it. Root cause: I assumed `Widget.setPos(x, y)` in FTB Library takes absolute screen coords, but it takes coords relative to the parent panel. Net effect: every offset got applied twice (panel-pos + offset where the renderer also adds panel-pos again).
Fix: drop the `getX()+` / `getY()+` from every `setPos` call in `alignWidgets()`. Now using plain relative offsets.
Covers all 6 screens (Hub, TierUpgrade, Shop, Bounty, Plot, QuestLog) plus the `contentTop()`/`contentBottom()` helpers on BaseBnsScreen.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Every screen positioned its child widgets with setPos(getX() + offset,
getY() + offset) under the assumption that FTB Library uses absolute
screen coordinates. It uses PARENT-RELATIVE coordinates — the panel's
own position is added back at render time — so all widgets rendered
at panel-position * 2 + offset, shoving them off the right edge.
Fix: drop the getX()/getY() from every setPos. Now using plain
parent-relative offsets, which is what FTB Library docs + FTB Quests/
Chunks source actually do.
Affects: HubScreen, TierUpgradeScreen, BountyBoardScreen,
PlotPurchaseScreen, ShopBrowserScreen, QuestLogScreen.
Also fixed BaseBnsScreen.contentTop()/contentBottom() to return
relative offsets.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Matt
merged commit ec8f2b83cf into main2026-06-08 14:43:10 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Visual bug: every screen's widgets rendered far off to the right of the panel instead of inside it. Root cause: I assumed
Widget.setPos(x, y)in FTB Library takes absolute screen coords, but it takes coords relative to the parent panel. Net effect: every offset got applied twice (panel-pos + offset where the renderer also adds panel-pos again).Fix: drop the
getX()+/getY()+from everysetPoscall inalignWidgets(). Now using plain relative offsets.Covers all 6 screens (Hub, TierUpgrade, Shop, Bounty, Plot, QuestLog) plus the
contentTop()/contentBottom()helpers on BaseBnsScreen.🤖 Generated with Claude Code