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

The scratch challenge-mode root container. More...

#include <ChallengeModeRootView.h>

Inheritance diagram for ChallengeModeRootView:
Collaboration diagram for ChallengeModeRootView:

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.

Detailed Description

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.

Method Documentation

◆ alertSelect:

- (void) alertSelect: (NSDictionary *) dict

Routes an alert result to the matching scratch, purchase, or close action.

Parameters
dictThe alert result dictionary (carries btnMessage and Tag).
Ghidra address:
0x6af40

◆ changeRanking

- (void) changeRanking

Refreshes the detail sheet after a ranking change.

Ghidra address:
0x6c45c

Reimplemented from <ChallengeRankingListViewDelegate>.

◆ checkArtworkDownload

- (BOOL) checkArtworkDownload

Checks whether every line-up artwork is present on disk, queueing the rest for download.

Returns
YES when nothing needs downloading.
Ghidra address:
0x69e08

◆ closeChallengeMode:

- (void) closeChallengeMode: (nullable UIButton *) sender

The close-button action: plays the close sound and leaves challenge mode.

Parameters
senderThe close button.
Ghidra address:
0x6ac8c

◆ closeChallengeModeSessionError

- (void) closeChallengeModeSessionError

Closes the challenge session after a server session error.

Ghidra address:
0x6ac08

◆ closeCubePurchase

- (void) closeCubePurchase

Dismisses the cube-purchase view.

Ghidra address:
0x6fcf4
Ghidra address:
0x6fe2c
Ghidra address:
0x6fe78

Reimplemented from <CubePurchaseViewDelegate>.

◆ closeDetailView

- (void) closeDetailView

Closes the music detail sheet with a scale-out animation.

Ghidra address:
0x6bf34
Ghidra address:
0x6c064
Ghidra address:
0x6c114

◆ closeLineupView

- (void) closeLineupView

Dismisses the line-up view.

Ghidra address:
0x6ff50

Reimplemented from <ChallengeLineupViewDelegate>.

◆ closeLoginInformation

- (void) closeLoginInformation

Dismisses the login information sheet.

Ghidra address:
0x70008

Reimplemented from <ChallengeLoginInformationViewDelegate>.

◆ closeLoginMessage

- (void) closeLoginMessage

Dismisses the login message.

Ghidra address:
0x6ff9c

◆ closeMenu

- (void) closeMenu

Closes the name-setting sheet, then shows the login message.

Ghidra address:
0x6c24c
Ghidra address:
0x6c370
Ghidra address:
0x6c3bc

Reimplemented from <ChallengeLoginInformationViewDelegate>.

◆ closeMenuView

- (void) closeMenuView

Removes the challenge menu root view.

Ghidra address:
0x6c420

Reimplemented from <ChallengeMenuRootViewDelegate>.

◆ closeRanking

- (void) closeRanking

Closes the ranking, cross-fading back to the detail sheet when appropriate.

Ghidra address:
0x71730
Ghidra address:
0x718bc
Ghidra address:
0x71908
Ghidra address:
0x719e4
Ghidra address:
0x71a30

Reimplemented from <ChallengeRankingListViewDelegate>.

◆ closeScratchComplete

- (void) closeScratchComplete

Closes the scratch-complete view.

Ghidra address:
0x70fc4

Reimplemented from <ScratchCompleteViewDelegate>.

◆ closeView

- (void) closeView

The cover-tap action: dismisses whichever sub-view is showing.

Ghidra address:
0x6fecc

◆ cubePurchaseStart

- (void) cubePurchaseStart

Presents the cube-purchase view.

Ghidra address:
0x6f9f4
Ghidra address:
0x6fca4
Ghidra address:
0x6fcf0

Reimplemented from <ChallengeMenuRootViewDelegate>.

◆ deleteMusicData

- (void) deleteMusicData

Iterates the line-up records (the binary discards each parsed value).

Ghidra address:
0x6aaa0

◆ dispCoverView:

- (void) dispCoverView: (NSNumber *) dispFlag

Calls -boolValue on the flag and discards the result.

Parameters
dispFlagThe boxed display flag.
Ghidra address:
0x6af2c

◆ dispDownloadDialog:

- (void) dispDownloadDialog: (NSNumber *) dispFlag

A no-op in the shipped binary.

Parameters
dispFlagThe boxed display flag.
Ghidra address:
0x6af3c

◆ downloaderError:

- (void) downloaderError: (id) downloader

Handles a failed session/artwork download.

Parameters
downloaderThe failed downloader.
Ghidra address:
0x6f3a8

Reimplemented from <DownloaderDelegate>.

◆ downloaderFinished:

- (void) downloaderFinished: (id) downloader

Handles a finished session/artwork download.

Parameters
downloaderThe finished downloader.
Ghidra address:
0x6e11c

