|
JubeatPlus 3.9.11
|
The challenge-mode mission page: two toggled tables over a shared plate. More...
#include <ChallengeMissionPageView.h>


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. | |
The challenge-mode mission page: two toggled tables over a shared plate.
| - (void) alertSelect: | (nullable NSDictionary *) | info |
UIAlertView delegate callback: reports a challenge-mode session error for tag 9999.
| info | The alert-result dictionary, keyed by "Tag". |
| - (void) cancelSettingMenu: | (nullable id) | sender |
Alert callback: closes the page, or reports a challenge-mode session error when the boxed flag is set.
| sender | The boxed BOOL selection. |
| - (void) challengeConnectError: | (nullable NSDictionary *) | info |
Presents the appropriate alert for a challenge-connect error carried in the response dictionary.
| info | The response dictionary, keyed by "status" and optionally "err_message". |
| - (void) closeRewardWin: | (nullable id) | sender |
Reward-download callback: cross-fades the reward-download view out and removes it.
| sender | The reward-download view. |
| - (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.
| sender | The tapped control. |
| - (void) cubePurchase |
Forwards a cube-purchase request to the delegate when it responds to -cubePurchase .
| - (void) downloaderError: | (nullable id) | downloader |
DownloaderDelegate failure callback: re-enables the buttons and shows the server-error alert.
| downloader | The failed SessionDownloader. |
| - (void) downloaderFinished: | (nullable id) | downloader |
DownloaderDelegate success callback: parses the sheet-list or reward-list JSON and builds the matching table.
| downloader | The finished SessionDownloader; its tag selects the list (0 sheet, 1 reward). |
| - (instancetype) initWithFrame: | (CGRect) | frame |
Builds the background plate, the title, close and list buttons, and starts the sheet-list download.
| frame | The view's frame. |
| - (void) missionSheetDisplayEnd |
Called when the presented mission sheet finishes displaying: clears the download-wait flag and re-enables the close button.
| - (NSInteger) numberOfSectionsInTableView: | (nonnull UITableView *) | tableView |
Two sections on the mission table when event sheets exist, otherwise one.
| tableView | The table asking. |
| - (void) refreshStatus |
Forwards a status refresh to the delegate when it responds to -refreshStatus .
| - (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.
| list | The list to switch to (0 mission, 1 reward). |
| - (void) switchMissionView: | (BOOL) | showSheet |
Cross-fades between the sheet list and the presented mission sheet.
| showSheet | YES to fade the mission sheet in, NO to return to the list. |
| - (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.
| tableView | The table asking. |
| indexPath | The row's index path. |
| - (void) tableView: | (nonnull UITableView *) | tableView | |
| didSelectRowAtIndexPath: | (nonnull NSIndexPath *) | indexPath |
Row-selection callback: opens a ChallengeMissionSheetView (mission list) or a MissionRewardDownloadView (reward list).
| tableView | The table sending the message. |
| indexPath | The tapped row's index path. |
| - (CGFloat) tableView: | (nonnull UITableView *) | tableView | |
| heightForRowAtIndexPath: | (nonnull NSIndexPath *) | indexPath |
The fixed per-row height, in points.
| tableView | The table asking. |
| indexPath | The row's index path. |
| - (NSInteger) tableView: | (nonnull UITableView *) | tableView | |
| numberOfRowsInSection: | (NSInteger) | section |
The row count for the given section and table.
| tableView | The table asking. |
| section | The section asked about. |
| - (void) tableView: | (nonnull UITableView *) | tableView | |
| willDisplayCell: | (nonnull UITableViewCell *) | cell | |
| forRowAtIndexPath: | (nonnull NSIndexPath *) | indexPath |
Empty UITableViewDelegate hook.
| tableView | The table asking. The binary ignores it. |
| cell | The cell about to be drawn. The binary ignores it. |
| indexPath | The row's index path. The binary ignores it. |
| - (void) tableView: | (nonnull UITableView *) | tableView | |
| willDisplayHeaderView: | (nonnull UIView *) | view | |
| forSection: | (NSInteger) | section |
Whitens the tint of a section header view before it is displayed.
| tableView | The table asking. |
| view | The header view about to be drawn. |
| section | The section the header belongs to. |
| - (void) tapClose: | (nullable id) | sender |
Close-button callback: tells the delegate to dismiss the page.
| sender | The tapped control. |
| - (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.
| sender | The tapped UIButton, whose tag is the list index (0 mission, 1 reward). |
|
readwritenonatomicweak |
The object told about close, purchase, and refresh events.
Held weakly.