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

A tappable tile showing one pack's artwork, name, price and status markers. More...

#include <StoreRecommendPackView.h>

Inheritance diagram for StoreRecommendPackView:
Collaboration diagram for StoreRecommendPackView:

Instance Methods

(instancetype) - initWithFrame:
 Builds the tile's seven subviews.
(void) - setBgImage:
 Sets the tile's background artwork.
(void) - loadPackInfo:index:
 Fills the tile in from a pack and records its position.
(void) - handleTap:
 The tile's tap handler.

Properties

id delegate
 The object told when the tile is tapped.
UIImageView * artworkView
 The tile's artwork view.
NSUInteger index
 The tile's position in the recommendation list, as last given to -loadPackInfo:index: .

Detailed Description

A tappable tile showing one pack's artwork, name, price and status markers.

Method Documentation

◆ handleTap:

- (void) handleTap: (id) sender

The tile's tap handler.

Parameters
senderThe gesture recogniser. Unused — the delegate is handed the tile.
Ghidra address:
0x145650
Ghidra address:
0x145650

◆ initWithFrame:

- (instancetype) initWithFrame: (CGRect) frame

Builds the tile's seven subviews.

The tap recogniser goes on the background rather than on the tile itself. The comment and price labels are sized from the "Purchased" badge's fitted frame, so both move with it.

Parameters
frameThe tile's frame.
Returns
The initialised tile.
Ghidra address:
0x1449fc
Ghidra address:
0x1449fc

◆ loadPackInfo:index:

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

Fills the tile in from a pack and records its position.

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.
indexThe tile's position, stored for the delegate to read back.
Ghidra address:
0x145704

◆ setBgImage:

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

Sets the tile's background artwork.

Parameters
bgImgThe artwork.
Ghidra address:
0x145638

Property Documentation

◆ artworkView

- (UIImageView*) artworkView
readwritenonatomicstrong

The tile's artwork view.

Ghidra address:
0x145940 (getter)

◆ delegate

- (id) delegate
readwritenonatomicweak

The object told when the tile is tapped.

Weak and untyped in the metadata, so the dispatch goes through -respondsToSelector: rather than a declared conformance. StoreRecommendTableCell nils this in its -dealloc.

Ghidra address:
0x145964 (getter)

◆ index

- (NSUInteger) index
readnonatomicassign

The tile's position in the recommendation list, as last given to -loadPackInfo:index: .

Ghidra address:
0x145930 (getter)

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