JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ChallengeMissionSheetCell.h
Go to the documentation of this file.
1
14
15#import <UIKit/UIKit.h>
16
17#import "PieChartView.h"
18
19NS_ASSUME_NONNULL_BEGIN
20
24
30@protocol ChallengeMissionSheetCellDelegate <NSObject>
31@optional
36- (void)tapStampCell:(ChallengeMissionSheetCell *)cell;
41- (void)pressStampCell:(ChallengeMissionSheetCell *)cell;
46- (void)stampAnimationEnd:(ChallengeMissionSheetCell *)cell;
47@end
48
53
59@property(nonatomic, weak, nullable) id<ChallengeMissionSheetCellDelegate> aDelegate;
60
67- (instancetype)initWithFrame:(CGRect)frame;
68
73- (void)setRateNumber;
74
86- (float)setMissionInfo:(nullable ChallengeMissionTerms *)terms
87 achieve:(nullable ChallengeMissionAchieve *)achieve;
88
94- (void)setMarker:(BOOL)marker;
95
101- (void)disableCell;
102
107- (void)undiceidedCell;
108
114- (void)missionOpen;
115
120- (void)stampAnimation;
121
126- (void)tapDetail;
127
132- (void)longPressBtnMode;
133
139- (void)enableTouch:(BOOL)enable;
140
146- (void)chartAnimationEnd;
147
148@end
149
150NS_ASSUME_NONNULL_END
151
152// code: language=Objective-C
153// kate: hl Objective-C;
154// vim: set ft=objc :
An animated circular progress (pie-ring) view.
A mission's identity, state and progress detail.
Definition ChallengeMissionAchieve.h:39
A mission row: an icon in a progress ring, a percentage, a stamp, and a marker.
Definition ChallengeMissionSheetCell.h:52
void missionOpen()
Reveals the row: animates the ring towards its rate, then either plays the stamp animation or tells t...
Definition ChallengeMissionSheetCell.m:376
void tapDetail()
The detail button's touch-up handler: tells the delegate the row was tapped.
Definition ChallengeMissionSheetCell.m:419
void chartAnimationEnd()
The PieChartView delegate callback: when the ring reaches a full rate, fades the completion stamp in.
Definition ChallengeMissionSheetCell.m:444
id< ChallengeMissionSheetCellDelegate > aDelegate
The delegate told when the stamp animation ends and when the row is tapped or pressed.
Definition ChallengeMissionSheetCell.h:59
void undiceidedCell()
Marks the row as an undecided mission: shows the lock icon and hides the percentage.
Definition ChallengeMissionSheetCell.m:367
void stampAnimation()
Plays the stamp animation.
Definition ChallengeMissionSheetCell.m:412
void setRateNumber()
Renders the achievement percentage into the three digit views and centres it.
Definition ChallengeMissionSheetCell.m:221
void longPressBtnMode()
The long-press recogniser's handler: tells the delegate the row was pressed.
Definition ChallengeMissionSheetCell.m:428
void disableCell()
Greys the row out: clears its background, hides the icon and percentage, and repaints the ring in the...
Definition ChallengeMissionSheetCell.m:342
A challenge mission's identity, description, and completion condition.
Definition ChallengeMissionTerms.h:25
Told when the pie chart's fill animation finishes.
Definition PieChartView.h:18