Something something large buttons

This commit is contained in:
Antonio Martinez 2024-09-19 22:50:25 -07:00 committed by AJ Martinez
parent 1d7aa0ee18
commit dfdd46d69f
2 changed files with 5 additions and 2 deletions

View file

@ -191,6 +191,7 @@ Draw::TextElement& Draw::TextElement::parse(std::string_view raw)
else if (auto generic = genericinputs.find(bind); generic != genericinputs.end()) // Non-directional gamepad input, display it to the player as they are
{
string_.push_back(0xEF); // Control code: "switch to descriptive input mode" - Saturn buttons will draw as generic gamepad buttons
string_.push_back(0xEB); // Control code: "large button"
string_.push_back((it->second & 0xF0) | generic->second); // original invocation has the animation bits, but the glyph bits come from the table
}
else

View file

@ -2706,7 +2706,8 @@ void V_DrawStringScaled(
cx = x;
break;
case '\xEB':
largebutton = true;
if (fontno != TINY_FONT)
largebutton = true;
break;
case '\xEF':
descriptive = true;
@ -3055,7 +3056,8 @@ fixed_t V_StringScaledWidth(
cx = 0;
break;
case '\xEB':
largebutton = true;
if (fontno != TINY_FONT)
largebutton = true;
case '\xEF':
descriptive = true;
break;