JubeatPlus 3.9.11
Loading...
Searching...
No Matches
MusicView Class Reference

A song tile: artwork, labels, and per-difficulty rank and full-combo image stacks. More...

#include <MusicView.h>

Inheritance diagram for MusicView:
Collaboration diagram for MusicView:

Instance Methods

(instancetype) - initWithFrame:artworkSize:colType:labelDisp:
 Builds the tile at a device- and column-scaled frame.
(CGPoint) - centerArtworkImg
 The centre point of the artwork image view for the current scale.
(nonnull UIColor *) - getTextColor
 The label text colour for the current theme and custom-BGM selection.
(void) - refreshTextColor
 Re-applies getTextColor to both labels.
(void) - setInfo:bArtistNameDisp:
 Sets the tune, name, and (optionally) artist text, and refreshes the label colour.
(void) - setInfo:
 Sets the tune, showing the artist label only on iPad.
(void) - setExtendInfo:
 Reveals the advertised-extend rank chips whose extend flags are set.
(void) - setExtendScore:
 Renders the advertised-rank images and full-combo markers from an extend score.
(void) - setScore:
 Renders the rank images and full-combo markers from a score.
(void) - setRatingChipHidden:
 Sets the alpha of the rank, advertised-rank, and chip stacks to a hidden state.
(void) - scaleChange:
 Rescales the tile for the given column type, crossfading the labels and rank chips in.
(void) - fadeoutLabel
 Fades the labels and rank chips out and squares the artwork image view.
(void) - switchLabel:
 Rescales for a column type, animating the labels and rank chips across the change.
(void) - clearInfo
 Clears the tune and hides every rank background.
(void) - showNameAndArtist:
 Shows or hides the name label, and on iPad at a large scale the artist label too.
(void) - hidePlaylistActionButton
 Fades out and disables the playlist and BGM-select buttons.
(void) - handleTap:
 Tap handler: notifies the delegate and clears any download notice.
(nonnull NSString *) - bgmImagePrefix
 The BGM-artwork basename prefix for the current tune ("bgm_stop_" when selected, else "bgm_set_").
(void) - handlePress:
 Long-press handler: notifies the delegate and reveals the playlist and BGM buttons.
(void) - tapPlaylistAction:
 Fires musicViewPlaylistAction: on the delegate.
(void) - tapBgmSelect:
 Fires musicViewSelectBgmAction: and animates the button, ignoring interaction events for the duration.
(void) - addDownloadNotice
 Adds the jubeatLab download icon over the artwork, once.
(void) - removeDownloadNotice
 Removes the jubeatLab download icon and forgets the tune's recent-download ownership.

Properties

UIImageView * imgView
 The artwork image view.
UILabel * nameLabel
 The tune title label.
UILabel * artistNameLabel
 The artist label.
UIButton * btnPlaylistAction
 The playlist add/remove button.
UIButton * btnBgmSelect
 The BGM-select button.
TuneInfo * tuneInfo
 The displayed tune.
TuneInfo * extendTuneInfo
 The extend tune whose flags reveal the chip overlays.
UIImageView * jcfIcon
 The jubeatLab download icon, present only while the notice is shown.
UIImageView * rankBgBas
 The basic-difficulty rank background.
UIImageView * rankBgAdv
 The advanced-difficulty rank background.
UIImageView * rankBgExt
 The extreme-difficulty rank background.
UIImageView * rankImgBas
 The basic-difficulty rank letter.
UIImageView * rankImgAdv
 The advanced-difficulty rank letter.
UIImageView * rankImgExt
 The extreme-difficulty rank letter.
UIImageView * rankFcBas
 The basic-difficulty full-combo marker.
UIImageView * rankFcAdv
 The advanced-difficulty full-combo marker.
UIImageView * rankFcExt
 The extreme-difficulty full-combo marker.
UIImageView * rankBgOrgBas
 The basic-difficulty frame overlay.
UIImageView * rankBgOrgAdv
 The advanced-difficulty frame overlay.
