|
JubeatPlus 3.9.11
|
The score-to-rank-image helper. More...
import <UIKit/UIKit.h>
Go to the source code of this file.
Functions | |
| NS_ASSUME_NONNULL_BEGIN UIImage *_Nullable | GetRankImageForPoint (int nPoints) |
| Maps a score to its themed rank-letter image from the shared image cache. | |
The score-to-rank-image helper.
Reconstructed from Ghidra program Jubeat (image base 0x100000000). All
Sequence, JubeatAppDelegate, and ImageCache, so the reconstruction rules' search for an owning class is exhausted. The basename is inferred because the shipped binary embeds no __FILE__ path. Called from -[MusicView setScore:] and -[MusicView setExtendScore:]. | NS_ASSUME_NONNULL_BEGIN UIImage *_Nullable GetRankImageForPoint | ( | int | nPoints | ) |
Maps a score to its themed rank-letter image from the shared image cache.
The score is classified with +[Sequence rankOfPoint:], which returns a rank in 0..8 ordered ascending by quality (E is 0, EXC is 8). The rank selects a base resource name ("rank_word_e" through "rank_word_exc"), which then takes a theme suffix from the app delegate's current theme: "_rpl" for the ripples theme and "_knt" for the knit theme, with the original theme leaving the name unchanged. The named PNG is fetched from the shared ImageCache.
| nPoints | The score to classify. It is passed straight through to rankOfPoint: with no arithmetic applied here. |
nil when rankOfPoint: reports a rank above 8.