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

The animated KNT title-screen: GL wave background, tappable/GL-drawn concierge, hidden shake/swipe easter egg, and the licence and marker flows. More...

#include <TitleViewControllerKnt.h>

Inheritance diagram for TitleViewControllerKnt:
Collaboration diagram for TitleViewControllerKnt:

Instance Methods

(instancetype) - init
 Initialises the controller: caches the device idiom, builds the EAGLView and the UpperBGKnit wave, registers the background and foreground observers, and starts device motion.
(void) - loadView
 Builds the view hierarchy: the GL view, the jubeat logo, the touch prompt, the copyright image, the GL wave textures, the concierge texture, and the marker view, sized per device idiom.
(void) - start
 Starts the title: hides the logo, prompt, and copyright, loads and plays the BGM and the welcome SE, and schedules the CADisplayLink loop.
(void) - loop:
 The CADisplayLink callback: renders the GL frame, feeds accelerometer deltas into the wave background, draws the concierge once unlocked, and commits the layers.
(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 four swipe recognisers and the tap recogniser, resets the easter-egg state, re-parents the explain and corporate buttons, and starts the blinking prompt.
(void) - showLogo
 Fades the jubeat logo and copyright up to full opacity, then begins the marker check.
(CGRect) - getConciergeRect
 The concierge character's hit rect, relative to the logo view.
(void) - handleTap:
 The tap-gesture handler: drives the Konami-code hit regions, the concierge-swap easter egg, the concierge ripple, and the licence/next-scene entry.
(void) - handleSwipe:
 The swipe-gesture handler: advances the four-direction Konami-code state machine.
(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 and stops device motion.
(void) - viewDidUnload
 Tears down the background, prompt, recogniser, and texture references.
(void) - renderConcierge
 Draws the concierge sprite into the GL scene: its wandering position, the tap-count digit readout, the shake bob, and the animation-frame cycle.
(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: portrait only.
(UIInterfaceOrientationMask) - supportedInterfaceOrientations
 The supported interface orientations: the portrait pair.
(BOOL) - shouldAutorotate
 Whether the controller autorotates: always YES .
(void) - dealloc
 Removes observers, empties the wave textures, re-arms device motion (the binary does not stop it), terminates the SE player, and calls super .
(int) - getConciergeType
 The concierge sprite type: derived from the knit colour type, forced to the Hinabita type when the app is in Hinabita mode.
(void) - becomeConcierge
 Unlocks the concierge easter egg: enters the walking state, strips the swipe recognisers, seeds the concierge positions, lazily creates the bell SE player, and (for the Hinabita concierge) slides the touch prompt down.
(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:
 Licence error: transitions on if the policy was already agreed, otherwise 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.
Instance Methods inherited from TitleViewController
(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.

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 KNT title-screen: GL wave background, tappable/GL-drawn concierge, hidden shake/swipe easter egg, and the licence and marker flows.

Acts as the delegate for its EditorIDManager , its MarkerDownloadView , and (untyped) its LicenseAgreementView .

Method Documentation

◆ agreementError:msgStr:

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

Licence error: transitions on if the policy was already agreed, otherwise shows the network-error alert and tears down the sheet and cover.

Parameters
managerIgnored.
msgStrIgnored; the alert body is the fixed connection-error string.
Ghidra address:
0x188e18

◆ agreementFailed:

- (void) agreementFailed: (nullable id) sender

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

Parameters
senderThe reporting view.
Ghidra address:
0x189030

◆ 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:
0x188fb8

◆ becomeConcierge

- (void) becomeConcierge

Unlocks the concierge easter egg: enters the walking state, strips the swipe recognisers, seeds the concierge positions, lazily creates the bell SE player, and (for the Hinabita concierge) slides the touch prompt down.

Ghidra address:
0x188300
Ghidra address:
0x188300 The concierge and old-concierge positions are worked from the disassembly (the decompile's pdVar/dVar aliasing is unreliable): the concierge starts a sixth of the way across, at a per-idiom offset above the copyright view.
Ghidra address:
0x1887b0
Ghidra address:
0x18888c

◆ blinkPrompt

- (void) blinkPrompt

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

Ghidra address:
0x1868ac

◆ createPolicyView

- (void) createPolicyView

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

Ghidra address:
0x188ccc

◆ dealloc

- (void) dealloc

Removes observers, empties the wave textures, re-arms device motion (the binary does not stop it), terminates the SE player, and calls super .

Ghidra address:
0x188158

◆ 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:
0x189098

Reimplemented from <EditorIDManagerDelegate>.

◆ getConciergeRect

- (CGRect) getConciergeRect

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

Returns
The concierge rectangle.
Ghidra address:
0x187048
Ghidra address:
0x187048 The hit rect is worked from the disassembly: the origin arrives from conciergePos in d0/d1 with a 10-point inset, minus the logo view's frame origin.

◆ getConciergeType

- (int) getConciergeType

The concierge sprite type: derived from the knit colour type, forced to the Hinabita type when the app is in Hinabita mode.

Returns
The concierge type.
Ghidra address:
0x188248
Ghidra address:
0x188248

◆ handleSwipe:

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

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

Parameters
recognizerThe swipe recogniser.
Ghidra address:
0x187648

◆ handleTap:

- (void) handleTap: (nullable UITapGestureRecognizer *) recognizer

The tap-gesture handler: drives the Konami-code hit regions, the concierge-swap easter egg, the concierge ripple, and the licence/next-scene entry.

Parameters
recognizerThe tap recogniser.
Ghidra address:
0x1870e0

◆ init

- (instancetype) init

Initialises the controller: caches the device idiom, builds the EAGLView and the UpperBGKnit wave, registers the background and foreground observers, and starts device motion.

Returns
The initialised controller.
Ghidra address:
0x184f48
Ghidra address:
0x184f48

Reimplemented from TitleViewController.

◆ loadView

- (void) loadView

Builds the view hierarchy: the GL view, the jubeat logo, the touch prompt, the copyright image, the GL wave textures, the concierge texture, and the marker view, sized per device idiom.

Ghidra address:
0x1853c4

Reimplemented from TitleViewController.

◆ loop:

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

The CADisplayLink callback: renders the GL frame, feeds accelerometer deltas into the wave background, draws the concierge once unlocked, and commits the layers.

Parameters
senderThe display link.
Ghidra address:
0x186570

◆ markerCheckEnd

- (void) markerCheckEnd

The marker check completed: starts the blinking prompt.

Ghidra address:
0x18803c

Reimplemented from <MarkerDownloadViewDelegate>.

◆ 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:
0x188890

◆ renderConcierge

- (void) renderConcierge

Draws the concierge sprite into the GL scene: its wandering position, the tap-count digit readout, the shake bob, and the animation-frame cycle.

Ghidra address:
0x187a70
Ghidra address:
0x187a70 Worked from the disassembly throughout: every position is a soft-float shuffle the decompiler garbles, and the frame maths threads several counters at once.

◆ resume:

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

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

Parameters
notificationThe notification.
Ghidra address:
0x1877e8

◆ shouldAutorotate

- (BOOL) shouldAutorotate

Whether the controller autorotates: always YES .

Returns
YES .
Ghidra address:
0x188150
Ghidra address:
0x188150

◆ shouldAutorotateToInterfaceOrientation:

- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation

Whether the given (legacy) interface orientation is supported: portrait only.

Parameters
interfaceOrientationThe orientation to test.
Returns
YES for UIInterfaceOrientationPortrait and UIInterfaceOrientationPortraitUpsideDown .
Ghidra address:
0x188138
Ghidra address:
0x188138

◆ showLogo

- (void) showLogo

Fades the jubeat logo and copyright up to full opacity, then begins the marker check.

Ghidra address:
0x186e80
Ghidra address:
0x186f8c
Ghidra address:
0x187000

Reimplemented from TitleViewController.

◆ start

- (void) start

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

Ghidra address:
0x18637c

Reimplemented from TitleViewController.

◆ startBlinkPrompt

- (void) startBlinkPrompt

Installs the four swipe recognisers and the tap recogniser, resets the easter-egg state, re-parents the explain and corporate buttons, and starts the blinking prompt.

Ghidra address:
0x186aec

◆ startMarkerCheck

- (void) startMarkerCheck

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

Ghidra address:
0x186a64

◆ stopAnimation

- (void) stopAnimation

Invalidates the loop and stops device motion.

Ghidra address:
0x187914

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:
0x189240

Reimplemented from <EditorIDManagerDelegate>.

◆ supportedInterfaceOrientations

- (UIInterfaceOrientationMask) supportedInterfaceOrientations

The supported interface orientations: the portrait pair.

Returns
UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown .
Ghidra address:
0x188148
Ghidra address:
0x188148

◆ suspend:

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

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

Parameters
notificationThe notification.
Ghidra address:
0x187744

◆ viewDidUnload

- (void) viewDidUnload

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

Ghidra address:
0x18798c

◆ 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:
0x1880c0

◆ 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:
0x188048
Ghidra address:
0x188048

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