mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +00:00
Support PgUp/PgDn for color select, similar to sound test & addons menu
This commit is contained in:
parent
458b474645
commit
4cd85b5228
1 changed files with 17 additions and 0 deletions
17
src/m_menu.c
17
src/m_menu.c
|
@ -12268,6 +12268,23 @@ static void M_HandleSetupMultiPlayer(INT32 choice)
|
|||
}
|
||||
break;
|
||||
|
||||
case KEY_PGUP:
|
||||
case KEY_PGDN:
|
||||
{
|
||||
UINT8 i;
|
||||
if (itemOn == 2) // player color
|
||||
{
|
||||
S_StartSound(NULL,sfx_menu1);
|
||||
for (i = 0; i < 13; i++) // or (282-charw)/(2*indexwidth)
|
||||
{
|
||||
setupm_fakecolor = (choice == KEY_PGUP) ? setupm_fakecolor->prev : setupm_fakecolor->next;
|
||||
while (!skincolors[setupm_fakecolor->color].accessible) // skip inaccessible colors
|
||||
setupm_fakecolor = (choice == KEY_PGUP) ? setupm_fakecolor->prev : setupm_fakecolor->next;
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case KEY_ESCAPE:
|
||||
exitmenu = true;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue