Jnlib layout files are used to define positions of elements on the screen. These files are BNCL, BNBL, and BNLL. They share a common header and coordinate structure. The header of these files is structured as:

OffsetTypeMeaning
0x00 char[4] File signature as a 4-character tag.
0x04 u16 Unknown.
0x06 u16 Number of layout elements.

Jnlib layout files use a common structure for storing coordinates. This allows for storing a coordinate relative to one of 9 points on the layout element. These take the following structure:

?? OO XXXXXXXXXXXX
|  |  |
|  |  +----------- The coordinate as a signed 12-bit integer.
|  +-------------- The origin. Can be 0 (left/top), 1 (center), or 2 (right/bottom).
+----------------- Unknown.

The origin position sets the position of the layout element with respect to one of 9 points on the element. These points are illustrated below:

Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
png
image_2024-05-01_212804849.png 2.5 kB 1 01-May-2024 21:28 Garhoogin jnlib origin position diagram
« This page (revision-2) was last changed on 01-May-2024 21:30 by Garhoogin