|
JubeatPlus 3.9.11
|
The launch splash screen and its logo animation. More...
#include <LogoViewController.h>


Instance Methods | |
| (instancetype) | - init |
| Builds the controller. | |
| (void) | - loadView |
| Builds the view hierarchy by hand rather than from a nib. | |
| (void) | - fireAnimation |
| Runs one step of the logo animation and schedules the next. | |
| (void) | - start |
| Resets the splash to its opening frame and starts the animation. | |
| (void) | - end: |
| Tears the splash down and hands control back to the root controller. | |
| (void) | - handleTap: |
| Skips ahead when the screen is tapped. | |
| (void) | - viewDidUnload |
| Drops the views and cancels the downloads that are still in flight. | |
| (BOOL) | - shouldAutorotateToInterfaceOrientation: |
| Reports that only the two portrait orientations are supported. | |
| (UIInterfaceOrientationMask) | - supportedInterfaceOrientations |
| The orientations the splash allows. | |
| (BOOL) | - shouldAutorotate |
| Whether the splash rotates at all. | |
| (void) | - downloaderFinished: |
| Called when a download finishes. | |
| (void) | - downloaderError: |
| Called when a download fails. | |
| (void) | - removeCampaignImage |
| Empties the campaign image cache. | |
| (nullable NSString *) | - getCampaignImageDirPath |
| The directory the campaign image is cached in, creating it if absent. | |
| (nullable NSString *) | - getCampaignImagePath: |
| The on-disk path for one campaign image. | |
| (BOOL) | - checkCampaignImage: |
| Whether a campaign image is already cached. | |
| 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. | |
The launch splash screen and its logo animation.
| - (BOOL) checkCampaignImage: | (nullable NSString *) | name |
Whether a campaign image is already cached.
A miss empties the whole cache directory as a side effect, so the cache is all-or-nothing.
| name | The image's name. |
YES when the file is present. | - (void) downloaderError: | (nullable Downloader *) | downloader |
Called when a download fails.
Forgets the downloader, but only for two of the three; a failed event request is left in place.
| downloader | The downloader that failed. |
| - (void) downloaderFinished: | (nullable Downloader *) | downloader |
Called when a download finishes.
Handles all three downloaders. The knit-colour response also names the campaign banner, which is either already cached or fetched by a fourth request; the banner is written to disk enciphered. The event response can switch the app into hinabita or NagaCora mode.
| downloader | The downloader that finished. |
| - (void) end: | (nullable id) | sender |
Tears the splash down and hands control back to the root controller.
| sender | The timer or control that ended the splash. Unused. |
| - (void) fireAnimation |
Runs one step of the logo animation and schedules the next.
Each step animates one fade and passes itself as that animation's completion, so the sequence advances one step per finished animation rather than on a timer. Once the sequence is over this arms the timer that sends -end: .
| - (NSString *) getCampaignImageDirPath |
The directory the campaign image is cached in, creating it if absent.
| - (nullable NSString *) getCampaignImagePath: | (nullable NSString *) | name |
The on-disk path for one campaign image.
| name | The image's name. |
| - (void) handleTap: | (nullable id) | sender |
Skips ahead when the screen is tapped.
A tap during either BEMANI logo step cuts that step short and jumps to the age-rating notice; a tap while the notice is up ends the splash immediately instead of waiting out its hold. Taps at any other point do nothing, and the recogniser is only installed once the BEMANI logo starts, so the Konami logo cannot be skipped at all.
| sender | The recognising gesture. |
| - (instancetype) init |
Builds the controller.
Does nothing but call super . The ivars are set up in -loadView instead.
| - (void) loadView |
Builds the view hierarchy by hand rather than from a nib.
Creates the three logo images centred on the view and starting invisible, then starts the two downloads that run behind the animation.
| - (void) removeCampaignImage |
Empties the campaign image cache.
Removes every file in the cache directory, not just one, and leaves the directory itself.
| - (BOOL) shouldAutorotate |
Whether the splash rotates at all.
YES . | - (BOOL) shouldAutorotateToInterfaceOrientation: | (UIInterfaceOrientation) | interfaceOrientation |
Reports that only the two portrait orientations are supported.
| interfaceOrientation | The orientation being asked about. |
YES for either portrait orientation. | - (void) start |
Resets the splash to its opening frame and starts the animation.
Blacks out the view, hides both logos, and returns state to zero.
| - (UIInterfaceOrientationMask) supportedInterfaceOrientations |
The orientations the splash allows.
| - (void) viewDidUnload |
Drops the views and cancels the downloads that are still in flight.