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

The challenge-mode mission page: two toggled tables over a shared plate. More...

#include <ChallengeMissionPageView.h>

Inheritance diagram for ChallengeMissionPageView:
Collaboration diagram for ChallengeMissionPageView:

Instance Methods

(instancetype) - initWithFrame:
 Builds the background plate, the title, close and list buttons, and starts the sheet-list download.
(void) - tapListBtn:
 List-button callback: records the tapped list, swaps the two button images, downloads the reward list the first time the reward tab is chosen, and otherwise cross-fades the tables.
(void) - switchListView:
 Cross-fades between the mission-sheet and reward tables, updating the empty-state label and re-enabling the buttons when both lists are empty.
(void) - tapClose:
 Close-button callback: tells the delegate to dismiss the page.
(void) - cancelSettingMenu:
 Alert callback: closes the page, or reports a challenge-mode session error when the boxed flag is set.
(void) - closeSettingMenu:
 Close-button callback while a sheet is shown: returns to the sheet list, otherwise tells the delegate to dismiss the page.
(void) - missionSheetDisplayEnd
 Called when the presented mission sheet finishes displaying: clears the download-wait flag and re-enables the close button.
(void) - downloaderFinished:
 DownloaderDelegate success callback: parses the sheet-list or reward-list JSON and builds the matching table.
(void) - downloaderError:
 DownloaderDelegate failure callback: re-enables the buttons and shows the server-error alert.
(void) - tableView:willDisplayHeaderView:forSection:
 Whitens the tint of a section header view before it is displayed.
(UITableViewCell *) - tableView:cellForRowAtIndexPath:
 Vends a mission-sheet or reward cell, alternating the background plate per row and formatting the sheet's period.
(void) - tableView:willDisplayCell:forRowAtIndexPath:
 Empty UITableViewDelegate hook.
(CGFloat) - tableView:heightForRowAtIndexPath:
 The fixed per-row height, in points.
(NSInteger) - numberOfSectionsInTableView:
 Two sections on the mission table when event sheets exist, otherwise one.
(NSInteger) - tableView:numberOfRowsInSection:
 The row count for the given section and table.
(void) - tableView:didSelectRowAtIndexPath:
 Row-selection callback: opens a ChallengeMissionSheetView (mission list) or a MissionRewardDownloadView (reward list).
(void) - challengeConnectError:
 Presents the appropriate alert for a challenge-connect error carried in the response dictionary.
(void) - switchMissionView:
 Cross-fades between the sheet list and the presented mission sheet.
(void) - alertSelect:
 UIAlertView delegate callback: reports a challenge-mode session error for tag 9999.
(void) - closeRewardWin:
 Reward-download callback: cross-fades the reward-download view out and removes it.
(void) - cubePurchase
 Forwards a cube-purchase request to the delegate when it responds to -cubePurchase .
(void) - refreshStatus
 Forwards a status refresh to the delegate when it responds to -refreshStatus .
Instance Methods inherited from <DownloaderDelegate>
(void) - downloaderProceed:
 Sent periodically as data arrives, and once more on completion.
(void) - downloaderFinished:
 Sent when the request completes.
(void) - downloaderError:
 Sent when the request fails.

Properties

id< ChallengeMissionPageViewDelegate > aDelegate
 The object told about close, purchase, and refresh events.

Detailed Description

The challenge-mode mission page: two toggled tables over a shared plate.

Method Documentation

◆ alertSelect:

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

UIAlertView delegate callback: reports a challenge-mode session error for tag 9999.

Parameters
infoThe alert-result dictionary, keyed by "Tag".
Ghidra address:
0xae498

◆ cancelSettingMenu:

- (void) cancelSettingMenu: (nullable id) sender

Alert callback: closes the page, or reports a challenge-mode session error when the boxed flag is set.

Parameters
senderThe boxed BOOL selection.
Ghidra address:
0xabc34

◆ challengeConnectError:

- (void) challengeConnectError: (nullable NSDictionary *) info

Presents the appropriate alert for a challenge-connect error carried in the response dictionary.

Parameters
infoThe response dictionary, keyed by "status" and optionally "err_message".
Ghidra address:
0xacaa8

◆ closeRewardWin:

- (void) closeRewardWin: (nullable id) sender

Reward-download callback: cross-fades the reward-download view out and removes it.

Parameters
senderThe reward-download view.
Ghidra address:
0xae558

◆ closeSettingMenu:

- (void) closeSettingMenu: (nullable id) sender

Close-button callback while a sheet is shown: returns to the sheet list, otherwise tells the delegate to dismiss the page.

Parameters
senderThe tapped control.
Ghidra address:
0xabce0

◆ cubePurchase

- (void) cubePurchase

Forwards a cube-purchase request to the delegate when it responds to -cubePurchase .

Ghidra address:
0xae7e0

◆ downloaderError:

- (void) downloaderError: (nullable id) downloader

