Add pageup and pagedown support in replay hut
This commit is contained in:
1 parent
1987a18e68
commit
33bb40765c
1 file changed
+10
-2
+10
-2
@@ -7029,14 +7029,19 @@ static void M_HandleReplayHutList(INT32 choice)
|
||||
if (M_HandleReplayHutQuery(choice))
|
||||
return;
|
||||
|
||||
size_t scrollamt = 1;
|
||||
|
||||
switch (choice)
|
||||
{
|
||||
case KEY_PGUP:
|
||||
scrollamt = 8;
|
||||
/* FALLTHRU */
|
||||
case KEY_UPARROW:
|
||||
if (!replaynamesloaded)
|
||||
return;
|
||||
|
||||
if (dir_on[menudepthleft])
|
||||
dir_on[menudepthleft]--;
|
||||
dir_on[menudepthleft] -= min(dir_on[menudepthleft], scrollamt);
|
||||
else
|
||||
return;
|
||||
//M_PrevOpt();
|
||||
@@ -7045,12 +7050,15 @@ static void M_HandleReplayHutList(INT32 choice)
|
||||
replayScrollTitle = 0; replayScrollDelay = TICRATE; replayScrollDir = 1;
|
||||
break;
|
||||
|
||||
case KEY_PGDN:
|
||||
scrollamt = 8;
|
||||
/* FALLTHRU */
|
||||
case KEY_DOWNARROW:
|
||||
if (!replaynamesloaded)
|
||||
return;
|
||||
|
||||
if (dir_on[menudepthleft] < replayqueryfound-1)
|
||||
dir_on[menudepthleft]++;
|
||||
dir_on[menudepthleft] = min(replayqueryfound-1, dir_on[menudepthleft] + scrollamt);
|
||||
else
|
||||
return;
|
||||
//itemOn = 0; // Not M_NextOpt because that would take us to the extra dummy item
|
||||
|
||||
Reference in new issue
Block a user