|
JubeatPlus 3.9.11
|
The scratch challenge-mode root container. More...
#include <ChallengeModeRootView.h>


Instance Methods | |
| (instancetype) | - init |
| Builds the whole challenge-mode hierarchy over the main-screen bounds. | |
| (NSString *) | - soundName: |
| Prefixes a sound-effect base name with the current theme's prefix. | |
| (void) | - showLoginMessage |
| Presents the appropriate login/information/how-to sheet or the login message. | |
| (BOOL) | - checkArtworkDownload |
| Checks whether every line-up artwork is present on disk, queueing the rest for download. | |
| (void) | - imageDownload |
| Starts the next queued artwork download. | |
| (void) | - setNotificateImage |
| Shows or hides the present-notification badge from the current present count. | |
| (void) | - enterChallengeView: |
| Slides the challenge view in and starts the event BGM. | |
| (void) | - outerChallengeView: |
| Slides the challenge view off the top edge and closes challenge mode. | |
| (void) | - setChallengeData: |
| Seeds the shared status from a challenge-data dictionary and starts the refresh timer. | |
| (void) | - deleteMusicData |
| Iterates the line-up records (the binary discards each parsed value). | |
| (void) | - refreshView |
| Refreshes the badge and the scratch board. | |
| (void) | - closeChallengeModeSessionError |
| Closes the challenge session after a server session error. | |
| (void) | - closeChallengeMode: |
| The close-button action: plays the close sound and leaves challenge mode. | |
| (void) | - tapMenuBtn: |
| The menu-button action: presents the challenge menu root view. | |
| (void) | - tapLineupBtn: |
| The line-up-button action: presents the line-up view over a cover. | |
| (void) | - tapRankingBtn: |
| The ranking-button action: opens the all-songs ranking. | |
| (void) | - dispCoverView: |
Calls -boolValue on the flag and discards the result. | |
| (void) | - dispDownloadDialog: |
| A no-op in the shipped binary. | |
| (void) | - alertSelect: |
| Routes an alert result to the matching scratch, purchase, or close action. | |
| (void) | - openDetailView |
| Opens the per-panel music detail sheet with a scale-in animation. | |
| (void) | - closeDetailView |
| Closes the music detail sheet with a scale-out animation. | |
| (void) | - closeMenu |
| Closes the name-setting sheet, then shows the login message. | |
| (void) | - closeMenuView |
| Removes the challenge menu root view. | |
| (void) | - changeRanking |
| Refreshes the detail sheet after a ranking change. | |
| (NSString *) | - scratchMessage |
| Builds the scratch-confirmation message, warning when little play time remains. | |
| (void) | - startChallengeMusic |
| Starts the challenge music, recovering play coins with cubes when short. | |
| (void) | - updateNailState: |
| Applies the result of a nail (single-panel) scratch. | |
| (void) | - showMenuCoverView |
| Fades the menu cover in. | |
| (void) | - hideMenuCoverView |
| Fades the menu cover out and removes it. | |
| (void) | - showCoverView |
| Fades the modal cover in. | |
| (void) | - hideCoverView |
| Fades the modal cover out and removes it. | |
| (void) | - showPurchaseDialog: |
| Shows the modal dialog as a bare progress panel with the given message. | |
| (void) | - hidePurchaseDialog |
| Hides the purchase progress dialog. | |
| (void) | - setPurchaseDialogMessage: |
| Sets the modal dialog's message text. | |
| (void) | - showModalDialog: |
| Shows the modal dialog wired to a delegate, with the abort button enabled on completion. | |
| (void) | - hideModalDialog |
| Hides the modal dialog. | |
| (void) | - timerRefresh: |
| The per-tick refresh: updates the status bar and, once per session, the login message. | |
| (void) | - downloaderFinished: |
| Handles a finished session/artwork download. | |
| (void) | - downloaderError: |
| Handles a failed session/artwork download. | |
| (void) | - cubePurchaseStart |
| Presents the cube-purchase view. | |
| (void) | - closeCubePurchase |
| Dismisses the cube-purchase view. | |
| (void) | - closeView |
| The cover-tap action: dismisses whichever sub-view is showing. | |
| (void) | - closeLineupView |
| Dismisses the line-up view. | |
| (void) | - closeLoginMessage |
| Dismisses the login message. | |
| (void) | - closeLoginInformation |
| Dismisses the login information sheet. | |
| (void) | - purchaseSucceeded: |
| The StoreKit success callback. | |
| (void) | - purchaseFailed:error: |
| The StoreKit failure callback. | |
| (void) | - storeDialogCancel: |
| The store dialog's cancel action. | |
| (void) | - selectScratch: |
| Selects a scratch panel and confirms the scratch. | |
| (void) | - scratchEnable: |
| Enables or disables scratching. | |
| (BOOL) | - isScratchEnable |
| Whether scratching is currently enabled. | |
| (void) | - scratchStart: |
| Begins a scratch on the given panel. | |
| (void) | - openScratchComplete |
| Opens the scratch-complete view. | |
| (void) | - closeScratchComplete |
| Closes the scratch-complete view. | |
| (void) | - scratchEnd: |
| Ends a scratch on the given panel. | |
| (void) | - openAllRanking |
| Opens the all-songs ranking over a cover. | |
| (void) | - openRanking |
| Opens the ranking for the selected panel, cross-fading from the detail sheet. | |
| (void) | - closeRanking |
| Closes the ranking, cross-fading back to the detail sheet when appropriate. | |
| (void) | - openJubeatStore: |
| Enters the jubeat store's pack-purchase flow for the given pack. | |
| (void) | - refreshStatus |
| Refreshes the status bar display. | |
| Instance Methods inherited from <AlertViewManagerDelegate> | |
| (void) | - alertSelect: |
Sent when the user taps a button in an alert built with makeAlert:. | |
| (void) | - alertClose: |
Sent when a UIAlertController -based alert finishes dismissing. | |
| Instance Methods inherited from <ChallengeLoginInformationViewDelegate> | |
| (void) | - clickPackInfomation: |
A jbtstore://pack/<id> link was followed. | |
| Instance Methods inherited from <CubePurchaseViewDelegate> | |
| (void) | - showPurchaseDialog: |
| Shows the modal processing dialog with a message. | |
| Instance Methods inherited from <DownloaderDelegate> | |
| (void) | - downloaderProceed: |
| Sent periodically as data arrives, and once more on completion. | |
| Instance Methods inherited from <PurchaseManagerDelegate> | |
| (void) | - purchaseSucceeded: |
| A purchase was verified. | |
| (void) | - restoreSucceeded |
| At least one restored product was verified. | |
| (void) | - restoreNothing |
| A restore finished with nothing to restore. | |
| Instance Methods inherited from <ScratchViewDelegate> | |
| (nullable StoreDialogView *) | - modalDialog |
The host's modal download dialog, or nil before it has been built. | |
| (void) | - showModalDialog: |
| Shows the modal download dialog over the given sender. | |
Properties | |
| MusicSelectViewController * | controller |
| The owning music-select controller. | |
| StoreDialogView * | modalDialog |
| The shared modal progress/store dialog panel. | |
The scratch challenge-mode root container.
It is the delegate for nearly every challenge sub-view (scratch cards, the detail sheet, the ranking list, the line-up, the login/information sheets, and the name-setting sheet), for the session Downloader and AlertViewManager, and for the StoreKit PurchaseManager.
| - (void) alertSelect: | (NSDictionary *) | dict |
Routes an alert result to the matching scratch, purchase, or close action.
| dict | The alert result dictionary (carries btnMessage and Tag). |
| - (void) changeRanking |
Refreshes the detail sheet after a ranking change.
Reimplemented from <ChallengeRankingListViewDelegate>.
| - (BOOL) checkArtworkDownload |
Checks whether every line-up artwork is present on disk, queueing the rest for download.
YES when nothing needs downloading. | - (void) closeChallengeMode: | (nullable UIButton *) | sender |
The close-button action: plays the close sound and leaves challenge mode.
| sender | The close button. |
| - (void) closeChallengeModeSessionError |
Closes the challenge session after a server session error.
| - (void) closeCubePurchase |
Dismisses the cube-purchase view.
Reimplemented from <CubePurchaseViewDelegate>.
| - (void) closeDetailView |
Closes the music detail sheet with a scale-out animation.
| - (void) closeLineupView |
Dismisses the line-up view.
Reimplemented from <ChallengeLineupViewDelegate>.
| - (void) closeLoginInformation |
Dismisses the login information sheet.
Reimplemented from <ChallengeLoginInformationViewDelegate>.
| - (void) closeLoginMessage |
Dismisses the login message.
| - (void) closeMenu |
Closes the name-setting sheet, then shows the login message.
Reimplemented from <ChallengeLoginInformationViewDelegate>.
| - (void) closeMenuView |
Removes the challenge menu root view.
Reimplemented from <ChallengeMenuRootViewDelegate>.
| - (void) closeRanking |
Closes the ranking, cross-fading back to the detail sheet when appropriate.
Reimplemented from <ChallengeRankingListViewDelegate>.
| - (void) closeScratchComplete |
Closes the scratch-complete view.
Reimplemented from <ScratchCompleteViewDelegate>.
| - (void) closeView |
The cover-tap action: dismisses whichever sub-view is showing.
| - (void) cubePurchaseStart |
Presents the cube-purchase view.
Reimplemented from <ChallengeMenuRootViewDelegate>.
| - (void) deleteMusicData |
Iterates the line-up records (the binary discards each parsed value).
| - (void) dispCoverView: | (NSNumber *) | dispFlag |
Calls -boolValue on the flag and discards the result.
| dispFlag | The boxed display flag. |
| - (void) dispDownloadDialog: | (NSNumber *) | dispFlag |
A no-op in the shipped binary.
| dispFlag | The boxed display flag. |
| - (void) downloaderError: | (id) | downloader |
Handles a failed session/artwork download.
| downloader | The failed downloader. |
Reimplemented from <DownloaderDelegate>.
| - (void) downloaderFinished: | (id) | downloader |
Handles a finished session/artwork download.
| downloader | The finished downloader. |
Reimplemented from <DownloaderDelegate>.
| - (void) enterChallengeView: | (BOOL) | animated |
Slides the challenge view in and starts the event BGM.
| animated | Whether to slide in from the top edge. |
| - (void) hideCoverView |
Fades the modal cover out and removes it.
| - (void) hideMenuCoverView |
Fades the menu cover out and removes it.
| - (void) hideModalDialog |
Hides the modal dialog.
Reimplemented from <ScratchViewDelegate>.
| - (void) hidePurchaseDialog |
Hides the purchase progress dialog.
Reimplemented from <CubePurchaseViewDelegate>.
| - (void) imageDownload |
Starts the next queued artwork download.
| - (instancetype) init |
Builds the whole challenge-mode hierarchy over the main-screen bounds.
| - (BOOL) isScratchEnable |
Whether scratching is currently enabled.
YES when scratching is enabled. Reimplemented from <ScratchViewDelegate>.
| - (void) openAllRanking |
Opens the all-songs ranking over a cover.
| - (void) openDetailView |
Opens the per-panel music detail sheet with a scale-in animation.
| - (void) openJubeatStore: | (NSInteger) | packID |
Enters the jubeat store's pack-purchase flow for the given pack.
| packID | The pack identifier. |
Reimplemented from <ChallengeLineupViewDelegate>.
| - (void) openRanking |
Opens the ranking for the selected panel, cross-fading from the detail sheet.
Reimplemented from <ScratchMusicDetailViewDelegate>.
| - (void) openScratchComplete |
Opens the scratch-complete view.
| - (void) outerChallengeView: | (BOOL) | animated |
Slides the challenge view off the top edge and closes challenge mode.
| animated | Accepted but unused by the binary. |
| - (void) purchaseFailed: | (NSString *) | productID | |
| error: | (NSError *) | error |
The StoreKit failure callback.
| productID | The product identifier. |
| error | The failure. |
Reimplemented from <PurchaseManagerDelegate>.
| - (void) purchaseSucceeded: | (id) | productID |
The StoreKit success callback.
| productID | The purchased product identifier. |
| - (void) refreshStatus |
Refreshes the status bar display.
Reimplemented from <CubePurchaseViewDelegate>.
| - (void) refreshView |
Refreshes the badge and the scratch board.
Reimplemented from <ChallengeMenuRootViewDelegate>.
| - (void) scratchEnable: | (BOOL) | enable |
Enables or disables scratching.
| enable | Whether scratching is enabled. |
Reimplemented from <ScratchViewDelegate>.
| - (void) scratchEnd: | (id) | sender |
Ends a scratch on the given panel.
| sender | The scratch view. |
Reimplemented from <ScratchViewDelegate>.
| - (NSString *) scratchMessage |
Builds the scratch-confirmation message, warning when little play time remains.
| - (void) scratchStart: | (id) | sender |
Begins a scratch on the given panel.
| sender | The scratch view. |
Reimplemented from <ScratchViewDelegate>.
| - (void) selectScratch: | (id) | sender |
Selects a scratch panel and confirms the scratch.
| sender | The tapped scratch view. |
Reimplemented from <ScratchViewDelegate>.
| - (void) setChallengeData: | (NSDictionary *) | challengeData |
Seeds the shared status from a challenge-data dictionary and starts the refresh timer.
| challengeData | The challenge-data record. |
| - (void) setNotificateImage |
Shows or hides the present-notification badge from the current present count.
| - (void) setPurchaseDialogMessage: | (NSString *) | message |
Sets the modal dialog's message text.
| message | The message. |
| - (void) showCoverView |
Fades the modal cover in.
| - (void) showLoginMessage |
Presents the appropriate login/information/how-to sheet or the login message.
| - (void) showMenuCoverView |
Fades the menu cover in.
| - (void) showModalDialog: | (nullable id) | delegate |
Shows the modal dialog wired to a delegate, with the abort button enabled on completion.
| delegate | The dialog delegate. |
| - (void) showPurchaseDialog: | (NSString *) | message |
Shows the modal dialog as a bare progress panel with the given message.
| message | The progress message. |
| - (NSString *) soundName: | (NSString *) | name |
Prefixes a sound-effect base name with the current theme's prefix.
| name | The base sound-effect name. |
| - (void) startChallengeMusic |
Starts the challenge music, recovering play coins with cubes when short.
Reimplemented from <ScratchMusicDetailViewDelegate>.
| - (void) storeDialogCancel: | (id) | sender |
The store dialog's cancel action.
| sender | The dialog. |
| - (void) tapLineupBtn: | (UIButton *) | sender |
The line-up-button action: presents the line-up view over a cover.
| sender | The line-up button. |
| - (void) tapMenuBtn: | (UIButton *) | sender |
The menu-button action: presents the challenge menu root view.
| sender | The menu button. |
| - (void) tapRankingBtn: | (UIButton *) | sender |
The ranking-button action: opens the all-songs ranking.
| sender | The ranking button. |
| - (void) timerRefresh: | (NSTimer *) | timer |
The per-tick refresh: updates the status bar and, once per session, the login message.
| timer | The refresh timer. |
| - (void) updateNailState: | (NSDictionary *) | info |
Applies the result of a nail (single-panel) scratch.
| info | The scratch result dictionary. |
|
readwritenonatomicweak |
The owning music-select controller.
Held weakly.
|
readnonatomicstrong |
The shared modal progress/store dialog panel.