|
JubeatPlus 3.9.11
|
The music-selection grid layout maths: how many cells fit on a page, how they split into columns and rows, and the per-column-type cell scale. More...
Go to the source code of this file.
Functions | |
| int | GetMusicGridCellsPerPage (int nColumnType) |
| Returns the number of music cells shown on one page of the music-selection grid. | |
| int | GetMusicGridColumnCount (int nColumnType) |
| Returns how many music cells fit across one row of the grid. | |
| int | GetMusicGridRowCount (int nColumnType) |
| Returns how many music-cell rows fit on one page of the grid. | |
| double | GetMusicCellScaleForColumnType (int nColumnType) |
| Returns the scale factor applied to a music cell for a given column type. | |
The music-selection grid layout maths: how many cells fit on a page, how they split into columns and rows, and the per-column-type cell scale.
Reconstructed from Ghidra program Jubeat (image base 0x100000000); all
JubeatAppDelegate and derives its grid dimensions from it. The basename is inferred because the shipped binary embeds no __FILE__ path.nColumnType is a small integer selector, not an enumerated set: three of these four functions add it arithmetically to the column and row counts, so it is kept as a plain int rather than modelled as an enumeration.
| double GetMusicCellScaleForColumnType | ( | int | nColumnType | ) |
Returns the scale factor applied to a music cell for a given column type.
Column type one scales to 0.75, column type two to 0.6, and every other value to 1.0. The 0.6 value is stored as the float literal 0.6f widened to double.
| nColumnType | The column-type selector. |
| int GetMusicGridCellsPerPage | ( | int | nColumnType | ) |
Returns the number of music cells shown on one page of the music-selection grid.
The result is the product of the column count and the row count, so its minimum is nine (three by three). The binary inlines both helpers here rather than calling them.
| nColumnType | The column-type selector; larger values pack more columns and rows. |
| int GetMusicGridColumnCount | ( | int | nColumnType | ) |
Returns how many music cells fit across one row of the grid.
The base is three columns; the HD phone idiom (JubeatDeviceTypePhoneRetinaHD) with a positive column type widens it to four. The column type is then added on top.
| nColumnType | The column-type selector. |
| int GetMusicGridRowCount | ( | int | nColumnType | ) |
Returns how many music-cell rows fit on one page of the grid.
On top of the same base as GetMusicGridColumnCount, the taller phones and the iPad each add a row: one for device types three to five, and one more for device types two to five or any iPad.
| nColumnType | The column-type selector. |