mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
M_DrawGenericOptions: only shift down open drawer if preceded by a closed drawer
This commit is contained in:
parent
06d5c1ce50
commit
15ef71137c
1 changed files with 9 additions and 6 deletions
|
|
@ -4310,22 +4310,25 @@ box_found:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IT_HEADERTEXT:
|
case IT_HEADERTEXT:
|
||||||
collapse = (i != expand);
|
if (i != expand)
|
||||||
|
|
||||||
if (collapse)
|
|
||||||
{
|
{
|
||||||
|
collapse = true;
|
||||||
term = (boxy != 0);
|
term = (boxy != 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (collapse)
|
||||||
|
y += 2;
|
||||||
|
|
||||||
|
collapse = false;
|
||||||
|
|
||||||
if (menutransition.tics == menutransition.dest)
|
if (menutransition.tics == menutransition.dest)
|
||||||
{
|
{
|
||||||
INT32 px = x - 20;
|
INT32 px = x - 20;
|
||||||
V_DrawFill(px, y + 6, BASEVIDWIDTH - (2 * px), 2, orangemap[0]);
|
V_DrawFill(px, y + 4, BASEVIDWIDTH - (2 * px), 2, orangemap[0]);
|
||||||
V_DrawFill(px + 1, y + 7, BASEVIDWIDTH - (2 * px), 2, 31);
|
V_DrawFill(px + 1, y + 5, BASEVIDWIDTH - (2 * px), 2, 31);
|
||||||
}
|
}
|
||||||
|
|
||||||
y += 2;
|
|
||||||
boxy = y;
|
boxy = y;
|
||||||
|
|
||||||
boxt = optionsmenu.box.dist == expand ? M_DueFrac(optionsmenu.box.start, 5) : FRACUNIT;
|
boxt = optionsmenu.box.dist == expand ? M_DueFrac(optionsmenu.box.start, 5) : FRACUNIT;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue