JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ChallengeMissionSheetCell Class Reference

A mission row: an icon in a progress ring, a percentage, a stamp, and a marker. More...

#include <ChallengeMissionSheetCell.h>

Inheritance diagram for ChallengeMissionSheetCell:
Collaboration diagram for ChallengeMissionSheetCell:

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.

Detailed Description

A mission row: an icon in a progress ring, a percentage, a stamp, and a marker.

Method Documentation

◆ chartAnimationEnd

- (void) chartAnimationEnd

The PieChartView delegate callback: when the ring reaches a full rate, fades the completion stamp in.

Ghidra address:
0x85b2c
Ghidra address:
0x85c68
Ghidra address:
0x85cb4

Reimplemented from <PieChartViewDelegate>.

◆ disableCell

- (void) disableCell

Greys the row out: clears its background, hides the icon and percentage, and repaints the ring in the muted disabled palette.

Ghidra address:
0x8537c

◆ enableTouch:

- (void) enableTouch: (BOOL) enable

Enables or disables the row's detail touches.

Parameters
enableWhether taps and long presses are forwarded to the delegate.
Ghidra address:
0x85b1c
Ghidra address:
0x85b1c

◆ initWithFrame:

- (instancetype) initWithFrame: (CGRect) frame

Builds the row: the ring, its icon, the percentage digits, the stamp, and the tap button.

Parameters
frameThe row's frame; every subview is laid out inset by ten points.
Returns
The initialised row.
Ghidra address:
0x84144
Ghidra address:
0x84144

◆ longPressBtnMode

- (void) longPressBtnMode

The long-press recogniser's handler: tells the delegate the row was pressed.

Ghidra address:
0x85a44

◆ missionOpen

- (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.

Ghidra address:
0x855fc
Ghidra address:
0x85854
Ghidra address:
0x858a0

◆ setMarker:

- (void) setMarker: (BOOL) marker

Sets the row's marker state.

The shipped body does nothing.

Parameters
markerThe requested marker state.
Ghidra address:
0x85378
Ghidra address:
0x85378

◆ setMissionInfo:achieve:

- (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.

Parameters
termsThe mission's terms.
achieveThe mission's achievement record.
Returns
The computed achievement rate.
Ghidra address:
0x84d78

◆ setRateNumber

- (void) setRateNumber

Renders the achievement percentage into the three digit views and centres it.

Ghidra address:
0x84ac4

◆ stampAnimation

- (void) stampAnimation

Plays the stamp animation.

The shipped body does nothing.

Ghidra address:
0x85968
Ghidra address:
0x85968

◆ tapDetail

- (void) tapDetail

The detail button's touch-up handler: tells the delegate the row was tapped.

Ghidra address:
0x8596c

◆ undiceidedCell

- (void) undiceidedCell

Marks the row as an undecided mission: shows the lock icon and hides the percentage.

Ghidra address:
0x85580

Property Documentation

◆ aDelegate

- (id<ChallengeMissionSheetCellDelegate>) aDelegate
readwritenonatomicweak

The delegate told when the stamp animation ends and when the row is tapped or pressed.

Held weakly.

Ghidra address:
0x1003421c0 (getter selector)

The documentation for this class was generated from the following files: