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

A view controller previewing the play-button area with an adjustable button width. More...

#include <SettingsButtonAreaViewController.h>

Inheritance diagram for SettingsButtonAreaViewController:
Collaboration diagram for SettingsButtonAreaViewController:

Instance Methods

(instancetype) - init
 Sets the navigation title, opts the view out of opaque-bar extension, and observes the app suspend and resume notifications.
(void) - loop:
 The display-link callback: reads touches, updates the pressed mask, and renders one frame of the button grid.
(void) - loadView
 Builds the slider, the GL view, the button atlas, the preview border, and the caption label, then renders the first frame.
(void) - buttonWidthChanged:
 Persists the slider's current value as the preview button width.
(void) - appSuspended:
 Pauses the render loop when the app enters the background.
(void) - appResumed:
 Resumes the render loop when the app returns to the foreground.
(void) - didReceiveMemoryWarning
 Forwards the memory warning to the superclass.
(void) - viewDidUnload
 Releases the slider, GL view, and atlas when the view is unloaded.
(void) - viewWillAppear:
 Forwards to the superclass.
(void) - viewDidAppear:
 Creates and schedules the display link on first appearance.
(void) - viewWillDisappear:
 Invalidates and drops the display link when leaving the screen.
(void) - viewDidDisappear:
 Forwards to the superclass.
(BOOL) - shouldAutorotateToInterfaceOrientation:
 Allows only the two portrait orientations.
(UIInterfaceOrientationMask) - supportedInterfaceOrientations
 The supported orientations: portrait and portrait-upside-down.
(BOOL) - shouldAutorotate
 Whether the controller supports automatic rotation.

Properties

UISlider * slider
 The slider controlling the previewed button width.
EAGLView * glView
 The GL view the button grid is rendered into.
Texture2D * texButtons
 The sprite atlas holding the button images.
CADisplayLink * displayLink
 The display link driving the render loop.

Detailed Description

A view controller previewing the play-button area with an adjustable button width.

Method Documentation

◆ appResumed:

- (void) appResumed: (nullable NSNotification *) notification

Resumes the render loop when the app returns to the foreground.

Parameters
notificationThe resume notification.
Ghidra address:
0x112b10

◆ appSuspended:

- (void) appSuspended: (nullable NSNotification *) notification

Pauses the render loop when the app enters the background.

Parameters
notificationThe suspend notification.
Ghidra address:
0x112a7c

◆ buttonWidthChanged:

- (void) buttonWidthChanged: (nullable UISlider *) sender

Persists the slider's current value as the preview button width.

Parameters
senderThe slider that changed.
Ghidra address:
0x1129f4

◆ didReceiveMemoryWarning

- (void) didReceiveMemoryWarning

Forwards the memory warning to the superclass.

Ghidra address:
0x112ba0

◆ init

- (instancetype) init

Sets the navigation title, opts the view out of opaque-bar extension, and observes the app suspend and resume notifications.

Returns
The initialised controller.
Ghidra address:
0x111854
Ghidra address:
0x111854

◆ loadView

- (void) loadView

Builds the slider, the GL view, the button atlas, the preview border, and the caption label, then renders the first frame.

Ghidra address:
0x111df8

◆ loop:

- (void) loop: (nullable CADisplayLink *) displayLink

The display-link callback: reads touches, updates the pressed mask, and renders one frame of the button grid.

Parameters
displayLinkThe firing display link (unused).
Ghidra address:
0x1119a0

◆ shouldAutorotate

- (BOOL) shouldAutorotate

Whether the controller supports automatic rotation.

Returns
Always YES.
Ghidra address:
0x112ee8
Ghidra address:
0x112ee8

◆ shouldAutorotateToInterfaceOrientation:

- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation

Allows only the two portrait orientations.

Parameters
interfaceOrientationThe orientation to test.
Returns
YES for portrait or portrait-upside-down.
Ghidra address:
0x112ed0
Ghidra address:
0x112ed0

◆ supportedInterfaceOrientations

- (UIInterfaceOrientationMask) supportedInterfaceOrientations

The supported orientations: portrait and portrait-upside-down.

Returns
The orientation mask.
Ghidra address:
0x112ee0
Ghidra address:
0x112ee0

◆ viewDidAppear:

- (void) viewDidAppear: (BOOL) animated

Creates and schedules the display link on first appearance.

Parameters
animatedWhether the appearance is animated.
Ghidra address:
0x112c90
Ghidra address:
0x112c90

◆ viewDidDisappear:

- (void) viewDidDisappear: (BOOL) animated

Forwards to the superclass.

Parameters
animatedWhether the disappearance is animated.
Ghidra address:
0x112e98
Ghidra address:
0x112e98

◆ viewDidUnload

- (void) viewDidUnload

Releases the slider, GL view, and atlas when the view is unloaded.

Ghidra address:
0x112bd8

◆ viewWillAppear:

- (void) viewWillAppear: (BOOL) animated

Forwards to the superclass.

Parameters
animatedWhether the appearance is animated.
Ghidra address:
0x112c58
Ghidra address:
0x112c58

◆ viewWillDisappear:

- (void) viewWillDisappear: (BOOL) animated

Invalidates and drops the display link when leaving the screen.

Parameters
animatedWhether the disappearance is animated.
Ghidra address:
0x112de4
Ghidra address:
0x112de4

Property Documentation

◆ displayLink

- (CADisplayLink*) displayLink
readwritenonatomicstrong

The display link driving the render loop.

Ghidra address:
0x113008 (getter)
Ghidra address:
0x113018 (setter)

◆ glView

- (EAGLView*) glView
readwritenonatomicstrong

The GL view the button grid is rendered into.

Ghidra address:
0x112fc0 (getter)
Ghidra address:
0x112fd0 (setter)

◆ slider

- (UISlider*) slider
readwritenonatomicstrong

The slider controlling the previewed button width.

Ghidra address:
0x112f9c (getter)
Ghidra address:
0x112fac (setter)

◆ texButtons

- (Texture2D*) texButtons
readwritenonatomicstrong

The sprite atlas holding the button images.

Ghidra address:
0x112fe4 (getter)
Ghidra address:
0x112ff4 (setter)

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