|
|
@@ -1438,6 +1438,9 @@ CCastleInterface::CCastleInterface(const CGTownInstance * Town, const CGTownInst
|
|
|
heroes = std::make_shared<HeroSlots>(town, Point(241, 387), Point(241, 483), garr, true);
|
|
|
title = std::make_shared<CTextInputWithConfirm>(Rect(83, 386, 140, 20), FONT_MEDIUM, ETextAlignment::TOPLEFT, town->getNameTranslated(), true, [this](){
|
|
|
std::string name = title->getText();
|
|
|
+ std::string originalName = LIBRARY->generaltexth->translate(town->getNameTextID());
|
|
|
+ if(name == originalName)
|
|
|
+ name = ""; // use textID again
|
|
|
GAME->interface()->cb->setTownName(town, name);
|
|
|
});
|
|
|
income = std::make_shared<CLabel>(195, 443, FONT_SMALL, ETextAlignment::CENTER);
|