DownloaderDelegate failure callback: re-enables the buttons and shows the server-error alert.

Parameters
downloaderThe failed SessionDownloader.
Ghidra address:
0xacf9c

◆ downloaderFinished:

- (void) downloaderFinished: (nullable id) downloader

DownloaderDelegate success callback: parses the sheet-list or reward-list JSON and builds the matching table.

Parameters
downloaderThe finished SessionDownloader; its tag selects the list (0 sheet, 1 reward).
Ghidra address:
0xabdc8

◆ initWithFrame:

- (instancetype) initWithFrame: (CGRect) frame

Builds the background plate, the title, close and list buttons, and starts the sheet-list download.

Parameters
frameThe view's frame.
Returns
The initialised view.
Ghidra address:
0xaa91c
Ghidra address:
0xaa91c

◆ missionSheetDisplayEnd

- (void) missionSheetDisplayEnd

Called when the presented mission sheet finishes displaying: clears the download-wait flag and re-enables the close button.

Ghidra address:
0xabda0

◆ numberOfSectionsInTableView:

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

Two sections on the mission table when event sheets exist, otherwise one.

Parameters
tableViewThe table asking.
Returns
Two when event sheets exist, otherwise one.
Ghidra address:
0xad898

◆ refreshStatus

- (void) refreshStatus

Forwards a status refresh to the delegate when it responds to -refreshStatus .

Ghidra address:
0xae890

◆ switchListView:

- (void) switchListView: (int) list

Cross-fades between the mission-sheet and reward tables, updating the empty-state label and re-enabling the buttons when both lists are empty.

Parameters
listThe list to switch to (0 mission, 1 reward).
Ghidra address:
0xab60c
Ghidra address:
0xab60c
Ghidra address:
0xab948
Ghidra address:
0xab994
Ghidra address:
0xabad4
Ghidra address:
0xabb20

◆ switchMissionView:

- (void) switchMissionView: (BOOL) showSheet

Cross-fades between the sheet list and the presented mission sheet.

Parameters
showSheetYES to fade the mission sheet in, NO to return to the list.
Ghidra address:
0xadf4c
Ghidra address:
0xadf4c
Ghidra address:
0xae21c
Ghidra address:
0xae268
Ghidra address:
0xae39c
Ghidra address:
0xae3e8

◆ tableView:cellForRowAtIndexPath:

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

Vends a mission-sheet or reward cell, alternating the background plate per row and formatting the sheet's period.

Parameters
tableViewThe table asking.
indexPathThe row's index path.
Returns
The mission-sheet or reward cell for the row.
Ghidra address:
0xad12c

◆ tableView:didSelectRowAtIndexPath:

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

Row-selection callback: opens a ChallengeMissionSheetView (mission list) or a MissionRewardDownloadView (reward list).

Parameters
tableViewThe table sending the message.
indexPathThe tapped row's index path.
Ghidra address:
0xad9a4

◆ tableView:heightForRowAtIndexPath:

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

The fixed per-row height, in points.

Parameters
tableViewThe table asking.
indexPathThe row's index path.
Returns
The fixed row height, in points.
Ghidra address:
0xad880

◆ tableView:numberOfRowsInSection:

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

The row count for the given section and table.

Parameters
tableViewThe table asking.
sectionThe section asked about.
Returns
The row count for that section of that table.
Ghidra address:
0xad8f4

◆ tableView:willDisplayCell:forRowAtIndexPath:

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

Empty UITableViewDelegate hook.

Parameters
tableViewThe table asking. The binary ignores it.
cellThe cell about to be drawn. The binary ignores it.
indexPathThe row's index path. The binary ignores it.
Ghidra address:
0xad87c

◆ tableView:willDisplayHeaderView:forSection:

- (void) tableView: (nonnull UITableView *) tableView
willDisplayHeaderView: (nonnull UIView *) view
forSection: (NSInteger) section 

Whitens the tint of a section header view before it is displayed.

Parameters
tableViewThe table asking.
viewThe header view about to be drawn.
sectionThe section the header belongs to.
Ghidra address:
0xaca30

◆ tapClose:

- (void) tapClose: (nullable id) sender

Close-button callback: tells the delegate to dismiss the page.

Parameters
senderThe tapped control.
Ghidra address:
0xabbf4

◆ tapListBtn:

- (void) tapListBtn: (nullable id) sender

List-button callback: records the tapped list, swaps the two button images, downloads the reward list the first time the reward tab is chosen, and otherwise cross-fades the tables.

Parameters
senderThe tapped UIButton, whose tag is the list index (0 mission, 1 reward).
Ghidra address:
0xab448

Property Documentation

◆ aDelegate

- (id<ChallengeMissionPageViewDelegate>) aDelegate
readwritenonatomicweak

The object told about close, purchase, and refresh events.

Held weakly.

Ghidra address:
0xae940 (getter), 0xae960 (setter)

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