Els objectes de Text es precarreguen al inici

This commit is contained in:
2024-11-04 19:08:18 +01:00
parent e0e82ee273
commit 30735f00e8
16 changed files with 80 additions and 30 deletions

View File

@@ -351,7 +351,7 @@ void Game::updateStage()
createMessage(paths, Resource::get()->getTexture("last_stage"));
else
{
auto text = std::make_unique<Text>(Resource::get()->getTexture("04b_25.png"), Resource::get()->getTextFile("04b_25.txt"));
auto text = Resource::get()->getText("04b_25");
const std::string caption = std::to_string(10 - current_stage_) + lang::getText(38);
createMessage(paths, text->writeToTexture(caption, 2, -2));
}