Menus: fix/tweak option text box

- Fixed width to match new font spacing
- Adjusted arrow position
This commit is contained in:
James R 2023-12-29 17:51:43 -08:00
parent 07afa214c7
commit 700df854dc

View file

@ -98,7 +98,7 @@ fixed_t M_DueFrac(tic_t start, tic_t duration)
} }
#define SKULLXOFF -32 #define SKULLXOFF -32
#define LINEHEIGHT 16 #define LINEHEIGHT 17
#define STRINGHEIGHT 9 #define STRINGHEIGHT 9
#define FONTBHEIGHT 20 #define FONTBHEIGHT 20
#define SMALLLINEHEIGHT 9 #define SMALLLINEHEIGHT 9
@ -1365,7 +1365,7 @@ void M_DrawHorizontalMenu(void)
void M_DrawTextBox(INT32 x, INT32 y, INT32 width, INT32 boxlines) void M_DrawTextBox(INT32 x, INT32 y, INT32 width, INT32 boxlines)
{ {
// Solid color textbox. // Solid color textbox.
V_DrawFill(x+5, y+5, width*8+6, boxlines*8+6, 159); V_DrawFill(x+5, y+5, width*7+6, boxlines*9+6, 159);
//V_DrawFill(x+8, y+8, width*8, boxlines*8, 31); //V_DrawFill(x+8, y+8, width*8, boxlines*8, 31);
} }
@ -4346,7 +4346,7 @@ box_found:
if ((currentMenu->menuitems[i].status & IT_TYPE) == IT_CVAR && if ((currentMenu->menuitems[i].status & IT_TYPE) == IT_CVAR &&
(currentMenu->menuitems[i].status & IT_CVARTYPE) == IT_CV_STRING) (currentMenu->menuitems[i].status & IT_CVARTYPE) == IT_CV_STRING)
{ {
y += 16; y += LINEHEIGHT;
} }
y += STRINGHEIGHT; y += STRINGHEIGHT;
break; break;
@ -4400,12 +4400,12 @@ box_found:
if (itemOn == i) if (itemOn == i)
{ {
xoffs += 8; xoffs += 8;
V_DrawMenuString(x + (skullAnimCounter/5) + 6, y + 11, highlightflags, "\x1D"); V_DrawMenuString(x + (skullAnimCounter/5) + 7, y + 11, highlightflags, "\x1D");
} }
V_DrawString(x + xoffs + 8, y + 12, 0, cv->string); V_DrawString(x + xoffs + 8, y + 12, 0, cv->string);
y += 16; y += LINEHEIGHT;
} }
break; break;
default: { default: {