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

A dimming panel with a padlock and a "install N more apps" caption. More...

#include <FrameLockView.h>

Inheritance diagram for FrameLockView:
Collaboration diagram for FrameLockView:

Instance Methods

(instancetype) - initWithFrame:unlockNumber:
 Builds the overlay over a frame of the given size.
(void) - setUnlockNumber:
 Updates the caption, and fades the overlay away when the count reaches zero.
(void) - setLockTextDisp:
 Chooses between the caption and the padlock.

Detailed Description

A dimming panel with a padlock and a "install N more apps" caption.

The caption's number counts down as the player installs the promoted apps; reaching zero fades the whole overlay away.

Method Documentation

◆ initWithFrame:unlockNumber:

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

Builds the overlay over a frame of the given size.

A number of zero or less starts the overlay already hidden, so an unlocked frame costs nothing to construct.

Parameters
frameThe area to cover. Kept, so the later re-centring can use it.
unlockNumberHow many more installs are required. Negative values are clamped to zero.
Ghidra address:
0x7b0a0
Ghidra address:
0x7b0a0

◆ setLockTextDisp:

- (void) setLockTextDisp: (BOOL) lockTextDisp

Chooses between the caption and the padlock.

YES shows the caption at full opacity and leaves the padlock as it was. NO hides the caption and re-loads the padlock at its selected artwork, re-centred on the frame this view was built with.

Parameters
lockTextDispWhether to show the caption.
Ghidra address:
0x7b6e4
Ghidra address:
0x7b6e4

◆ setUnlockNumber:

- (void) setUnlockNumber: (int) unlockNumber

Updates the caption, and fades the overlay away when the count reaches zero.

The fade runs only when the overlay is currently visible, so setting zero twice animates once. A count above zero updates the caption but never brings a hidden overlay back.

Parameters
unlockNumberHow many more installs are required. Negative values are clamped to zero.
Ghidra address:
0x7b4d4
Ghidra address:
0x7b4d4
Ghidra address:
0x7b668
Ghidra address:
0x7b6b4

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