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 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(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 string_.push_back((it->second & 0xF0) | generic->second); // original invocation has the animation bits, but the glyph bits come from the table
} }
else else

View file

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