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

A row showing a mission sheet's icon, title and period over a background image. More...

#include <ChallengeMissionListCell.h>

Inheritance diagram for ChallengeMissionListCell:
Collaboration diagram for ChallengeMissionListCell:

Instance Methods

(instancetype) - initWithStyle:reuseIdentifier:
 Makes the row transparent and unhighlightable.
(void) - setBgImage:
 Sets the row's background, creating the background view at the image's own size.
(void) - setTitle:period:
 Sets the row's two lines of text, creating the labels on the first call.
(void) - setIconImage:selectedImage:
 Sets the row's icon and whether the row is marked as chosen.

Detailed Description

A row showing a mission sheet's icon, title and period over a background image.

Method Documentation

◆ initWithStyle:reuseIdentifier:

- (instancetype) initWithStyle: (UITableViewCellStyle) style
reuseIdentifier: (nullable NSString *) reuseIdentifier 

Makes the row transparent and unhighlightable.

No subview is created here.

Parameters
styleThe cell style.
reuseIdentifierThe reuse identifier.
Returns
The initialised row.
Ghidra address:
0xa9dc8

◆ setBgImage:

- (void) setBgImage: (nullable UIImage *) bgImg

Sets the row's background, creating the background view at the image's own size.

Must be called before the other two setters; both return early without it.

Parameters
bgImgThe background.
Ghidra address:
0xaa160

◆ setIconImage:selectedImage:

- (void) setIconImage: (nullable UIImage *) iconImg
selectedImage: (BOOL) selectedImage 

Sets the row's icon and whether the row is marked as chosen.

The chosen state is a border on the background, not on the icon. Does nothing if the background view does not exist yet.

Parameters
iconImgThe icon. The icon view is only created when this is non-nil.
selectedImageWhether to draw the chosen border. Despite the name this is a flag, not an image — the metadata types it B .
Ghidra address:
0xaa248

◆ setTitle:period:

- (void) setTitle: (nullable NSString *) title
period: (nullable NSString *) period 

Sets the row's two lines of text, creating the labels on the first call.

With a period the two labels straddle the background's vertical centre; without one the title sits on it. Does nothing if the background view does not exist yet.

Parameters
titleThe sheet's name.
periodThe sheet's run of dates, or nil for a single centred line.
Ghidra address:
0xa9e64

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