Reimplemented from <DownloaderDelegate>.

◆ enterChallengeView:

- (void) enterChallengeView: (BOOL) animated

Slides the challenge view in and starts the event BGM.

Parameters
animatedWhether to slide in from the top edge.
Ghidra address:
0x6a2c8
Ghidra address:
0x6a61c
Ghidra address:
0x6a68c

◆ hideCoverView

- (void) hideCoverView

Fades the modal cover out and removes it.

Ghidra address:
0x6d0f4
Ghidra address:
0x6d218
Ghidra address:
0x6d264

◆ hideMenuCoverView

- (void) hideMenuCoverView

Fades the menu cover out and removes it.

Ghidra address:
0x6cdec
Ghidra address:
0x6cf10
Ghidra address:
0x6cf5c

◆ hideModalDialog

- (void) hideModalDialog

Hides the modal dialog.

Ghidra address:
0x6dd88
Ghidra address:
0x6df98
Ghidra address:
0x6dfe4

Reimplemented from <ScratchViewDelegate>.

◆ hidePurchaseDialog

- (void) hidePurchaseDialog

Hides the purchase progress dialog.

Ghidra address:
0x6d59c
Ghidra address:
0x6d7ac
Ghidra address:
0x6d7f8

Reimplemented from <CubePurchaseViewDelegate>.

◆ imageDownload

- (void) imageDownload

Starts the next queued artwork download.

Ghidra address:
0x6a114

◆ init

- (instancetype) init

Builds the whole challenge-mode hierarchy over the main-screen bounds.

Returns
The initialised view.
Ghidra address:
0x678e4

◆ isScratchEnable

- (BOOL) isScratchEnable

Whether scratching is currently enabled.

Returns
YES when scratching is enabled.
Ghidra address:
0x70ad0

Reimplemented from <ScratchViewDelegate>.

◆ openAllRanking

- (void) openAllRanking

Opens the all-songs ranking over a cover.

Ghidra address:
0x7100c
Ghidra address:
0x71308
Ghidra address:
0x71354

◆ openDetailView

- (void) openDetailView

Opens the per-panel music detail sheet with a scale-in animation.

Ghidra address:
0x6b9a8
Ghidra address:
0x6be34
Ghidra address:
0x6beec

◆ openJubeatStore:

- (void) openJubeatStore: (NSInteger) packID

Enters the jubeat store's pack-purchase flow for the given pack.

Parameters
packIDThe pack identifier.
Ghidra address:
0x71a8c

Reimplemented from <ChallengeLineupViewDelegate>.

◆ openRanking

- (void) openRanking

Opens the ranking for the selected panel, cross-fading from the detail sheet.

Ghidra address:
0x71358
Ghidra address:
0x715cc
Ghidra address:
0x71618
Ghidra address:
0x716cc
Ghidra address:
0x71718

Reimplemented from <ScratchMusicDetailViewDelegate>.

◆ openScratchComplete

- (void) openScratchComplete

Opens the scratch-complete view.

Ghidra address:
0x70e88

◆ outerChallengeView:

- (void) outerChallengeView: (BOOL) animated

Slides the challenge view off the top edge and closes challenge mode.

Parameters
animatedAccepted but unused by the binary.
Ghidra address:
0x6a724
Ghidra address:
0x6a89c
Ghidra address:
0x6a940

◆ purchaseFailed:error:

- (void) purchaseFailed: (NSString *) productID
error: (NSError *) error 

The StoreKit failure callback.

Parameters
productIDThe product identifier.
errorThe failure.
Ghidra address:
0x70154

Reimplemented from <PurchaseManagerDelegate>.

◆ purchaseSucceeded:

- (void) purchaseSucceeded: (id) productID

The StoreKit success callback.

Parameters
productIDThe purchased product identifier.
Ghidra address:
0x70064

◆ refreshStatus

- (void) refreshStatus

Refreshes the status bar display.

Ghidra address:
0x71b78

Reimplemented from <CubePurchaseViewDelegate>.

◆ refreshView

- (void) refreshView

Refreshes the badge and the scratch board.

Ghidra address:
0x6abbc

Reimplemented from <ChallengeMenuRootViewDelegate>.

◆ scratchEnable:

- (void) scratchEnable: (BOOL) enable

Enables or disables scratching.

Parameters
enableWhether scratching is enabled.
Ghidra address:
0x70ac0

Reimplemented from <ScratchViewDelegate>.

◆ scratchEnd:

- (void) scratchEnd: (id) sender

Ends a scratch on the given panel.

Parameters
senderThe scratch view.
Ghidra address:
0x70fc8

Reimplemented from <ScratchViewDelegate>.

◆ scratchMessage

- (NSString *) scratchMessage

Builds the scratch-confirmation message, warning when little play time remains.

Returns
The confirmation message.
Ghidra address:
0x6c474

◆ scratchStart:

- (void) scratchStart: (id) sender

Begins a scratch on the given panel.

Parameters
senderThe scratch view.
Ghidra address:
0x70ae0

Reimplemented from <ScratchViewDelegate>.

◆ selectScratch:

- (void) selectScratch: (id) sender

Selects a scratch panel and confirms the scratch.

Parameters
senderThe tapped scratch view.
Ghidra address:
0x70398

Reimplemented from <ScratchViewDelegate>.

◆ setChallengeData:

- (void) setChallengeData: (NSDictionary *) challengeData

Seeds the shared status from a challenge-data dictionary and starts the refresh timer.

Parameters
challengeDataThe challenge-data record.
Ghidra address:
0x6a994

◆ setNotificateImage

- (void) setNotificateImage

Shows or hides the present-notification badge from the current present count.

Ghidra address:
0x6a244

◆ setPurchaseDialogMessage:

- (void) setPurchaseDialogMessage: (NSString *) message

Sets the modal dialog's message text.

Parameters
messageThe message.
Ghidra address:
0x6d91c

◆ showCoverView

- (void) showCoverView

Fades the modal cover in.

Ghidra address:
0x6cfa4
Ghidra address:
0x6d0a4
Ghidra address:
0x6d0f0

◆ showLoginMessage

- (void) showLoginMessage

Presents the appropriate login/information/how-to sheet or the login message.

Ghidra address:
0x69050
Ghidra address:
0x69c78
Ghidra address:
0x69cc4
Ghidra address:
0x69cc8
Ghidra address:
0x69d14
Ghidra address:
0x69d18
Ghidra address:
0x69d64
Ghidra address:
0x69db8
Ghidra address:
0x69e04
Ghidra address:
0x69d68
Ghidra address:
0x69db4

◆ showMenuCoverView

- (void) showMenuCoverView

Fades the menu cover in.

Ghidra address:
0x6cc9c
Ghidra address:
0x6cd9c
Ghidra address:
0x6cde8

◆ showModalDialog:

- (void) showModalDialog: (nullable id) delegate

Shows the modal dialog wired to a delegate, with the abort button enabled on completion.

Parameters
delegateThe dialog delegate.
Ghidra address:
0x6d9a8

◆ showPurchaseDialog:

- (void) showPurchaseDialog: (NSString *) message

Shows the modal dialog as a bare progress panel with the given message.

Parameters
messageThe progress message.
Ghidra address:
0x6d2ac
Ghidra address:
0x6d54c
Ghidra address:
0x6d598

◆ soundName:

- (NSString *) soundName: (NSString *) name

Prefixes a sound-effect base name with the current theme's prefix.

Parameters
nameThe base sound-effect name.
Returns
The theme-prefixed resource name.
Ghidra address:
0x68f60

◆ startChallengeMusic

- (void) startChallengeMusic

Starts the challenge music, recovering play coins with cubes when short.

Ghidra address:
0x6c59c

Reimplemented from <ScratchMusicDetailViewDelegate>.

◆ storeDialogCancel:

- (void) storeDialogCancel: (id) sender

The store dialog's cancel action.

Parameters
senderThe dialog.
Ghidra address:
0x70348

◆ tapLineupBtn:

- (void) tapLineupBtn: (UIButton *) sender

The line-up-button action: presents the line-up view over a cover.

Parameters
senderThe line-up button.
Ghidra address:
0x6ae04

◆ tapMenuBtn:

- (void) tapMenuBtn: (UIButton *) sender

The menu-button action: presents the challenge menu root view.

Parameters
senderThe menu button.
Ghidra address:
0x6ad10

◆ tapRankingBtn:

- (void) tapRankingBtn: (UIButton *) sender

The ranking-button action: opens the all-songs ranking.

Parameters
senderThe ranking button.
Ghidra address:
0x6af20

◆ timerRefresh:

- (void) timerRefresh: (NSTimer *) timer

The per-tick refresh: updates the status bar and, once per session, the login message.

Parameters
timerThe refresh timer.
Ghidra address:
0x6e0c0

◆ updateNailState:

- (void) updateNailState: (NSDictionary *) info

Applies the result of a nail (single-panel) scratch.

Parameters
infoThe scratch result dictionary.
Ghidra address:
0x6ca44

Property Documentation

◆ controller

- (MusicSelectViewController*) controller
readwritenonatomicweak

The owning music-select controller.

Held weakly.

Ghidra address:
0x71bc8 (getter), 0x71be8 (setter)

◆ modalDialog

- (StoreDialogView*) modalDialog
readnonatomicstrong

The shared modal progress/store dialog panel.

Ghidra address:
0x71bfc (getter)

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