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

A view controller letting the player pick the in-game background colour in the settings screen. More...

#include <SettingsBgViewController.h>

Inheritance diagram for SettingsBgViewController:
Collaboration diagram for SettingsBgViewController:

Instance Methods

(instancetype) - initWithStyle:
 Sets the navigation title to "BG COLOR" and seeds the selection from the persisted colour index for the theme in effect.
(void) - loadView
 Loads the table view, setting its row height to 42 points and hiding the separators.

Class Methods

(nonnull NSString *) + ripplesColorName:
 Maps a background-colour index to its display name in the ripples theme.
(nonnull NSString *) + knitColorName:
 Maps a background-colour index to its display name in the Knit theme.

Detailed Description

A view controller letting the player pick the in-game background colour in the settings screen.

Method Documentation

◆ initWithStyle:

- (instancetype) initWithStyle: (UITableViewStyle) style

Sets the navigation title to "BG COLOR" and seeds the selection from the persisted colour index for the theme in effect.

Parameters
styleThe table-view style handed to UITableViewController.
Returns
The initialised controller.
Ghidra address:
0x152590
Ghidra address:
0x152590

◆ knitColorName:

+ (NSString *) knitColorName: (NSUInteger) index

Maps a background-colour index to its display name in the Knit theme.

Parameters
indexThe colour index (0 blue, 1 green, 2 lemon, 3 dark); any other value yields the empty string.
Returns
The colour name, or the empty string when index is out of range.
Ghidra address:
0x152520
Ghidra address:
0x152520

◆ loadView

- (void) loadView

Loads the table view, setting its row height to 42 points and hiding the separators.

Ghidra address:
0x152710

◆ ripplesColorName:

+ (NSString *) ripplesColorName: (NSUInteger) index

Maps a background-colour index to its display name in the ripples theme.

Parameters
indexThe colour index (0 green, 1 blue, 2 lemon, 3 dark); any other value yields the empty string.
Returns
The colour name, or the empty string when index is out of range.
Ghidra address:
0x1524b0
Ghidra address:
0x1524b0

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