15#import <UIKit/UIKit.h>
21NS_ASSUME_NONNULL_BEGIN
26@protocol MusicViewDelegate <NSObject>
47- (BOOL)musicViewGetPlaylistActionType:(nonnull
MusicView *)view;
53- (void)musicViewPlaylistAction:(nonnull
MusicView *)view;
59- (void)musicViewSelectBgmAction:(nonnull
MusicView *)view;
84- (instancetype)initWithFrame:(CGRect)frame
85 artworkSize:(
double)artworkSize
87 labelDisp:(BOOL)labelDisp;
124- (void)setInfo:(nullable
TuneInfo *)info bArtistNameDisp:(BOOL)bArtistNameDisp;
131- (void)setInfo:(nullable
TuneInfo *)info;
138- (void)setExtendInfo:(nullable
TuneInfo *)info;
145- (void)setExtendScore:(nullable
ScoreRecord *)record;
159- (void)setRatingChipHidden:(
int)mode;
166- (void)scaleChange:(
int)colType;
179- (void)switchLabel:(
int)colType;
192- (void)showNameAndArtist:(BOOL)show;
205- (void)handleTap:(nullable UITapGestureRecognizer *)recognizer;
220- (void)handlePress:(nullable UILongPressGestureRecognizer *)recognizer;
227- (void)tapPlaylistAction:(nullable
id)sender;
235- (void)tapBgmSelect:(nullable
id)sender;
249#pragma mark - Properties
252@property(nonatomic, strong, nullable) UIImageView *
imgView;
254@property(nonatomic, strong, nullable) UILabel *
nameLabel;
266@property(nonatomic, strong, nullable) UIImageView *
jcfIcon;
269@property(nonatomic, strong, nullable) UIImageView *
rankBgBas;
271@property(nonatomic, strong, nullable) UIImageView *
rankBgAdv;
273@property(nonatomic, strong, nullable) UIImageView *
rankBgExt;
275@property(nonatomic, strong, nullable) UIImageView *
rankImgBas;
277@property(nonatomic, strong, nullable) UIImageView *
rankImgAdv;
279@property(nonatomic, strong, nullable) UIImageView *
rankImgExt;
281@property(nonatomic, strong, nullable) UIImageView *
rankFcBas;
283@property(nonatomic, strong, nullable) UIImageView *
rankFcAdv;
285@property(nonatomic, strong, nullable) UIImageView *
rankFcExt;
322@property(nonatomic, weak, nullable) id<MusicViewDelegate>
delegate;
A song tile: artwork, labels, and per-difficulty rank and full-combo image stacks.
Definition MusicView.h:67
UIImageView * adRankFcAdv
The advanced-difficulty advertised full-combo marker.
Definition MusicView.h:314
UIImageView * rankImgExt
The extreme-difficulty rank letter.
Definition MusicView.h:279
UIButton * btnBgmSelect
The BGM-select button.
Definition MusicView.h:260
TuneInfo * extendTuneInfo
The extend tune whose flags reveal the chip overlays.
Definition MusicView.h:264
nonnull NSString * bgmImagePrefix()
The BGM-artwork basename prefix for the current tune ("bgm_stop_" when selected, else "bgm_set_").
Definition MusicView.m:1091
UIImageView * adRankBgBas
The basic-difficulty advertised-rank background.
Definition MusicView.h:300
UIImageView * rankBgAdv
The advanced-difficulty rank background.
Definition MusicView.h:271
UIImageView * adRankBgAdv
The advanced-difficulty advertised-rank background.
Definition MusicView.h:302
TuneInfo * tuneInfo
The displayed tune.
Definition MusicView.h:262
id< MusicViewDelegate > delegate
The gesture and button delegate.
Definition MusicView.h:322
void hidePlaylistActionButton()
Fades out and disables the playlist and BGM-select buttons.
Definition MusicView.m:975
UIImageView * rankBgHldExt
The extreme-difficulty hold-marker frame overlay.
Definition MusicView.h:297
NSMutableArray * rankBgChipArray
The rating-chip background array.
Definition MusicView.h:319
void fadeoutLabel()
Fades the labels and rank chips out and squares the artwork image view.
Definition MusicView.m:785
UIImageView * adRankFcBas
The basic-difficulty advertised full-combo marker.
Definition MusicView.h:312
UIImageView * rankBgHldAdv
The advanced-difficulty hold-marker frame overlay.
Definition MusicView.h:295
UIImageView * adRankImgBas
The basic-difficulty advertised-rank letter.
Definition MusicView.h:306
UIImageView * adRankImgAdv
The advanced-difficulty advertised-rank letter.
Definition MusicView.h:308
UIImageView * adRankBgExt
The extreme-difficulty advertised-rank background.
Definition MusicView.h:304
UIImageView * rankFcExt
The extreme-difficulty full-combo marker.
Definition MusicView.h:285
UIImageView * rankBgOrgBas
The basic-difficulty frame overlay.
Definition MusicView.h:287
void clearInfo()
Clears the tune and hides every rank background.
Definition MusicView.m:607
UIImageView * rankBgOrgAdv
The advanced-difficulty frame overlay.
Definition MusicView.h:289
UIImageView * imgView
The artwork image view.
Definition MusicView.h:252
UILabel * nameLabel
The tune title label.
Definition MusicView.h:254
UIImageView * jcfIcon
The jubeatLab download icon, present only while the notice is shown.
Definition MusicView.h:266
UIImageView * adRankFcExt
The extreme-difficulty advertised full-combo marker.
Definition MusicView.h:316
UILabel * artistNameLabel
The artist label.
Definition MusicView.h:256
UIImageView * rankBgExt
The extreme-difficulty rank background.
Definition MusicView.h:273
UIImageView * rankBgHldBas
The basic-difficulty hold-marker frame overlay.
Definition MusicView.h:293
CGPoint centerArtworkImg()
The centre point of the artwork image view for the current scale.
Definition MusicView.m:540
void removeDownloadNotice()
Removes the jubeatLab download icon and forgets the tune's recent-download ownership.
Definition MusicView.m:1165
UIImageView * rankImgBas
The basic-difficulty rank letter.
Definition MusicView.h:275
nonnull UIColor * getTextColor()
The label text colour for the current theme and custom-BGM selection.
Definition MusicView.m:510
UIImageView * rankImgAdv
The advanced-difficulty rank letter.
Definition MusicView.h:277
void refreshTextColor()
Re-applies getTextColor to both labels.
Definition MusicView.m:531
UIButton * btnPlaylistAction
The playlist add/remove button.
Definition MusicView.h:258
void addDownloadNotice()
Adds the jubeatLab download icon over the artwork, once.
Definition MusicView.m:1149
UIImageView * adRankImgExt
The extreme-difficulty advertised-rank letter.
Definition MusicView.h:310
UIImageView * rankBgBas
The basic-difficulty rank background.
Definition MusicView.h:269
UIImageView * rankBgOrgExt
The extreme-difficulty frame overlay.
Definition MusicView.h:291
UIImageView * rankFcBas
The basic-difficulty full-combo marker.
Definition MusicView.h:281
UIImageView * rankFcAdv
The advanced-difficulty full-combo marker.
Definition MusicView.h:283
One tune's scores, as stored by Core Data: the per-difficulty best score, play-mode marker,...
Definition ScoreRecord.h:19
A tune, its three difficulty levels, and how it sorts.
Definition TuneInfo.h:20