JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ScratchMusicDetailView.h
Go to the documentation of this file.
1
20
21#import <UIKit/UIKit.h>
22
23#import "MusicDetailView.h"
24
25@class ChallengeMusicInfo;
27@class TuneInfo;
28
29NS_ASSUME_NONNULL_BEGIN
30
37@protocol ScratchMusicDetailViewDelegate <NSObject>
46- (void)openJubeatStore:(NSInteger)packID;
47@end
48
53
59+ (Class)layerClass;
60
70- (instancetype)initWithFrame:(CGRect)frame;
71
78- (nullable UIButton *)diffButton:(nullable NSString *)imageName;
79
84- (void)loadImages;
85
92- (void)loadContentFromDictionary:(nullable NSDictionary *)dict;
93
101- (void)loadContentFromPath:(nullable NSString *)path orData:(nullable NSData *)data;
102
108- (void)loadExtendMusicBar:(nullable NSString *)path;
109
116- (void)setRankingNumberImage:(int)number;
117
125- (void)setInfo:(nullable TuneInfo *)info score:(nullable id)score;
126
133- (void)infoChange:(int)difficulty;
134
139- (void)clearInfo;
140
148- (nullable NSString *)soundName:(nullable NSString *)name;
149
156- (void)selectDiff:(nullable id)sender;
157
166- (void)setScoreBoard:(int)scoreValue fullcombo:(BOOL)fullcombo;
167
174- (void)changeDifficulty:(int)difficulty;
175
182- (void)setMusicBarDot:(nullable char *)mbar mbarRes:(nullable char *)mbarRes;
183
189- (nullable UIImage *)getStartImage;
190
197- (CGPoint)getDifficultyPos:(int)difficulty;
198
207- (void)setDetailInfo:(int)slot;
208
215- (void)pushButtonStartPlay:(nullable id)sender;
216
222- (void)tapRanking:(nullable id)sender;
223
228- (void)closeRanking;
229
235- (void)tapStoreMove;
236
241- (void)showDetail;
242
247- (void)refreshDetail;
248
253- (void)timerUpdate;
254
255#pragma mark - Properties
256
261@property(nonatomic, weak, nullable) id<ScratchMusicDetailViewDelegate> aDelegate;
266@property(nonatomic, assign, readonly) unsigned int musicID;
271@property(nonatomic, assign, readonly) int difficulty;
276@property(nonatomic, strong, readonly, nullable) TuneInfo *tuneInfo;
277
278@end
279
280NS_ASSUME_NONNULL_END
281
282// code: language=Objective-C
283// kate: hl Objective-C;
284// vim: set ft=objc :
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.