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

Builds the image a score tweet carries. More...

#include <ResultTweet.h>

Inheritance diagram for ResultTweet:
Collaboration diagram for ResultTweet:

Instance Methods

(instancetype) - initWithInfo:conf:
 Initialises the composer with the play sequence and its renderer configuration.
(void) - setTitle:white:
 Sets the two title images, one drawn over a dark plate and one over a light plate.
(nullable UIImage *) - generateTweetImage
 Composes and returns the finished tweet image.

Class Methods

(nullable UIImage *) + getSampleImage:
 Vends the sample image for a named tweet frame.
(nullable UIImage *) + getAccessoryImage:
 Vends the accessory sample image.
(nullable NSString *) + getTwitterImagePath:
 The on-disk path of one of the tweet decoration images.

Detailed Description

Builds the image a score tweet carries.

Method Documentation

◆ generateTweetImage

- (UIImage *) generateTweetImage

Composes and returns the finished tweet image.

Returns
The composed image, or nil when no image context could be produced.
Ghidra address:
0xbc1c8
Ghidra address:
0xbc1c8

◆ getAccessoryImage:

+ (nullable UIImage *) getAccessoryImage: (nullable NSString *) accessoryName

Vends the accessory sample image.

The argument is ignored; the accessory is taken from the current marker default.

Parameters
accessoryNameIgnored.
Returns
The decrypted accessory sample image, or nil when it cannot be produced.
Ghidra address:
0xbcce0

◆ getSampleImage:

+ (nullable UIImage *) getSampleImage: (nullable NSString *) frameName

Vends the sample image for a named tweet frame.

Parameters
frameNameThe frame's resource name, passed to +[TweetResourceManager getResourceData:].
Returns
The decrypted frame sample image, or nil when it cannot be produced.
Ghidra address:
0xbcbc8

◆ getTwitterImagePath:

+ (NSString *) getTwitterImagePath: (NSString *) fileName

The on-disk path of one of the tweet decoration images.

Resolves against the append-data directory, falling back to the shareData subtree when the frame-specific file is absent. Callers load the result with +[UIImage imageWithContentsOfFile:].

Parameters
fileNameThe image's file name.
Returns
The existing file's path, or nil when neither location has it.
Ghidra address:
0xbd19c
Ghidra address:
0xbd19c

◆ initWithInfo:conf:

- (instancetype) initWithInfo: (Sequence *) info
conf: (RendererConf *) conf 

Initialises the composer with the play sequence and its renderer configuration.

Parameters
infoThe finished play Sequence , the source of the score and music-bar result.
confThe RendererConf describing the played chart's difficulty and level.
Returns
The initialised composer.
Ghidra address:
0xbbf94
Ghidra address:
0xbbf94

◆ setTitle:white:

- (void) setTitle: (nullable UIImage *) title
white: (nullable UIImage *) white 

Sets the two title images, one drawn over a dark plate and one over a light plate.

Parameters
titleThe title image drawn when the dark base plate is used.
whiteThe title image drawn when the light base plate is used.
Ghidra address:
0xbc14c

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