UIImageView * rankBgOrgExt
 The extreme-difficulty frame overlay.
UIImageView * rankBgHldBas
 The basic-difficulty hold-marker frame overlay.
UIImageView * rankBgHldAdv
 The advanced-difficulty hold-marker frame overlay.
UIImageView * rankBgHldExt
 The extreme-difficulty hold-marker frame overlay.
UIImageView * adRankBgBas
 The basic-difficulty advertised-rank background.
UIImageView * adRankBgAdv
 The advanced-difficulty advertised-rank background.
UIImageView * adRankBgExt
 The extreme-difficulty advertised-rank background.
UIImageView * adRankImgBas
 The basic-difficulty advertised-rank letter.
UIImageView * adRankImgAdv
 The advanced-difficulty advertised-rank letter.
UIImageView * adRankImgExt
 The extreme-difficulty advertised-rank letter.
UIImageView * adRankFcBas
 The basic-difficulty advertised full-combo marker.
UIImageView * adRankFcAdv
 The advanced-difficulty advertised full-combo marker.
UIImageView * adRankFcExt
 The extreme-difficulty advertised full-combo marker.
NSMutableArray * rankBgChipArray
 The rating-chip background array.
id< MusicViewDelegate > delegate
 The gesture and button delegate.

Detailed Description

A song tile: artwork, labels, and per-difficulty rank and full-combo image stacks.

Method Documentation

◆ addDownloadNotice

- (void) addDownloadNotice

Adds the jubeatLab download icon over the artwork, once.

Ghidra address:
0x4cc38

◆ bgmImagePrefix

- (NSString *) bgmImagePrefix

The BGM-artwork basename prefix for the current tune ("bgm_stop_" when selected, else "bgm_set_").

Returns
The prefix string.
Ghidra address:
0x4b8f4
Ghidra address:
0x4b8f4

◆ centerArtworkImg

- (CGPoint) centerArtworkImg

The centre point of the artwork image view for the current scale.

Returns
The centre in the tile's coordinate space.
Ghidra address:
0x47ad0
Ghidra address:
0x47ad0

◆ clearInfo

- (void) clearInfo

Clears the tune and hides every rank background.

Ghidra address:
0x4abd8

◆ fadeoutLabel

- (void) fadeoutLabel

Fades the labels and rank chips out and squares the artwork image view.

Ghidra address:
0x49360
Ghidra address:
0x49628
Ghidra address:
0x49968

◆ getTextColor

- (UIColor *) getTextColor

The label text colour for the current theme and custom-BGM selection.

When the tile's tune is the current custom BGM the colour is a highlight (red 1.0, green 0.435, blue 0.835). Otherwise the ripples and knit themes use black and the original theme uses white.

Returns
The label colour.
Ghidra address:
0x443c8
Ghidra address:
0x443c8

◆ handlePress:

- (void) handlePress: (nullable UILongPressGestureRecognizer *) recognizer

Long-press handler: notifies the delegate and reveals the playlist and BGM buttons.

Parameters
recognizerThe long-press recogniser.
Ghidra address:
0x4b9b4

◆ handleTap:

- (void) handleTap: (nullable UITapGestureRecognizer *) recognizer

Tap handler: notifies the delegate and clears any download notice.

Parameters
recognizerThe tap recogniser.
Ghidra address:
0x4b838

◆ hidePlaylistActionButton

- (void) hidePlaylistActionButton

Fades out and disables the playlist and BGM-select buttons.

Ghidra address:
0x4b2e4
Ghidra address:
0x4b688
Ghidra address:
0x4b6f4
Ghidra address:
0x4b760
Ghidra address:
0x4b7cc

◆ initWithFrame:artworkSize:colType:labelDisp:

- (instancetype) initWithFrame: (CGRect) frame
artworkSize: (double) artworkSize
colType: (int) colType
labelDisp: (BOOL) labelDisp 

Builds the tile at a device- and column-scaled frame.

