[LocalizedStrings]: Replacing the 'pause' key on the 'togglemenu' key for hints.

This commit is contained in:
JerryALT 2024-03-29 20:09:33 +03:00
parent 45bedf0918
commit b59547e386

View File

@ -227,6 +227,11 @@ namespace Components
Game::GfxImage* image = Game::DB_FindXAssetHeader(Game::ASSET_TYPE_IMAGE, "minimap_tickertape_ru").image; Game::GfxImage* image = Game::DB_FindXAssetHeader(Game::ASSET_TYPE_IMAGE, "minimap_tickertape_ru").image;
material->textureTable->u.image = image; material->textureTable->u.image = image;
} }
// Replace the 'pause' key on the 'togglemenu' key for all localizations!
std::string localizeHint = LocalizedStrings::Get("KILLHOUSE_HINT_CHECK_OBJECTIVES_PAUSED");
Utils::String::Replace(localizeHint, "pause", "togglemenu");
LocalizedStrings::Set("KILLHOUSE_HINT_CHECK_OBJECTIVES_PAUSED", localizeHint.data());
}); });
Utils::Hook(0x5C7089, DB_LoadLevelXAssets, HOOK_CALL).install()->quick(); Utils::Hook(0x5C7089, DB_LoadLevelXAssets, HOOK_CALL).install()->quick();