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

A modal degree-select table backed by a caller-supplied array of item rows. More...

#include <SettingsTwDegreeSelectView.h>

Inheritance diagram for SettingsTwDegreeSelectView:
Collaboration diagram for SettingsTwDegreeSelectView:

Instance Methods

(instancetype) - initWithFrame:delegate:dataSource:
 Builds the table (filling the whole view) and records the owner and the item array.
(NSInteger) - numberOfSectionsInTableView:
 The number of sections in the table.
(NSInteger) - tableView:numberOfRowsInSection:
 The number of rows in a section.
(CGFloat) - tableView:heightForRowAtIndexPath:
 The height of a row.
(nonnull UITableViewCell *) - tableView:cellForRowAtIndexPath:
 Builds (or reuses) the degree cell for a row and shows a checkmark on the equipped one.
(void) - tableView:willDisplayCell:forRowAtIndexPath:
 Called before a cell is displayed.
(void) - tableView:didSelectRowAtIndexPath:
 Handles a row tap: a free row is selected immediately; a costed row raises the unlock confirmation alert.
(void) - alertSelect:
 AlertViewManager delegate callback: the tapped button routes to the unlock or to a cancel that clears the pending item.
(void) - unlockItem
 Performs the unlock of the pending item.
(void) - unlockSuccess
 Records a successful unlock: zeroes the item's cost, tells the owner, and refreshes.
(void) - unlockFailed
 Records a failed unlock: clears the pending item.
(BOOL) - shouldAutorotateToInterfaceOrientation:
 Whether the view may rotate to an interface orientation (portrait orientations only).
(UIInterfaceOrientationMask) - supportedInterfaceOrientations
 The supported interface orientations (portrait mask).
(BOOL) - shouldAutorotate
 Whether the view should autorotate.
Instance Methods inherited from <AlertViewManagerDelegate>
(void) - alertClose:
 Sent when a UIAlertController -based alert finishes dismissing.

Detailed Description

A modal degree-select table backed by a caller-supplied array of item rows.

Method Documentation

◆ alertSelect:

- (void) alertSelect: (nonnull NSDictionary *) info

AlertViewManager delegate callback: the tapped button routes to the unlock or to a cancel that clears the pending item.

Parameters
infoThe button info dictionary, carrying the tapped button index under "btnMessage" .
Ghidra address:
0x124560

Reimplemented from <AlertViewManagerDelegate>.

◆ initWithFrame:delegate:dataSource:

- (instancetype) initWithFrame: (CGRect) frame
delegate: (nullable id< SettingsTwDegreeSelectViewDelegate >) delegate
dataSource: (nullable NSMutableArray *) dataSource 

Builds the table (filling the whole view) and records the owner and the item array.

Parameters
frameThe view's frame; the table is laid out at the frame's own size.
delegateThe owner told when rows are chosen, changed, or a purchase is cancelled.
dataSourceThe mutable array of item rows, each a mutable positional array.
Returns
The initialised view.
Ghidra address:
0x123dc8

◆ numberOfSectionsInTableView:

- (NSInteger) numberOfSectionsInTableView: (nonnull UITableView *) tableView

The number of sections in the table.

Parameters
tableViewThe table posing the question.
Returns
Always 1 .
Ghidra address:
0x123f44

◆ shouldAutorotate

- (BOOL) shouldAutorotate

Whether the view should autorotate.

Returns
Always YES .
Ghidra address:
0x12479c
Ghidra address:
0x12479c

◆ shouldAutorotateToInterfaceOrientation:

- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation

Whether the view may rotate to an interface orientation (portrait orientations only).

Parameters
interfaceOrientationThe candidate orientation.
Returns
YES for portrait and portrait-upside-down.
Ghidra address:
0x124784
Ghidra address:
0x124784

◆ supportedInterfaceOrientations

- (UIInterfaceOrientationMask) supportedInterfaceOrientations

The supported interface orientations (portrait mask).

Returns
UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown .
Ghidra address:
0x124794
Ghidra address:
0x124794

◆ tableView:cellForRowAtIndexPath:

- (nonnull UITableViewCell *) tableView: (nonnull UITableView *) tableView
cellForRowAtIndexPath: (nonnull NSIndexPath *) indexPath 

Builds (or reuses) the degree cell for a row and shows a checkmark on the equipped one.

Parameters
tableViewThe table posing the question.
indexPathThe row's index path.
Returns
The configured cell.
Ghidra address:
0x123f70

◆ tableView:didSelectRowAtIndexPath:

- (void) tableView: (nonnull UITableView *) tableView
didSelectRowAtIndexPath: (nonnull NSIndexPath *) indexPath 

Handles a row tap: a free row is selected immediately; a costed row raises the unlock confirmation alert.

Parameters
tableViewThe table.
indexPathThe tapped row's index path.
Ghidra address:
0x124164

◆ tableView:heightForRowAtIndexPath:

- (CGFloat) tableView: (nonnull UITableView *) tableView
heightForRowAtIndexPath: (nonnull NSIndexPath *) indexPath 

The height of a row.

Parameters
tableViewThe table posing the question.
indexPathThe row's index path.
Returns
A fixed row height.
Ghidra address:
0x123f64

◆ tableView:numberOfRowsInSection:

- (NSInteger) tableView: (nonnull UITableView *) tableView
numberOfRowsInSection: (NSInteger) section 

The number of rows in a section.

Parameters
tableViewThe table posing the question.
sectionThe section index.
Returns
The count of the item array.
Ghidra address:
0x123f4c

◆ tableView:willDisplayCell:forRowAtIndexPath:

- (void) tableView: (nonnull UITableView *) tableView
willDisplayCell: (nonnull UITableViewCell *) cell
forRowAtIndexPath: (nonnull NSIndexPath *) indexPath 

Called before a cell is displayed.

This implementation does nothing.

Parameters
tableViewThe table.
cellThe cell about to be displayed.
indexPathThe row's index path.
Ghidra address:
0x124160

◆ unlockFailed

- (void) unlockFailed

Records a failed unlock: clears the pending item.

Ghidra address:
0x124770

◆ unlockItem

- (void) unlockItem

Performs the unlock of the pending item.

The shipped body is empty.

Ghidra address:
0x12463c
Ghidra address:
0x12463c

◆ unlockSuccess

- (void) unlockSuccess

Records a successful unlock: zeroes the item's cost, tells the owner, and refreshes.

Ghidra address:
0x124640

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