Fix midvote wrong coords (resolves mystery keyboard patch in tutorial)

This commit is contained in:
Antonio Martinez 2024-09-22 00:02:48 -07:00 committed by AJ Martinez
parent 9eaf53b11f
commit 88bd460cde
2 changed files with 1 additions and 29 deletions

View file

@ -492,34 +492,6 @@ void Dialogue::Draw(void)
drawer.xy(-18 + 4 - 5, -7-8 - 14).align(Draw::Align::kCenter).font(Draw::Font::kMenu).text(srb2::Draw::TextElement().parse(intertext).string());
}
/*
if (Dismissable())
{
if (TextDone())
{
drawer
.xy(-14, -7-5)
.patch(patchCache["TUTDIAG2"]);
}
std::string ctrl = "<large>";
if (Held())
ctrl += "<z_pressed>";
else if (TextDone())
ctrl += "<z_animated>";
else
ctrl += "<z>";
std::string parsedctrl = srb2::Draw::TextElement().parse(ctrl).string();
drawer
.xy(17-14 - BASEVIDWIDTH, -39-16)
.font(Draw::Font::kMenu)
.text(parsedctrl);
}
*/
}
void Dialogue::Dismiss(void)

View file

@ -1104,7 +1104,7 @@ void K_DrawMidVote(void)
exc, NULL
);
K_DrawGameControl(
x - 4, y + exc->height - 12,
x/FRACUNIT - 4, y/FRACUNIT + exc->height/FRACUNIT - 12,
id, pressed ? "<z_pressed>" : "<z>",
0, 8, V_SNAPTOBOTTOM|V_SNAPTORIGHT
);