JubeatPlus 3.9.11
Loading...
Searching...
No Matches
RankImageUtility.h File Reference

The score-to-rank-image helper. More...

import <UIKit/UIKit.h>
Include dependency graph for RankImageUtility.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.

Detailed Description

The score-to-rank-image helper.

Reconstructed from Ghidra program Jubeat (image base 0x100000000). All

Ghidra address:
values are offsets relative to that image base. This is a genuine free function: it takes no object receiver and belongs to no class, operating instead across 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:].

Function Documentation

◆ GetRankImageForPoint()

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.

Parameters
nPointsThe score to classify. It is passed straight through to rankOfPoint: with no arithmetic applied here.
Returns
The rank-letter image, or nil when rankOfPoint: reports a rank above 8.
Ghidra address:
0x486e8