2021-02-18 00:28:01 +01:00
|
|
|
# Mode Sort
|
|
|
|
|
|
|
|
v2 usermod that provides data about modes and
|
|
|
|
palettes to other usermods. Notably it provides:
|
|
|
|
* A direct method for a mode or palette name
|
|
|
|
* Ability to retrieve mode and palette names in
|
|
|
|
alphabetical order
|
|
|
|
|
|
|
|
```char **getModesQStrings()```
|
|
|
|
|
2022-12-10 16:12:55 +01:00
|
|
|
Provides a char* array (pointers) to the names of the
|
|
|
|
palettes contained in JSON_mode_names, in the same order as
|
2021-02-18 00:28:01 +01:00
|
|
|
JSON_mode_names. These strings end in double quote (")
|
|
|
|
(or \0 if there is a problem).
|
|
|
|
|
|
|
|
```byte *getModesAlphaIndexes()```
|
|
|
|
|
2022-12-10 16:12:55 +01:00
|
|
|
A byte array designating the indexes of names of the
|
2021-02-18 00:28:01 +01:00
|
|
|
modes in alphabetical order. "Solid" will always remain
|
2022-12-10 16:12:55 +01:00
|
|
|
at the top of the list.
|
2021-02-18 00:28:01 +01:00
|
|
|
|
|
|
|
```char **getPalettesQStrings()```
|
|
|
|
|
2022-12-10 16:12:55 +01:00
|
|
|
Provides a char* array (pointers) to the names of the
|
|
|
|
palettes contained in JSON_palette_names, in the same order as
|
2021-02-18 00:28:01 +01:00
|
|
|
JSON_palette_names. These strings end in double quote (")
|
|
|
|
(or \0 if there is a problem).
|
|
|
|
|
|
|
|
```byte *getPalettesAlphaIndexes()```
|
|
|
|
|
2022-12-10 16:12:55 +01:00
|
|
|
A byte array designating the indexes of names of the
|
2021-02-18 00:28:01 +01:00
|
|
|
palettes in alphabetical order. "Default" and those
|
2022-12-10 16:12:55 +01:00
|
|
|
starting with "(" will always remain at the top of the list.
|