|
JubeatPlus 3.9.11
|
A dimming panel with a padlock and a "install N more apps" caption. More...
#include <FrameLockView.h>


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. | |
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.
| - (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.
| frame | The area to cover. Kept, so the later re-centring can use it. |
| unlockNumber | How many more installs are required. Negative values are clamped to zero. |
| - (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.
| lockTextDisp | Whether to show the caption. |
| - (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.
| unlockNumber | How many more installs are required. Negative values are clamped to zero. |