The incoming frame and artwork size are multiplied by the column type's cell scale (GetMusicCellScaleForColumnType). Three device idioms drive the layout: iPad, retina iPhone, and the four-inch iPhone, read from the app delegate. The artwork image view carries a subtle perspective transform (m34 of -0.001) and a themed one-point border, and the labels, rank stacks, and two action buttons are laid out and installed as subviews.

Parameters
frameThe unscaled frame.
artworkSizeThe unscaled artwork edge length.
colTypeThe music-select column type, an index into the layout tables.
labelDispWhether the name and artist labels start visible.
Returns
The initialised tile.
Ghidra address:
0x44528
Ghidra address:
0x44528

◆ refreshTextColor

- (void) refreshTextColor

Re-applies getTextColor to both labels.

Ghidra address:
0x47ea8

◆ removeDownloadNotice

- (void) removeDownloadNotice

Removes the jubeatLab download icon and forgets the tune's recent-download ownership.

Ghidra address:
0x4ce30

◆ scaleChange:

- (void) scaleChange: (int) colType

Rescales the tile for the given column type, crossfading the labels and rank chips in.

Parameters
colTypeThe music-select column type to scale to.
Ghidra address:
0x48da4
Ghidra address:
0x48da4
Ghidra address:
0x4901c
Ghidra address:
0x4935c

◆ setExtendInfo:

- (void) setExtendInfo: (nullable TuneInfo *) info

Reveals the advertised-extend rank chips whose extend flags are set.

Parameters
infoThe extend tune whose flags select which chips to show, or nil to hide all three.
Ghidra address:
0x47f50

◆ setExtendScore:

- (void) setExtendScore: (nullable ScoreRecord *) record

Renders the advertised-rank images and full-combo markers from an extend score.

Parameters
recordThe score record.
Ghidra address:
0x4814c

◆ setInfo:

- (void) setInfo: (nullable TuneInfo *) info

Sets the tune, showing the artist label only on iPad.

Parameters
infoThe tune to display.
Ghidra address:
0x4ab68

◆ setInfo:bArtistNameDisp:

- (void) setInfo: (nullable TuneInfo *) info
bArtistNameDisp: (BOOL) bArtistNameDisp 

Sets the tune, name, and (optionally) artist text, and refreshes the label colour.

If the tune already appears in the recently-downloaded jubeatLab list, the download notice is shown.

Parameters
infoThe tune to display.
bArtistNameDispWhether to fill in the artist label.
Ghidra address:
0x47b14

◆ setRatingChipHidden:

- (void) setRatingChipHidden: (int) mode

Sets the alpha of the rank, advertised-rank, and chip stacks to a hidden state.

Parameters
mode0 hides all, 1 shows the advertised and rank stacks, 2 shows every stack.
Ghidra address:
0x48900
Ghidra address:
0x48900

◆ setScore:

- (void) setScore: (nullable ScoreRecord *) record

Renders the rank images and full-combo markers from a score.

Parameters
recordThe score record.
Ghidra address:
0x4ae30

◆ showNameAndArtist:

- (void) showNameAndArtist: (BOOL) show

Shows or hides the name label, and on iPad at a large scale the artist label too.

Parameters
showWhether the labels are shown.
Ghidra address:
0x4ad48
Ghidra address:
0x4ad48

◆ switchLabel:

- (void) switchLabel: (int) colType

Rescales for a column type, animating the labels and rank chips across the change.

Parameters
colTypeThe music-select column type to switch to.
Ghidra address:
0x49ab4
Ghidra address:
0x49ab4
Ghidra address:
0x4a7b0
Ghidra address:
0x4ab64

◆ tapBgmSelect:

- (void) tapBgmSelect: (nullable id) sender

Fires musicViewSelectBgmAction: and animates the button, ignoring interaction events for the duration.

Parameters
senderThe button.
Ghidra address:
0x4c4f0

◆ tapPlaylistAction:

- (void) tapPlaylistAction: (nullable id) sender

Fires musicViewPlaylistAction: on the delegate.

Parameters
senderThe button.
Ghidra address:
0x4c444

The documentation for this class was generated from the following files: