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:
parent
f6071ed181
commit
78026f40eb
@ -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()
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user