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

A table row showing one pack's artwork, name, price and status markers. More...

#include <StorePackCell.h>

Inheritance diagram for StorePackCell:
Collaboration diagram for StorePackCell:

Instance Methods

(instancetype) - initWithStyle:reuseIdentifier:
 Builds the row's six subviews.
(void) - loadPackInfo:
 Fills the row in from a pack.
(void) - setBgImage:
 Sets the row's background artwork.

Properties

UIImageView * artworkView
 The row's artwork view.
BOOL isPurchased
 Whether the row shows its owned marker.

Detailed Description

A table row showing one pack's artwork, name, price and status markers.

The row's six subviews are ivars rather than properties; only the artwork is exposed, and only for reading.

Method Documentation

◆ initWithStyle:reuseIdentifier:

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

Builds the row's six subviews.

The background image view becomes the cell's backgroundView rather than a subview. The other six go on the content view, and their horizontal frames are measured against its width once, with autoresizing masks carrying them through any later change.

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

◆ loadPackInfo:

- (void) loadPackInfo: (nullable StorePackInfo *) packInfo

Fills the row in from a pack.

A pack whose purchase is merely pending shows as owned, since the purchased marker is driven by -isPurchased: or -isPending: .

Parameters
packInfoThe pack to show.
Ghidra address:
0xf18c0

◆ setBgImage:

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

Sets the row's background artwork.

Parameters
bgImgThe artwork.
Ghidra address:
0xf1ad4

Property Documentation

◆ artworkView

- (UIImageView*) artworkView
readnonatomicstrong

The row's artwork view.

Ghidra address:
0xf1aec (getter)

◆ isPurchased

- (BOOL) isPurchased
readwritenonatomicassign

Whether the row shows its owned marker.

There is no backing ivar: the property is stored in the purchased label's own visibility, and both accessors invert it.

Ghidra address:
0xf1878 (getter)
Ghidra address:
0xf1878

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