|
JubeatPlus 3.9.11
|
A mission row: an icon in a progress ring, a percentage, a stamp, and a marker. More...
#include <ChallengeMissionSheetCell.h>


Instance Methods | |
| (instancetype) | - initWithFrame: |
| Builds the row: the ring, its icon, the percentage digits, the stamp, and the tap button. | |
| (void) | - setRateNumber |
| Renders the achievement percentage into the three digit views and centres it. | |
| (float) | - setMissionInfo:achieve: |
| Populates the row from a mission's terms and achievement record. | |
| (void) | - setMarker: |
| Sets the row's marker state. | |
| (void) | - disableCell |
| Greys the row out: clears its background, hides the icon and percentage, and repaints the ring in the muted disabled palette. | |
| (void) | - undiceidedCell |
| Marks the row as an undecided mission: shows the lock icon and hides the percentage. | |
| (void) | - missionOpen |
| Reveals the row: animates the ring towards its rate, then either plays the stamp animation or tells the delegate the stamp animation is already done. | |
| (void) | - stampAnimation |
| Plays the stamp animation. | |
| (void) | - tapDetail |
| The detail button's touch-up handler: tells the delegate the row was tapped. | |
| (void) | - longPressBtnMode |
| The long-press recogniser's handler: tells the delegate the row was pressed. | |
| (void) | - enableTouch: |
| Enables or disables the row's detail touches. | |
| (void) | - chartAnimationEnd |
The PieChartView delegate callback: when the ring reaches a full rate, fades the completion stamp in. | |
Properties | |
| id< ChallengeMissionSheetCellDelegate > | aDelegate |
| The delegate told when the stamp animation ends and when the row is tapped or pressed. | |
A mission row: an icon in a progress ring, a percentage, a stamp, and a marker.
| - (void) chartAnimationEnd |
The PieChartView delegate callback: when the ring reaches a full rate, fades the completion stamp in.
Reimplemented from <PieChartViewDelegate>.
| - (void) disableCell |
Greys the row out: clears its background, hides the icon and percentage, and repaints the ring in the muted disabled palette.
| - (void) enableTouch: | (BOOL) | enable |
Enables or disables the row's detail touches.
| enable | Whether taps and long presses are forwarded to the delegate. |
| - (instancetype) initWithFrame: | (CGRect) | frame |
Builds the row: the ring, its icon, the percentage digits, the stamp, and the tap button.
| frame | The row's frame; every subview is laid out inset by ten points. |
| - (void) longPressBtnMode |
The long-press recogniser's handler: tells the delegate the row was pressed.
| - (void) missionOpen |
Reveals the row: animates the ring towards its rate, then either plays the stamp animation or tells the delegate the stamp animation is already done.
| - (void) setMarker: | (BOOL) | marker |
Sets the row's marker state.
The shipped body does nothing.
| marker | The requested marker state. |
| - (float) setMissionInfo: | (nullable ChallengeMissionTerms *) | terms | |
| achieve: | (nullable ChallengeMissionAchieve *) | achieve |
Populates the row from a mission's terms and achievement record.
Sets the title and icon, chooses the completion or skip stamp, computes the achievement rate from the mission and achievement counts, and enables the row.
| terms | The mission's terms. |
| achieve | The mission's achievement record. |
| - (void) setRateNumber |
Renders the achievement percentage into the three digit views and centres it.
| - (void) stampAnimation |
Plays the stamp animation.
The shipped body does nothing.
| - (void) tapDetail |
The detail button's touch-up handler: tells the delegate the row was tapped.
| - (void) undiceidedCell |
Marks the row as an undecided mission: shows the lock icon and hides the percentage.
|
readwritenonatomicweak |
The delegate told when the stamp animation ends and when the row is tapped or pressed.
Held weakly.