Skip to content

Instantly share code, notes, and snippets.

@andythenorth
Created May 8, 2023 10:13
Show Gist options
  • Save andythenorth/15b70666ab120d18b0b8995cc930dbc5 to your computer and use it in GitHub Desktop.
Save andythenorth/15b70666ab120d18b0b8995cc930dbc5 to your computer and use it in GitHub Desktop.
switch (FEAT_TRAINS, SELF, switch_get_colour_name, colour_num, colour_num) {
0: return string(STR_COLOUR_NAME_COLOUR_DARK_BLUE);
1: return string(STR_COLOUR_NAME_COLOUR_PALE_GREEN);
2: return string(STR_COLOUR_NAME_COLOUR_PINK);
3: return string(STR_COLOUR_NAME_COLOUR_YELLOW);
4: return string(STR_COLOUR_NAME_COLOUR_RED);
5: return string(STR_COLOUR_NAME_COLOUR_LIGHT_BLUE);
6: return string(STR_COLOUR_NAME_COLOUR_GREEN);
7: return string(STR_COLOUR_NAME_COLOUR_DARK_GREEN);
8: return string(STR_COLOUR_NAME_COLOUR_BLUE);
9: return string(STR_COLOUR_NAME_COLOUR_CREAM);
10: return string(STR_COLOUR_NAME_COLOUR_MAUVE);
11: return string(STR_COLOUR_NAME_COLOUR_PURPLE);
12: return string(STR_COLOUR_NAME_COLOUR_ORANGE);
13: return string(STR_COLOUR_NAME_COLOUR_BROWN);
14: return string(STR_COLOUR_NAME_COLOUR_GREY);
15: return string(STR_COLOUR_NAME_COLOUR_WHITE);
16: return string(STR_COLOUR_NAME_CUSTOM_BAUXITE);
17: return string(STR_COLOUR_NAME_CUSTOM_BLUE);
18: return string(STR_COLOUR_NAME_CUSTOM_DARK_GREY);
19: return string(STR_COLOUR_NAME_CUSTOM_NIGHTSHADE);
}
switch (FEAT_TRAINS, SELF, open_car_pony_gen_1A_switch_buy_menu_text, [
STORE_TEMP(
string(STR_BUY_MENU_HINT_LIVERY_VARIANTS_LENGTH_5) & 0xFFFF
| ((switch_get_colour_name(0) & 0xFFFF) << 16),
0x100
),
STORE_TEMP(
switch_get_colour_name(1) & 0xFFFF
| ((switch_get_colour_name(16) & 0xFFFF) << 16),
0x101
),
STORE_TEMP(
switch_get_colour_name(18) & 0xFFFF
| ((switch_get_colour_name(19) & 0xFFFF) << 16),
0x102
),
]) {
return string(STR_BUY_MENU_WRAPPER_ONE_SUBSTR, string(STR_BUY_MENU_HINT_LIVERY_VARIANTS));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment