|
JubeatPlus 3.9.11
|
The animated NTE title-screen core: GL wave background, tappable concierge, hidden shake/swipe easter egg, and the licence and marker flows. More...
#include <NteTitleCoreController.h>


Instance Methods | |
| (void) | - setUnsealHeight: |
Sets the unsealHeight ivar: the top strip's height, used to offset the marker view and the licence sheet on iPad. | |
| (instancetype) | - initWithNameArray:bounds: |
| Initialises the controller with the background artwork names and the GL background bounds. | |
| (nullable UIImage *) | - getBgImage: |
Loads and decrypts the page background image at index. | |
| (void) | - viewDidAppear: |
| Becomes first responder so motion (shake) events are delivered. | |
| (void) | - loadView |
| Builds the view hierarchy: the GL view, the background image view, the option ornament, the jubeat logo, the touch prompt, and the marker view, sized per device idiom. | |
| (void) | - start |
Starts the title: hides the logo and prompt, loads and plays the BGM and welcome SE, and schedules the CADisplayLink loop. | |
| (void) | - startRunCar |
| Launches the looping "run car" flyby of the option ornament across the screen. | |
| (void) | - loop: |
The CADisplayLink callback: renders the GL frame and feeds accelerometer deltas into the wave background. | |
| (void) | - blinkPrompt |
| Adds the pulsing opacity animation to the touch-prompt layer. | |
| (void) | - startMarkerCheck |
| Presents the marker-download check modal over the controller's view. | |
| (void) | - startBlinkPrompt |
| Installs the swipe and tap recognisers, resets the easter-egg state, and starts the blinking prompt. | |
| (void) | - showLogo |
| Fades the jubeat logo up to full opacity, then begins the marker check on completion. | |
| (CGRect) | - getConciergeRect |
| The concierge character's hit rect, relative to the logo view. | |
| (CGRect) | - getOptViewRect |
| The option ornament's current presentation-layer frame (its live animated position). | |
| (void) | - addOptionDrop: |
| Drops a pair of falling option ornaments at the tap point. | |
| (void) | - handleTap: |
| The tap-gesture handler: drives the Konami-code hit regions, the concierge ripple, the option drop, and the licence/next-scene entry. | |
| (void) | - handleSwipe: |
| The swipe-gesture handler: advances the four-direction Konami-code state machine. | |
| (void) | - changeTitleBg:completed: |
| Runs the page-curl transition to a new background page. | |
| (void) | - needReverseEnd |
| The reverse-curl animation completion: curls the current page back into view. | |
| (void) | - curlAnimEnd |
| The curl-animation completion: re-enables interaction events. | |
| (void) | - suspend: |
| Application-background handler: removes the prompt animation and invalidates the loop. | |
| (void) | - resume: |
| Application-foreground handler: restarts the prompt, the loop, and device motion. | |
| (void) | - stopAnimation |
| Invalidates the loop, stops device motion, and stops all sound effects. | |
| (void) | - viewDidUnload |
| Tears down the option, background, prompt, recogniser, and texture references. | |
| (void) | - dropAnimEnd: |
| An option-drop finished falling: removes it from the view and the tracking array. | |
| (void) | - markerCheckEnd |
| The marker check completed: starts the blinking prompt. | |
| (void) | - willRotateToInterfaceOrientation:duration: |
| Caches the portrait flag before a legacy rotation. | |
| (void) | - viewWillTransitionToSize:withTransitionCoordinator: |
| Caches the portrait flag before a size transition. | |
| (BOOL) | - shouldAutorotateToInterfaceOrientation: |
| Whether the given (legacy) interface orientation is supported. | |
| (UIInterfaceOrientationMask) | - supportedInterfaceOrientations |
| The supported interface orientations. | |
| (BOOL) | - shouldAutorotate |
Whether the controller autorotates: always YES. | |
| (void) | - dealloc |
Removes observers, stops the option view and device motion, terminates the SE player, and calls super. | |
| (void) | - nextScene |
| Transitions off the title: removes gestures, plays the confirm SE, fades the BGM, blinks the prompt fast, and tells the root controller to end the title. | |
| (void) | - createPolicyView |
| Builds and reveals the licence-agreement sheet over the dimming cover. | |
| (void) | - agreementError:msgStr: |
EditorIDManagerDelegate / licence error: shows the network-error alert and tears down the sheet and cover. | |
| (void) | - agreementSuccess: |
| Licence accepted: tears down the sheet and cover and transitions to the next scene. | |
| (void) | - agreementFailed: |
| Licence declined: tears down the sheet and cover, staying on the title. | |
| (void) | - errorIDDownload:msgStr: |
EditorIDManagerDelegate : the editor-ID download failed; shows the network-error alert. | |
| (void) | - successIDDownload: |
EditorIDManagerDelegate : the editor-ID download succeeded; registers the user id and shows the licence sheet. | |
| (BOOL) | - checkShakeEvent: |
| Whether the given motion event is a shake. | |
| (BOOL) | - canBecomeFirstResponder |
Whether the controller can become first responder: always YES. | |
| (void) | - motionBegan:withEvent: |
| Motion began: routes to the shake check. | |
| (void) | - motionCancelled:withEvent: |
| Motion cancelled: routes to the shake check. | |
| (void) | - motionEnded:withEvent: |
| Motion ended: routes to the shake check and plays the shake SE when it was a shake. | |
| Instance Methods inherited from TitleViewController | |
| (instancetype) | - init |
| Initialises the controller and enables tapping. | |
| (void) | - tapExplain: |
| Opens the payment-services message overlay. | |
| (void) | - tapCorporateButton: |
| Opens the Konami corporate site in a Safari view controller. | |
| (void) | - closeMessage: |
| Dismisses the message overlay and re-enables tapping. | |
| (void) | - messageDownloadError:msgStr: |
| Shows a download-failure alert, then dismisses the message overlay and re-enables tapping. | |
| (void) | - jubeatLabAccessError: |
| Callback: the top-page licence check failed. | |
| (void) | - jubeatLabAccessFinished: |
| Callback: the top-page licence check finished. | |
| (void) | - downloaderFinished: |
| Callback: the news-list download finished. | |
| (void) | - switchController |
| Switches to the next controller. | |
| (void) | - setCorporateButton |
| Builds the corporate ("co_info") button, themed and anchored to the top-right corner. | |
| 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. | |
| Instance Methods inherited from <NteTitleOptionDropViewDelegate> | |
| (void) | - dropAnimEnd: |
| Sent when the drop has finished. | |
Additional Inherited Members | |
| Protected Attributes inherited from TitleViewController | |
| UIButton * | explainBtn |
| The "explain" button opening the payment-services (資金決済法について) message overlay. | |
| UIButton * | coBtn |
The corporate ("co_info") button opening the Konami site; built in setCorporateButton. | |
| BOOL * | bEnableTap |
| Whether taps are currently accepted. | |
| jubeatLabAccess * | labAccess |
The top-page licence-URL fetch, live between -start and its completion. | |
| Downloader * | infoDownloader |
The news-list download, live between -start and its completion. | |
| MessageTextView * | textView |
The payment-services message overlay shown by -tapExplain: . | |
| UIView * | coverView |
The dimming backdrop behind textView . | |
The animated NTE title-screen core: GL wave background, tappable concierge, hidden shake/swipe easter egg, and the licence and marker flows.
Acts as the delegate for its LicenseAgreementView , EditorIDManager , MarkerDownloadView , and each NteTitleOptionDropView it drops.
| - (void) addOptionDrop: | (CGPoint) | point |
Drops a pair of falling option ornaments at the tap point.
| point | The drop origin. |
| - (void) agreementError: | (nullable id) | manager | |
| msgStr: | (nullable NSString *) | msgStr |
EditorIDManagerDelegate / licence error: shows the network-error alert and tears down the sheet and cover.
| manager | The reporting manager. |
| msgStr | The error message, or nil for the default network-error string. |
| - (void) agreementFailed: | (nullable id) | sender |
Licence declined: tears down the sheet and cover, staying on the title.
| sender | The reporting view. |
| - (void) agreementSuccess: | (nullable id) | sender |
Licence accepted: tears down the sheet and cover and transitions to the next scene.
| sender | The reporting view. |
| - (void) blinkPrompt |
Adds the pulsing opacity animation to the touch-prompt layer.
| - (BOOL) canBecomeFirstResponder |
Whether the controller can become first responder: always YES.
YES. | - (void) changeTitleBg: | (int) | index | |
| completed: | (BOOL) | completed |
Runs the page-curl transition to a new background page.
| index | The new page index. |
| completed | Whether this is the committing pass (updates currentPage) or the reverse. |
| - (BOOL) checkShakeEvent: | (nullable UIEvent *) | event |
Whether the given motion event is a shake.
| event | The motion event. |
YES when the event is a shake. | - (void) createPolicyView |
Builds and reveals the licence-agreement sheet over the dimming cover.
| - (void) curlAnimEnd |
The curl-animation completion: re-enables interaction events.
| - (void) dealloc |
Removes observers, stops the option view and device motion, terminates the SE player, and calls super.
| - (void) dropAnimEnd: | (nullable NteTitleOptionDropView *) | dropView |
An option-drop finished falling: removes it from the view and the tracking array.
| dropView | The finished drop view. |
| - (void) errorIDDownload: | (nullable id) | manager | |
| msgStr: | (nullable NSString *) | msgStr |
EditorIDManagerDelegate : the editor-ID download failed; shows the network-error alert.
| manager | The reporting manager. |
| msgStr | The error message, or nil for the default network-error string. |
Reimplemented from <EditorIDManagerDelegate>.
| - (UIImage *) getBgImage: | (int) | index |
Loads and decrypts the page background image at index.
| index | The page index into fileNameArray. |
| - (CGRect) getConciergeRect |
The concierge character's hit rect, relative to the logo view.
| - (CGRect) getOptViewRect |
The option ornament's current presentation-layer frame (its live animated position).
| - (void) handleSwipe: | (nullable UISwipeGestureRecognizer *) | recognizer |
The swipe-gesture handler: advances the four-direction Konami-code state machine.
| recognizer | The swipe recogniser. |
| - (void) handleTap: | (nullable UITapGestureRecognizer *) | recognizer |
The tap-gesture handler: drives the Konami-code hit regions, the concierge ripple, the option drop, and the licence/next-scene entry.
| recognizer | The tap recogniser. |
| - (instancetype) initWithNameArray: | (nullable NSArray< NSString * > *) | nameArray | |
| bounds: | (CGRect) | bounds |
Initialises the controller with the background artwork names and the GL background bounds.
| nameArray | The per-page background image base names. Copied. |
| bounds | The background bounds; stored in bgBounds and used to size the EAGLView. |
| - (void) loadView |
Builds the view hierarchy: the GL view, the background image view, the option ornament, the jubeat logo, the touch prompt, and the marker view, sized per device idiom.
Reimplemented from TitleViewController.
| - (void) loop: | (nullable CADisplayLink *) | sender |
The CADisplayLink callback: renders the GL frame and feeds accelerometer deltas into the wave background.
| sender | The display link. |
| - (void) markerCheckEnd |
The marker check completed: starts the blinking prompt.
Reimplemented from <MarkerDownloadViewDelegate>.
| - (void) motionBegan: | (UIEventSubtype) | motion | |
| withEvent: | (nullable UIEvent *) | event |
Motion began: routes to the shake check.
| motion | The motion type. |
| event | The motion event. |
| - (void) motionCancelled: | (UIEventSubtype) | motion | |
| withEvent: | (nullable UIEvent *) | event |
Motion cancelled: routes to the shake check.
| motion | The motion type. |
| event | The motion event. |
| - (void) motionEnded: | (UIEventSubtype) | motion | |
| withEvent: | (nullable UIEvent *) | event |
Motion ended: routes to the shake check and plays the shake SE when it was a shake.
| motion | The motion type. |
| event | The motion event. |
| - (void) needReverseEnd |
The reverse-curl animation completion: curls the current page back into view.
| - (void) nextScene |
Transitions off the title: removes gestures, plays the confirm SE, fades the BGM, blinks the prompt fast, and tells the root controller to end the title.
| - (void) resume: | (nullable NSNotification *) | notification |
Application-foreground handler: restarts the prompt, the loop, and device motion.
| notification | The notification. |
| - (void) setUnsealHeight: | (int) | unsealHeight_ |
Sets the unsealHeight ivar: the top strip's height, used to offset the marker view and the licence sheet on iPad.
| unsealHeight_ | The unseal strip height in points. |
| - (BOOL) shouldAutorotate |
Whether the controller autorotates: always YES.
YES. | - (BOOL) shouldAutorotateToInterfaceOrientation: | (UIInterfaceOrientation) | interfaceOrientation |
Whether the given (legacy) interface orientation is supported.
| interfaceOrientation | The orientation to test. |
YES for the two portrait orientations. | - (void) showLogo |
Fades the jubeat logo up to full opacity, then begins the marker check on completion.
Reimplemented from TitleViewController.
| - (void) start |
Starts the title: hides the logo and prompt, loads and plays the BGM and welcome SE, and schedules the CADisplayLink loop.
Reimplemented from TitleViewController.
| - (void) startBlinkPrompt |
Installs the swipe and tap recognisers, resets the easter-egg state, and starts the blinking prompt.
| - (void) startMarkerCheck |
Presents the marker-download check modal over the controller's view.
| - (void) startRunCar |
Launches the looping "run car" flyby of the option ornament across the screen.
| - (void) stopAnimation |
Invalidates the loop, stops device motion, and stops all sound effects.
Reimplemented from TitleViewController.
| - (void) successIDDownload: | (nullable id) | manager |
EditorIDManagerDelegate : the editor-ID download succeeded; registers the user id and shows the licence sheet.
| manager | The reporting manager. |
Reimplemented from <EditorIDManagerDelegate>.
| - (UIInterfaceOrientationMask) supportedInterfaceOrientations |
The supported interface orientations.
| - (void) suspend: | (nullable NSNotification *) | notification |
Application-background handler: removes the prompt animation and invalidates the loop.
| notification | The notification. |
| - (void) viewDidAppear: | (BOOL) | animated |
Becomes first responder so motion (shake) events are delivered.
| animated | Whether the appearance was animated. |
| - (void) viewDidUnload |
Tears down the option, background, prompt, recogniser, and texture references.
| - (void) viewWillTransitionToSize: | (CGSize) | size | |
| withTransitionCoordinator: | (nullable id< UIViewControllerTransitionCoordinator >) | coordinator |
Caches the portrait flag before a size transition.
| size | The target size. |
| coordinator | The transition coordinator. |
| - (void) willRotateToInterfaceOrientation: | (UIInterfaceOrientation) | toInterfaceOrientation | |
| duration: | (NSTimeInterval) | duration |
Caches the portrait flag before a legacy rotation.
| toInterfaceOrientation | The target orientation. |
| duration | The rotation duration. |