|
JubeatPlus 3.9.11
|
A tappable banner that slides in to announce a completed mission and auto-dismisses. More...
#include <MissionAchievementMessage.h>


Instance Methods | |
| (instancetype) | - initWithTitle: |
| Builds the banner for a mission title and its achievement state. | |
| (void) | - enterAnimationStart |
| Runs the four-stage entry animation and plays the completion sound. | |
| (void) | - outerAnimationStart |
| Runs the exit animation that slides the banner back off-screen. | |
| (void) | - transReset |
| Parks the balloon and message view off-screen and hides the banner, ready for entry. | |
| (void) | - dispEnd: |
| The auto-dismiss timer callback: clears the timer and starts the exit animation. | |
| (void) | - messageEnd |
| Tells the delegate the banner has closed, if it responds. | |
| (void) | - createMassageBg: |
Builds the balloon background sized to size and adds it to the message view. | |
| (int) | - messageHeight: |
| Measures the height the achievement text needs for a title. | |
| (void) | - setAchieveTitle: |
| Replaces the banner's text with a new title and re-lays out the balloon. | |
| (nullable NSAttributedString *) | - createAchiveText: |
| Builds the attributed achievement text for a title. | |
Class Methods | |
| (nullable NSArray *) | + createTitleArray:achieve: |
| Builds the array of reward-title lines for the mission sheets and their achievement state. | |
Properties | |
| id< MissionAchievementMessageDelegate > | aDelegate |
| The object told when the banner dismisses. | |
A tappable banner that slides in to announce a completed mission and auto-dismisses.
| - (nullable NSAttributedString *) createAchiveText: | (nullable id) | title |
Builds the attributed achievement text for a title.
The title is an array of lines of segments; segment zero of each line is the sheet name in white and the rest are achieved sub-titles in orange, one per line, closed with a white flourish.
| title | The mission title payload. |
| - (void) createMassageBg: | (CGSize) | size |
Builds the balloon background sized to size and adds it to the message view.
| size | The balloon's content size. |
| + (nullable NSArray *) createTitleArray: | (nullable NSArray *) | title | |
| achieve: | (nullable NSDictionary *) | achieve |
Builds the array of reward-title lines for the mission sheets and their achievement state.
For every sheet, opens a line group with the sheet name, then for each of the sheet's mission terms whose id matches an achievement record renders a "title" or "title(progress/target)" entry; a group is kept only when it gained at least one entry beyond its name.
| title | The array of ChallengeMissionSheet mission sheets. |
| achieve | The achievement records, keyed by mission id. |
| - (void) dispEnd: | (nullable NSTimer *) | timer |
The auto-dismiss timer callback: clears the timer and starts the exit animation.
| timer | The fired timer. |
| - (void) enterAnimationStart |
Runs the four-stage entry animation and plays the completion sound.
Clears the tap flag, plays SD_MISSION_GAUGE , and fades the banner in over 0.2s; the completion blocks start the icon spinning, slide the message view down, settle the balloon, and finally arm the 6s auto-dismiss timer.
| - (instancetype) initWithTitle: | (nullable id) | title |
Builds the banner for a mission title and its achievement state.
Fills the whole screen with a dimming background, lays out the spinning completion icon, the balloon message background, and the achievement text, then parks everything off-screen with -transReset ready for -enterAnimationStart .
| title | The mission title payload. |
| - (void) messageEnd |
Tells the delegate the banner has closed, if it responds.
| - (int) messageHeight: | (nullable id) | title |
Measures the height the achievement text needs for a title.
With no title the base line height (40 on a pad, 20 otherwise) is returned; otherwise the text is measured in a throwaway label and the height grows by one line per achieved entry.
| title | The mission title payload. |
| - (void) outerAnimationStart |
Runs the exit animation that slides the banner back off-screen.
| - (void) setAchieveTitle: | (nullable id) | title |
Replaces the banner's text with a new title and re-lays out the balloon.
Tears down the old balloon and text, re-lays the text inside the balloon content box, sizes a new balloon to fit, and recentres the completion icon over it.
| title | The mission title payload. |
| - (void) transReset |
Parks the balloon and message view off-screen and hides the banner, ready for entry.
Collapses the balloon toward its arrow with a zero scale and pushes the message view up by its own height, then sets the banner's alpha to zero.
|
readwritenonatomicweak |
The object told when the banner dismisses.
Held weakly.