mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 11:15:36 +00:00
Fix cell names on world map not always being translated (Fixes #2832)
This commit is contained in:
parent
1e18a73b1c
commit
e8c9d3ea2a
3 changed files with 4 additions and 3 deletions
|
@ -783,7 +783,7 @@ namespace MWGui
|
|||
MyGUI::Widget* markerWidget = mGlobalMap->createWidget<MyGUI::Widget>("MarkerButton",
|
||||
widgetCoord, MyGUI::Align::Default);
|
||||
|
||||
markerWidget->setUserString("Caption_TextOneLine", name);
|
||||
markerWidget->setUserString("Caption_TextOneLine", "#{sCell=" + name + "}");
|
||||
|
||||
setGlobalMapMarkerTooltip(markerWidget, x, y);
|
||||
|
||||
|
|
|
@ -190,7 +190,8 @@ namespace MWGui
|
|||
|
||||
void renderGlobalMap(Loading::Listener* loadingListener);
|
||||
|
||||
// adds the marker to the global map
|
||||
/// adds the marker to the global map
|
||||
/// @param name The ESM::Cell::mName
|
||||
void addVisitedLocation(const std::string& name, int x, int y);
|
||||
|
||||
// reveals this cell's map on the global map
|
||||
|
|
|
@ -993,7 +993,7 @@ namespace MWGui
|
|||
if (cell->getCell()->isExterior())
|
||||
{
|
||||
if (!cell->getCell()->mName.empty())
|
||||
mMap->addVisitedLocation ("#{sCell=" + name + "}", cell->getCell()->getGridX (), cell->getCell()->getGridY ());
|
||||
mMap->addVisitedLocation (name, cell->getCell()->getGridX (), cell->getCell()->getGridY ());
|
||||
|
||||
mMap->cellExplored (cell->getCell()->getGridX(), cell->getCell()->getGridY());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue