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

A menu row whose badge draws its number from per-digit artwork. More...

#include <ChallengeMenuViewCell.h>

Inheritance diagram for ChallengeMenuViewCell:
Collaboration diagram for ChallengeMenuViewCell:

Instance Methods

(instancetype) - initWithStyle:reuseIdentifier:
 Clears the button, goes clear-backed and drops the selection style.
(void) - setBgImage:numImage:
 Builds the row's button, badge plate and digit views.
(void) - setNumber:
 Shows a number on the badge, or hides the badge entirely.
(void) - tapMenu:
 The row button's action.

Properties

id aDelegate
 Weak and untyped, per the metadata.

Detailed Description

A menu row whose badge draws its number from per-digit artwork.

The row owns two fixed arrays of image views, one two digits wide and one three, and picks between them by magnitude rather than resizing either.

Method Documentation

◆ initWithStyle:reuseIdentifier:

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

Clears the button, goes clear-backed and drops the selection style.

Builds no subviews.

Parameters
styleThe cell style.
reuseIdentifierThe reuse identifier, or nil for a non-reusable cell.
Returns
The initialised cell.
Ghidra address:
0x41b74

◆ setBgImage:numImage:

- (void) setBgImage: (nullable UIImage *) bgImg
numImage: (nullable NSArray *) numImg 

Builds the row's button, badge plate and digit views.

Builds everything on the first call only; later calls just re-apply the tag, the target and the background. The digit views are laid out to centre exactly, three or two at a time.

Parameters
bgImgThe row's background artwork.
numImgThe digit artwork, indexed 0 to 9.
Ghidra address:
0x41c24

◆ setNumber:

- (void) setNumber: (int) number

Shows a number on the badge, or hides the badge entirely.

Zero hides the plate and returns. One to nine goes in the middle slot of the three-wide row rather than in the two-wide one. Ten to ninety-nine uses the two-wide row, and anything larger uses the three-wide row. Values above 999 are clamped to 999 rather than rejected.

Parameters
numberThe count to show.
Ghidra address:
0x42314
Ghidra address:
0x42314

◆ tapMenu:

- (void) tapMenu: (id) sender

The row button's action.

Does nothing at all — the body is a single return.

Not dead code: -setBgImage:numImage: targets the button at aDelegate rather than at self, so with a nil delegate UIKit walks the responder chain to this cell and this method absorbs the tap.

Parameters
senderThe tapped button. Unused.
Ghidra address:
0x425e4
Ghidra address:
0x425e4

Property Documentation

◆ aDelegate

- (id) aDelegate
readwritenonatomicweak

Weak and untyped, per the metadata.

Nothing this class defines reads it.

Ghidra address:
0x425e8 (getter)

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