Merge branch 'addmessage-button-codes' into 'master'

AddMessage fixes

See merge request KartKrew/Kart!1938
This commit is contained in:
AJ Martinez 2024-02-22 05:38:24 +00:00
commit 3d512c9787

View file

@ -5874,6 +5874,7 @@ static void K_DrawMessageFeed(void)
Draw::TextElement text(submsg);
text.font(Draw::Font::kMenu);
submsg = text.parse(submsg).string();
UINT8 x = 160;
UINT8 y = 10;
@ -5899,7 +5900,7 @@ static void K_DrawMessageFeed(void)
if (i >= 1)
y += BASEVIDHEIGHT / 2;
}
UINT8 sw = text.width();
UINT16 sw = text.width();
K_DrawSticker(x - sw/2, y, sw, 0, true);
Draw(x, y+shift).align(Draw::Align::kCenter).text(text);