Log inGet started
Package

layout.module

Newest version

README.md

friendshipKit.layout

Where each friendship screen goes, as a pure function of the screen size and its safe area: compute(W, H, safe, opts) answers rects for the Friends button (in any of the four buttonPosition corners), the toasts, the touch Talk and Gift buttons, the Social panel, the gift picker and the conversation box, plus the scale and whether the screen is narrow, short or portrait. Everything sits inside the safe area and every tappable thing is at least 44 points, at desktop, phone landscape (about 693 x 390) and phone portrait (about 390 x 844) sizes alike. The HUD draws from it and the friendshipKit test suite checks it.