1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

name opens town itself

This commit is contained in:
Laserlicht 2023-10-15 00:41:17 +02:00 committed by GitHub
parent f6071ed181
commit 78026f40eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -822,6 +822,10 @@ CTownItem::CTownItem(const CGTownInstance * Town)
}
LOCPLINT->showInfoDialog(CGI->generaltexth->translate("vcmi.adventureMap.noTownWithMarket"));
});
fastTown = std::make_shared<LRClickableArea>(Rect(67, 6, 165, 20), [&]()
{
GH.windows().createAndPushWindow<CCastleInterface>(town);
});
}
void CTownItem::updateGarrisons()

View File

@ -282,6 +282,7 @@ class CTownItem : public CIntObject, public IGarrisonHolder
std::shared_ptr<CButton> fastArmyPurchase;
std::shared_ptr<LRClickableArea> fastMarket;
std::shared_ptr<LRClickableArea> fastTavern;
std::shared_ptr<LRClickableArea> fastTown;
public:
const CGTownInstance * town;