feat: show zone name on loading screen during world transitions

Add setZoneName() to LoadingScreen and display the map name from Map.dbc
as large gold text with drop shadow above the progress bar. Shown in both
render() and renderOverlay() paths. Zone name is resolved from gameHandler's
getMapName(mapId) during world load. Improves feedback during zone transitions.
This commit is contained in:
Kelsi 2026-03-20 18:12:23 -07:00
parent ff1840415e
commit 71837ade19
3 changed files with 41 additions and 0 deletions

View file

@ -4286,6 +4286,15 @@ void Application::loadOnlineWorldTerrain(uint32_t mapId, float x, float y, float
window->swapBuffers();
};
// Set zone name on loading screen from Map.dbc
if (gameHandler) {
std::string mapDisplayName = gameHandler->getMapName(mapId);
if (!mapDisplayName.empty())
loadingScreen.setZoneName(mapDisplayName);
else
loadingScreen.setZoneName("Loading...");
}
showProgress("Entering world...", 0.0f);
// --- Clean up previous map's state on map change ---