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

A gradient-backed board that downloads a .jcf chart and reports the outcome. More...

#include <JcfDownloadView.h>

Inheritance diagram for JcfDownloadView:
Collaboration diagram for JcfDownloadView:

Instance Methods

(void) - createStoreBtn:
 A StoreButton factory helper.
(instancetype) - initWithID:delegate:
 Builds the board, its label, the three buttons, and the spinner, then starts the download.
(void) - pushCancel:
 Cancel/End button action: ends the modal through -downloadEnd .
(void) - pushMoveStore:
 Move-to-store button action: tells the delegate -jcfDownloadMoveStore:packID: .
(void) - startDownload
 Adds the full-board progress label showing "downloading".
(void) - downloadEnd
 Tells the delegate -jcfDownloadEnd: that the modal has finished.
(void) - errorSequenceDownload:msgStr:
 JcfDownloaderDelegate : the download failed; shows the message and an OK button.
(void) - finishedSequenceOverCap:
 JcfDownloaderDelegate : the edit-slot cap was reached; shows the cap message and an OK button.
(void) - finishedSequenceNotExistPack:packID:
 JcfDownloaderDelegate : the tune is not built in and belongs to a purchasable pack; stores the pack id and reveals the move-to-store buttons.
(void) - finishedSequenceDownload:tuneID:
 JcfDownloaderDelegate : the chart downloaded and saved; stores the tune id and shows the completed message with an OK button.
(int) - getDownloadMusicID
 The tune id resolved by a successful download.
Instance Methods inherited from <JcfDownloaderDelegate>
(void) - finishedSequenceDownload:
 The follow-up pack lookup finished and the tune is already available.

Class Methods

(Class) + layerClass
 The layer class backing the board: a CAGradientLayer .

Detailed Description

A gradient-backed board that downloads a .jcf chart and reports the outcome.

Method Documentation

◆ createStoreBtn:

- (void) createStoreBtn: (nullable id) sender

A StoreButton factory helper.

Builds a blue-green rounded StoreButton , but neither stores nor adds it: the binary discards the result, and the sender argument is ignored.

Parameters
senderIgnored.
Ghidra address:
0x1eb500

◆ downloadEnd

- (void) downloadEnd

Tells the delegate -jcfDownloadEnd: that the modal has finished.

Ghidra address:
0x1ec78c

◆ errorSequenceDownload:msgStr:

- (void) errorSequenceDownload: (nullable JcfDownloader *) downloader
msgStr: (nullable NSString *) msg 

JcfDownloaderDelegate : the download failed; shows the message and an OK button.

Parameters
downloaderThe failed downloader.
msgThe user-facing message, or nil to use the default failure text.
Ghidra address:
0x1ec830

Reimplemented from <JcfDownloaderDelegate>.

◆ finishedSequenceDownload:tuneID:

- (void) finishedSequenceDownload: (nullable JcfDownloader *) downloader
tuneID: (nullable NSString *) tuneID 

JcfDownloaderDelegate : the chart downloaded and saved; stores the tune id and shows the completed message with an OK button.

Parameters
downloaderThe downloader.
tuneIDThe saved tune id.
Ghidra address:
0x1ecb88

Reimplemented from <JcfDownloaderDelegate>.

◆ finishedSequenceNotExistPack:packID:

- (void) finishedSequenceNotExistPack: (nullable JcfDownloader *) downloader
packID: (nullable NSString *) packID 

JcfDownloaderDelegate : the tune is not built in and belongs to a purchasable pack; stores the pack id and reveals the move-to-store buttons.

Parameters
downloaderThe downloader.
packIDThe comprised-pack identifier.
Ghidra address:
0x1eca00

Reimplemented from <JcfDownloaderDelegate>.

◆ finishedSequenceOverCap:

- (void) finishedSequenceOverCap: (nullable JcfDownloader *) downloader

JcfDownloaderDelegate : the edit-slot cap was reached; shows the cap message and an OK button.

Parameters
downloaderThe downloader.
Ghidra address:
0x1ec914

Reimplemented from <JcfDownloaderDelegate>.

◆ getDownloadMusicID

- (int) getDownloadMusicID

The tune id resolved by a successful download.

Returns
The music id, or -1 if none.
Ghidra address:
0x1eccbc
Ghidra address:
0x1eccbc

◆ initWithID:delegate:

- (instancetype) initWithID: (nullable NSString *) customID
delegate: (nullable id< JcfDownloadViewDelegate >) delegateArg 

Builds the board, its label, the three buttons, and the spinner, then starts the download.

The board is 320 wide on a pad and 300 otherwise, 360 tall either way. The move-to-store (btnOK ) and end (btnEnd ) buttons start fully transparent, flanking the centre; the centred btnCancel is shown while the download runs. The owned JcfDownloader is created and begins immediately.

Parameters
customIDThe shared chart's custom id, handed to the JcfDownloader .
delegateArgThe object told the outcome; held weakly.
Returns
The initialised view.
Ghidra address:
0x1eb638

◆ layerClass

+ (Class) layerClass

The layer class backing the board: a CAGradientLayer .

Returns
The CAGradientLayer class.
Ghidra address:
0x1eb4ec
Ghidra address:
0x1eb4ec

◆ pushCancel:

- (void) pushCancel: (nullable id) sender

Cancel/End button action: ends the modal through -downloadEnd .

Parameters
senderThe button.
Ghidra address:
0x1ec59c

◆ pushMoveStore:

- (void) pushMoveStore: (nullable id) sender

Move-to-store button action: tells the delegate -jcfDownloadMoveStore:packID: .

Parameters
senderThe button.
Ghidra address:
0x1ec5a8

◆ startDownload

- (void) startDownload

Adds the full-board progress label showing "downloading".

The download itself was already begun by the JcfDownloader built in -initWithID:delegate: , so this only overlays the status label.

Ghidra address:
0x1ec658
Ghidra address:
0x1ec658

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