refactor: nuke all widestrings and widechars everywhere

This commit is contained in:
Tropical
2026-04-07 23:20:09 -05:00
parent f1f1d116b3
commit 2912e9ae2e
1323 changed files with 23207 additions and 23399 deletions

View File

@@ -15,9 +15,9 @@
void DeathScreen::init() {
buttons.clear();
buttons.push_back(
new Button(1, width / 2 - 100, height / 4 + 24 * 3, L"Respawn"));
new Button(1, width / 2 - 100, height / 4 + 24 * 3, "Respawn"));
buttons.push_back(
new Button(2, width / 2 - 100, height / 4 + 24 * 4, L"Title menu"));
new Button(2, width / 2 - 100, height / 4 + 24 * 4, "Title menu"));
if (minecraft->user == nullptr) {
buttons[1]->active = false;
@@ -50,10 +50,10 @@ void DeathScreen::render(int xm, int ym, float a) {
glPushMatrix();
glScalef(2, 2, 2);
drawCenteredString(font, L"Game over!", width / 2 / 2, 60 / 2, 0xffffff);
drawCenteredString(font, "Game over!", width / 2 / 2, 60 / 2, 0xffffff);
glPopMatrix();
drawCenteredString(font,
L"Score: &e" + toWString(minecraft->player->getScore()),
"Score: &e" + toWString(minecraft->player->getScore()),
width / 2, 100, 0xffffff);
Screen::render(xm, ym, a);