pack: v0.38.1 — bnstoolkit 0.5.1 UI coords hotfix #77
Reference in New Issue
Block a user
Delete Branch "hotfix/bnstoolkit-ui-coords"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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