A centred overlay describing one mission and offering to skip it for jCube.
More...
#include <MissionDetailMessageView.h>
|
| (instancetype) | - initWithFrame:coverFrame: |
| | Builds the overlay and immediately covers coverFrame.
|
| (instancetype) | - initWithFrame: |
| | Builds the overlay, laying out the background, three labels, the detail text view, and the close, pass, and switch buttons, all sized per idiom from the background artwork.
|
| (void) | - setMission:achieve: |
| | Fills the labels from the mission's terms and achievement, formats the achievement count, and shows or hides the pass button according to the skip cost and achievement state.
|
| (nullable NSString *) | - getMusicName: |
| | Resolves a tune's display name by its music id within the scratch line-up.
|
| (void) | - setPlayTerm: |
| | Formats the play-term conditions into the detail text view and enables the switch button when any condition text was produced.
|
| (void) | - tapPassBtn |
| | The pass button's action: confirms the jCube skip purchase, or offers to buy jCube when the balance is short, through AlertViewManager .
|
| (void) | - fadeIn: |
| | Adds the view to parentView and starts the fade-in timer.
|
| (void) | - fadeOut |
| | Starts the fade-out timer.
|
| (void) | - fadeCancel |
| | Snaps the alpha to zero, invalidates the fade timer, and removes the view from its parent.
|
| (void) | - timerRefresh: |
| | The fade timer's tick: steps the alpha towards the target and, once the endpoint is reached, stops the timer (removing the view when fading out).
|
| (void) | - alertSelect: |
| | The AlertViewManager delegate callback: routes the skip or purchase confirmation to the delegate.
|
| (void) | - downloaderError: |
| | The Downloader error callback: stops ignoring interaction and shows the server-error alert.
|
| (void) | - downloaderFinished: |
| | The Downloader success callback.
|
| (void) | - tapSwitch |
| | The switch button's action: toggles the detail text view against the mission text.
|
| (void) | - tapCloseBtn |
| | The close button's action: asks the delegate to dismiss the overlay.
|
| (void) | - alertClose: |
| | Sent when a UIAlertController -based alert finishes dismissing.
|
A centred overlay describing one mission and offering to skip it for jCube.
◆ alertSelect:
| - (void) alertSelect: |
|
(nonnull NSDictionary *) | info |
|
The AlertViewManager delegate callback: routes the skip or purchase confirmation to the delegate.
- Parameters
-
| info | The alert result, carrying the tapped button index and the alert tag. |
- Ghidra address:
- 0xec880
Reimplemented from <AlertViewManagerDelegate>.
◆ downloaderError:
| - (void) downloaderError: |
|
(nullable id) | downloader |
|
The Downloader error callback: stops ignoring interaction and shows the server-error alert.
- Parameters
-
| downloader | The downloader that failed. Unused. |
- Ghidra address:
- 0xeca48
◆ downloaderFinished:
| - (void) downloaderFinished: |
|
(nullable id) | downloader |
|
The Downloader success callback.
Empty in the binary.
- Parameters
-
| downloader | The downloader that finished. Unused. |
- Ghidra address:
- 0xecbc4
◆ fadeCancel
Snaps the alpha to zero, invalidates the fade timer, and removes the view from its parent.
- Ghidra address:
- 0xec6fc
◆ fadeIn:
| - (void) fadeIn: |
|
(nonnull UIView *) | parentView |
|
Adds the view to parentView and starts the fade-in timer.
- Parameters
-
| parentView | The view to add this overlay to. |
- Ghidra address:
- 0xec578
◆ fadeOut
Starts the fade-out timer.
- Ghidra address:
- 0xec670
◆ getMusicName:
| - (NSString *) getMusicName: |
|
(int) | musicID |
|
Resolves a tune's display name by its music id within the scratch line-up.
- Parameters
-
| musicID | The music id to look up. |
- Returns
- The tune name, or
nil when the id is not in the line-up.
- Ghidra address:
- 0xeb274
- Ghidra address:
- 0xeb274
◆ initWithFrame:
| - (instancetype) initWithFrame: |
|
(CGRect) | frame |
|
Builds the overlay, laying out the background, three labels, the detail text view, and the close, pass, and switch buttons, all sized per idiom from the background artwork.
- Parameters
-
| frame | The area to size the panel against; the background is centred horizontally within frame.size.width and positioned relative to frame.size.height . |
- Returns
- The initialised view.
- Ghidra address:
- 0xea0c0
- Ghidra address:
- 0xea0c0
◆ initWithFrame:coverFrame:
| - (instancetype) initWithFrame: |
|
(CGRect) | frame |
| coverFrame: |
|
(CGRect) | coverFrame |
Builds the overlay and immediately covers coverFrame.
Contrary to its name this initialiser ignores frame entirely and chains to -[UIView initWithFrame:] with coverFrame; it does not run the layout in -initWithFrame: .
- Parameters
-
| frame | Ignored. |
| coverFrame | The frame passed straight to the superclass. |
- Returns
- The initialised view.
- Ghidra address:
- 0xea078
- Ghidra address:
- 0xea078
◆ setMission:achieve:
Fills the labels from the mission's terms and achievement, formats the achievement count, and shows or hides the pass button according to the skip cost and achievement state.
- Parameters
-
| mission | The mission whose title, text, detail, type, and skip cost are read. |
| achieve | The achievement whose id, detail dictionary, and state are read. |
- Ghidra address:
- 0xeacc0
◆ setPlayTerm:
Formats the play-term conditions into the detail text view and enables the switch button when any condition text was produced.
- Parameters
-
| playTerm | The play-term conditions (music, level, marker, and history restrictions). |
- Ghidra address:
- 0xeb40c
◆ tapCloseBtn
The close button's action: asks the delegate to dismiss the overlay.
- Ghidra address:
- 0xecc48
◆ tapPassBtn
The pass button's action: confirms the jCube skip purchase, or offers to buy jCube when the balance is short, through AlertViewManager .
- Ghidra address:
- 0xec214
◆ tapSwitch
The switch button's action: toggles the detail text view against the mission text.
- Ghidra address:
- 0xecbc8
◆ timerRefresh:
| - (void) timerRefresh: |
|
(nonnull NSTimer *) | timer |
|
The fade timer's tick: steps the alpha towards the target and, once the endpoint is reached, stops the timer (removing the view when fading out).
- Parameters
-
| timer | The firing timer. Unused. |
- Ghidra address:
- 0xec7a0
◆ aDelegate
The object told about skip, purchase, and close events.
Held weakly.
- Ghidra address:
- 0xeccf8 (getter), 0xecd18 (setter)
The documentation for this class was generated from the following files: