A view controller letting the player pick the in-game background colour in the settings screen.
More...
#include <SettingsBgViewController.h>
|
| (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.
|
|
| (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.
|
A view controller letting the player pick the in-game background colour in the settings screen.
◆ 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
-
| style | The 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
-
| index | The 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
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
-
| index | The 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: