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

A centred overlay describing one mission and offering to skip it for jCube. More...

#include <MissionDetailMessageView.h>

Inheritance diagram for MissionDetailMessageView:
Collaboration diagram for MissionDetailMessageView:

Instance Methods

(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.
Instance Methods inherited from <AlertViewManagerDelegate>
(void) - alertClose:
 Sent when a UIAlertController -based alert finishes dismissing.

Properties

id< MissionDetailMessageViewDelegate > aDelegate
 The object told about skip, purchase, and close events.

Detailed Description

A centred overlay describing one mission and offering to skip it for jCube.

Method Documentation

◆ alertSelect:

- (void) alertSelect: (nonnull NSDictionary *) info

The AlertViewManager delegate callback: routes the skip or purchase confirmation to the delegate.

Parameters
infoThe 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
downloaderThe downloader that failed. Unused.
Ghidra address:
0xeca48

◆ downloaderFinished:

- (void) downloaderFinished: (nullable id) downloader

The Downloader success callback.

Empty in the binary.

Parameters
downloaderThe downloader that finished. Unused.
Ghidra address:
0xecbc4

◆ fadeCancel

- (void) 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
parentViewThe view to add this overlay to.
Ghidra address:
0xec578

◆ fadeOut

- (void) 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
musicIDThe 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
frameThe 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
frameIgnored.
coverFrameThe frame passed straight to the superclass.
Returns
The initialised view.
Ghidra address:
0xea078
Ghidra address:
0xea078

◆ setMission:achieve:

- (void) setMission: (nonnull ChallengeMissionTerms *) mission
achieve: (nonnull ChallengeMissionAchieve *) 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
missionThe mission whose title, text, detail, type, and skip cost are read.
achieveThe achievement whose id, detail dictionary, and state are read.
Ghidra address:
0xeacc0

◆ setPlayTerm:

- (void) setPlayTerm: (nullable ChallengeMissionPlayTerm *) playTerm

Formats the play-term conditions into the detail text view and enables the switch button when any condition text was produced.

Parameters
playTermThe play-term conditions (music, level, marker, and history restrictions).
Ghidra address:
0xeb40c

◆ tapCloseBtn

- (void) tapCloseBtn

The close button's action: asks the delegate to dismiss the overlay.

Ghidra address:
0xecc48

◆ tapPassBtn

- (void) 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

- (void) 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
timerThe firing timer. Unused.
Ghidra address:
0xec7a0

Property Documentation

◆ aDelegate

- (id<MissionDetailMessageViewDelegate>) aDelegate
readwritenonatomicweak

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: