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

A modal sheet shown once per day, carrying the remaining free-scratch count. More...

#include <ChallengeLoginMessageView.h>

Inheritance diagram for ChallengeLoginMessageView:
Collaboration diagram for ChallengeLoginMessageView:

Instance Methods

(instancetype) - initWithFrame:scratchNum:
 Builds the whole sheet, sized from the background art and the device idiom.
(void) - closeMessage:
 Dismisses the sheet: plays the menu sound, then notifies aDelegate.

Properties

id aDelegate
 The object told when the player dismisses the sheet.

Detailed Description

A modal sheet shown once per day, carrying the remaining free-scratch count.

The whole view is built in the initialiser; there is no separate layout pass and no nib.

Method Documentation

◆ closeMessage:

- (void) closeMessage: (id) sender

Dismisses the sheet: plays the menu sound, then notifies aDelegate.

Note that it does not remove itself from its superview — closing is entirely the delegate's job, and a delegate that does not answer closeLoginMessage leaves the sheet on screen.

Parameters
senderThe button that was tapped. Unused.
Ghidra address:
0xa7b98
Ghidra address:
0xa7b98

◆ initWithFrame:scratchNum:

- (instancetype) initWithFrame: (CGRect) frame
scratchNum: (int) scratchNum 

Builds the whole sheet, sized from the background art and the device idiom.

The phone enlarges the artwork by 1.3 while the pad uses it at its native size, and the two labels take larger point sizes on the pad.

Parameters
frameThe area to centre the sheet within. Only its size is used, to place the centre.
scratchNumThe number of free scratches left, substituted into the upper label.
Ghidra address:
0xa75fc
Ghidra address:
0xa75fc

Property Documentation

◆ aDelegate

- (id) aDelegate
readwritenonatomicweak

The object told when the player dismisses the sheet.

Weak, per the W attribute in the runtime metadata. Genuinely untyped: the metadata encodes it as a bare @ with no protocol, and -closeMessage: dispatches through -respondsToSelector: and -performSelector: rather than through a declared protocol. The expected selector is closeLoginMessage.

Ghidra address:
0xa7c8c (getter)

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