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

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>

Inheritance diagram for NteTitleCoreController:
Collaboration diagram for NteTitleCoreController:

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 .

Detailed Description

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.

Method Documentation

◆ addOptionDrop:

- (void) addOptionDrop: (CGPoint) point

Drops a pair of falling option ornaments at the tap point.

Parameters
pointThe drop origin.
Ghidra address:
0x1d04e4
Ghidra address:
0x1d04e4

◆ agreementError:msgStr:

- (void) agreementError: (nullable id) manager
msgStr: (nullable NSString *) msgStr 

EditorIDManagerDelegate / licence error: shows the network-error alert and tears down the sheet and cover.

Parameters
managerThe reporting manager.
msgStrThe error message, or nil for the default network-error string.
Ghidra address:
0x1d1f8c

◆ agreementFailed:

- (void) agreementFailed: (nullable id) sender

Licence declined: tears down the sheet and cover, staying on the title.

Parameters
senderThe reporting view.
Ghidra address:
0x1d21e0

◆ agreementSuccess:

- (void) agreementSuccess: (nullable id) sender

Licence accepted: tears down the sheet and cover and transitions to the next scene.

Parameters
senderThe reporting view.
Ghidra address:
0x1d2168

◆ blinkPrompt

- (void) blinkPrompt

Adds the pulsing opacity animation to the touch-prompt layer.

Ghidra address:
0x1cfc54

◆ canBecomeFirstResponder

- (BOOL) canBecomeFirstResponder

Whether the controller can become first responder: always YES.

Returns
YES.
Ghidra address:
0x1d250c
Ghidra address:
0x1d250c

◆ changeTitleBg:completed:

- (void) changeTitleBg: (int) index
completed: (BOOL) completed 

Runs the page-curl transition to a new background page.

Parameters
indexThe new page index.
completedWhether this is the committing pass (updates currentPage) or the reverse.
Ghidra address:
0x1d0e54
Ghidra address:
0x1d0e54

◆ checkShakeEvent:

- (BOOL) checkShakeEvent: (nullable UIEvent *) event

Whether the given motion event is a shake.

Parameters
eventThe motion event.
Returns
YES when the event is a shake.
Ghidra address:
0x1d24a4

◆ createPolicyView

- (void) createPolicyView

Builds and reveals the licence-agreement sheet over the dimming cover.

Ghidra address:
0x1d1c44
Ghidra address:
0x1d1eb4
Ghidra address:
0x1d1f88

◆ curlAnimEnd

- (void) curlAnimEnd

The curl-animation completion: re-enables interaction events.

Ghidra address:
0x1d10d0

◆ dealloc

- (void) dealloc

Removes observers, stops the option view and device motion, terminates the SE player, and calls super.

Ghidra address:
0x1d169c

◆ dropAnimEnd:

- (void) dropAnimEnd: (nullable NteTitleOptionDropView *) dropView

An option-drop finished falling: removes it from the view and the tracking array.

Parameters
dropViewThe finished drop view.
Ghidra address:
0x1d1520

◆ errorIDDownload:msgStr:

- (void) errorIDDownload: (nullable id) manager
msgStr: (nullable NSString *) msgStr 

EditorIDManagerDelegate : the editor-ID download failed; shows the network-error alert.

Parameters
managerThe reporting manager.
msgStrThe error message, or nil for the default network-error string.
Ghidra address:
0x1d2248

Reimplemented from <EditorIDManagerDelegate>.

◆ getBgImage:

- (UIImage *) getBgImage: (int) index

Loads and decrypts the page background image at index.

Parameters
indexThe page index into fileNameArray.
Returns
The scaled, decrypted background image.
Ghidra address:
0x1ce9f8
Ghidra address:
0x1ce9f8

◆ getConciergeRect

- (CGRect) getConciergeRect

The concierge character's hit rect, relative to the logo view.

Returns
The concierge rectangle.
Ghidra address:
0x1d03ac
Ghidra address:
0x1d03ac

◆ getOptViewRect

- (CGRect) getOptViewRect

The option ornament's current presentation-layer frame (its live animated position).

Returns
The option view rectangle.
Ghidra address:
0x1d0444
Ghidra address:
0x1d0444

◆ handleSwipe:

- (void) handleSwipe: (nullable UISwipeGestureRecognizer *) recognizer

The swipe-gesture handler: advances the four-direction Konami-code state machine.

Parameters
recognizerThe swipe recogniser.
Ghidra address:
0x1d0d58

◆ handleTap:

- (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.

Parameters
recognizerThe tap recogniser.
Ghidra address:
0x1d06cc

◆ initWithNameArray:bounds:

- (instancetype) initWithNameArray: (nullable NSArray< NSString * > *) nameArray
bounds: (CGRect) bounds 

Initialises the controller with the background artwork names and the GL background bounds.

Parameters
nameArrayThe per-page background image base names. Copied.
boundsThe background bounds; stored in bgBounds and used to size the EAGLView.
Returns
The initialised controller.
Ghidra address:
0x1ce444

◆ loadView

- (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.

Ghidra address:
0x1ceaec

Reimplemented from TitleViewController.

◆ loop:

- (void) loop: (nullable CADisplayLink *) sender

The CADisplayLink callback: renders the GL frame and feeds accelerometer deltas into the wave background.

Parameters
senderThe display link.
Ghidra address:
0x1cfab0

◆ markerCheckEnd

- (void) markerCheckEnd

The marker check completed: starts the blinking prompt.

Ghidra address:
0x1d1580

Reimplemented from <MarkerDownloadViewDelegate>.

◆ motionBegan:withEvent:

- (void) motionBegan: (UIEventSubtype) motion
withEvent: (nullable UIEvent *) event 

Motion began: routes to the shake check.

Parameters
motionThe motion type.
eventThe motion event.
Ghidra address:
0x1d2514

◆ motionCancelled:withEvent:

- (void) motionCancelled: (UIEventSubtype) motion
withEvent: (nullable UIEvent *) event 

Motion cancelled: routes to the shake check.

Parameters
motionThe motion type.
eventThe motion event.
Ghidra address:
0x1d2524

◆ motionEnded:withEvent:

- (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.

Parameters
motionThe motion type.
eventThe motion event.
Ghidra address:
0x1d2534

◆ needReverseEnd

- (void) needReverseEnd

The reverse-curl animation completion: curls the current page back into view.

Ghidra address:
0x1d0fd0

◆ nextScene

- (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.

Ghidra address:
0x1d17fc

◆ resume:

- (void) resume: (nullable NSNotification *) notification

Application-foreground handler: restarts the prompt, the loop, and device motion.

Parameters
notificationThe notification.
Ghidra address:
0x1d11bc

◆ setUnsealHeight:

- (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.

Parameters
unsealHeight_The unseal strip height in points.
Ghidra address:
0x1ce434
Ghidra address:
0x1ce434

◆ shouldAutorotate

- (BOOL) shouldAutorotate

Whether the controller autorotates: always YES.

Returns
YES.
Ghidra address:
0x1d1694
Ghidra address:
0x1d1694

◆ shouldAutorotateToInterfaceOrientation:

- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation

Whether the given (legacy) interface orientation is supported.

Parameters
interfaceOrientationThe orientation to test.
Returns
YES for the two portrait orientations.
Ghidra address:
0x1d167c
Ghidra address:
0x1d167c

◆ showLogo

- (void) showLogo

Fades the jubeat logo up to full opacity, then begins the marker check on completion.

Ghidra address:
0x1d0228
Ghidra address:
0x1d0334
Ghidra address:
0x1d0364

Reimplemented from TitleViewController.

◆ start

- (void) start

Starts the title: hides the logo and prompt, loads and plays the BGM and welcome SE, and schedules the CADisplayLink loop.

Ghidra address:
0x1cf22c

Reimplemented from TitleViewController.

◆ startBlinkPrompt

- (void) startBlinkPrompt

Installs the swipe and tap recognisers, resets the easter-egg state, and starts the blinking prompt.

Ghidra address:
0x1cfe94

◆ startMarkerCheck

- (void) startMarkerCheck

Presents the marker-download check modal over the controller's view.

Ghidra address:
0x1cfe0c

◆ startRunCar

- (void) startRunCar

Launches the looping "run car" flyby of the option ornament across the screen.

Ghidra address:
0x1cf408
Ghidra address:
0x1cfa1c
Ghidra address:
0x1cfa90

◆ stopAnimation

- (void) stopAnimation

Invalidates the loop, stops device motion, and stops all sound effects.

Ghidra address:
0x1d12e8

Reimplemented from TitleViewController.

◆ successIDDownload:

- (void) successIDDownload: (nullable id) manager

EditorIDManagerDelegate : the editor-ID download succeeded; registers the user id and shows the licence sheet.

Parameters
managerThe reporting manager.
Ghidra address:
0x1d23f0

Reimplemented from <EditorIDManagerDelegate>.

◆ supportedInterfaceOrientations

- (UIInterfaceOrientationMask) supportedInterfaceOrientations

The supported interface orientations.

Returns
Both portrait orientations.
Ghidra address:
0x1d168c
Ghidra address:
0x1d168c

◆ suspend:

- (void) suspend: (nullable NSNotification *) notification

Application-background handler: removes the prompt animation and invalidates the loop.

Parameters
notificationThe notification.
Ghidra address:
0x1d1118

◆ viewDidAppear:

- (void) viewDidAppear: (BOOL) animated

Becomes first responder so motion (shake) events are delivered.

Parameters
animatedWhether the appearance was animated.
Ghidra address:
0x1cea98
Ghidra address:
0x1cea98

◆ viewDidUnload

- (void) viewDidUnload

Tears down the option, background, prompt, recogniser, and texture references.

Ghidra address:
0x1d1388

◆ viewWillTransitionToSize:withTransitionCoordinator:

- (void) viewWillTransitionToSize: (CGSize) size
withTransitionCoordinator: (nullable id< UIViewControllerTransitionCoordinator >) coordinator 

Caches the portrait flag before a size transition.

Parameters
sizeThe target size.
coordinatorThe transition coordinator.
Ghidra address:
0x1d1604

◆ willRotateToInterfaceOrientation:duration:

- (void) willRotateToInterfaceOrientation: (UIInterfaceOrientation) toInterfaceOrientation
duration: (NSTimeInterval) duration 

Caches the portrait flag before a legacy rotation.

Parameters
toInterfaceOrientationThe target orientation.
durationThe rotation duration.
Ghidra address:
0x1d158c
Ghidra address:
0x1d158c

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