21#import <UIKit/UIKit.h>
25@class ChallengeMusicInfo;
29NS_ASSUME_NONNULL_BEGIN
37@protocol ScratchMusicDetailViewDelegate <NSObject>
46- (void)openJubeatStore:(NSInteger)packID;
70- (instancetype)initWithFrame:(CGRect)frame;
78- (nullable UIButton *)diffButton:(nullable NSString *)imageName;
92- (void)loadContentFromDictionary:(nullable NSDictionary *)dict;
101- (void)loadContentFromPath:(nullable NSString *)path orData:(nullable NSData *)data;
108- (void)loadExtendMusicBar:(nullable NSString *)path;
116- (void)setRankingNumberImage:(
int)number;
125- (void)setInfo:(nullable
TuneInfo *)info score:(nullable
id)score;
133- (void)infoChange:(
int)difficulty;
148- (nullable NSString *)soundName:(nullable NSString *)name;
156- (void)selectDiff:(nullable
id)sender;
166- (void)setScoreBoard:(
int)scoreValue fullcombo:(BOOL)fullcombo;
174- (void)changeDifficulty:(
int)difficulty;
182- (void)setMusicBarDot:(nullable
char *)mbar mbarRes:(nullable
char *)mbarRes;
197- (CGPoint)getDifficultyPos:(
int)difficulty;
207- (void)setDetailInfo:(
int)slot;
215- (void)pushButtonStartPlay:(nullable
id)sender;
222- (void)tapRanking:(nullable
id)sender;
255#pragma mark - Properties
261@property(nonatomic, weak, nullable) id<ScratchMusicDetailViewDelegate>
aDelegate;
266@property(nonatomic, assign, readonly)
unsigned int musicID;
The music-selection detail card.
A challenge-tune ranking list built over a modal frame.
Definition ChallengeRankingListView.h:40
The music-selection detail card shown when a tune is picked.
Definition MusicDetailView.h:52
The scratch-mode music-detail card over a ChallengeStatus scratch panel.
Definition ScratchMusicDetailView.h:53
nullable UIImage * getStartImage()
The start-play button background image.
Definition ScratchMusicDetailView.m:483
void tapStoreMove()
Store button action: plays the menu sound and tells the delegate to open the store on the tune's pack...
Definition ScratchMusicDetailView.m:982
int difficulty
The selected difficulty index.
Definition ScratchMusicDetailView.h:271
id< ScratchMusicDetailViewDelegate > aDelegate
The delegate told about play, ranking, and store actions.
Definition ScratchMusicDetailView.h:261
unsigned int musicID
The tune's music identifier.
Definition ScratchMusicDetailView.h:266
void loadImages()
Loads the rating, level, high-score, music-bar, full-combo, and excellent image atlases.
Definition ScratchMusicDetailView.m:443
void showDetail()
Removes and releases the ranking list view when one is shown.
Definition ScratchMusicDetailView.m:994
TuneInfo * tuneInfo
The tune's decrypted info.
Definition ScratchMusicDetailView.h:276
void clearInfo()
Clears the artwork, reflection, and name-plate images.
Definition ScratchMusicDetailView.m:617
void refreshDetail()
Re-reads the three per-difficulty ranks from the panel's ChallengeMusicInfo.
Definition ScratchMusicDetailView.m:1002
Class layerClass()
The card's backing layer class: a CAGradientLayer.
Definition ScratchMusicDetailView.m:201
void closeRanking()
Removes and releases the ranking list view.
Definition ScratchMusicDetailView.m:988
void timerUpdate()
Empty in this build.
Definition ScratchMusicDetailView.m:1010
A tune, its three difficulty levels, and how it sorts.
Definition TuneInfo.h:20
void openRanking()
The ranking button was tapped.
void startChallengeMusic()
The enabled start-play button was tapped.