|
JubeatPlus 3.9.11
|
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>


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 . | |
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 .
| - (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.
| manager | Ignored. |
| msgStr | Ignored; the alert body is the fixed connection-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) 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) blinkPrompt |
Adds the pulsing opacity animation to the touch-prompt layer.
| - (void) createPolicyView |
Builds and reveals the licence-agreement sheet over the dimming cover.
| - (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 .
| - (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>.
| - (CGRect) getConciergeRect |
The concierge character's hit rect, relative to the logo view.
| - (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) 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-swap easter egg, the concierge ripple, and the licence/next-scene entry.
| recognizer | The tap recogniser. |
| - (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.
Reimplemented from TitleViewController.
| - (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.
Reimplemented from TitleViewController.
| - (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.
| sender | The display link. |
| - (void) markerCheckEnd |
The marker check completed: starts the blinking prompt.
Reimplemented from <MarkerDownloadViewDelegate>.
| - (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) 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) resume: | (nullable NSNotification *) | notification |
Application-foreground handler: restarts the prompt, the loop, and device motion.
| notification | The notification. |
| - (BOOL) shouldAutorotate |
Whether the controller autorotates: always YES .
YES . | - (BOOL) shouldAutorotateToInterfaceOrientation: | (UIInterfaceOrientation) | interfaceOrientation |
Whether the given (legacy) interface orientation is supported: portrait only.
| interfaceOrientation | The orientation to test. |
YES for UIInterfaceOrientationPortrait and UIInterfaceOrientationPortraitUpsideDown . | - (void) showLogo |
Fades the jubeat logo and copyright up to full opacity, then begins the marker check.
Reimplemented from TitleViewController.
| - (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.
Reimplemented from TitleViewController.
| - (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) startMarkerCheck |
Presents the marker-download check modal over the controller's view.
| - (void) stopAnimation |
Invalidates the loop and stops device motion.
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: the portrait pair.
UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown . | - (void) suspend: | (nullable NSNotification *) | notification |
Application-background handler: removes the prompt animation and invalidates the loop.
| notification | The notification. |
| - (void) viewDidUnload |
Tears down the 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. |