mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
@@ -2001,4 +2001,16 @@ void CPlayerInterface::showTavernWindow(const CGObjectInstance *townOrTavern)
|
||||
{
|
||||
CTavernWindow *tv = new CTavernWindow(townOrTavern);
|
||||
GH.pushInt(tv);
|
||||
}
|
||||
|
||||
void CPlayerInterface::showShipyardDialogOrProblemPopup(const IShipyard *obj)
|
||||
{
|
||||
if(obj->state())
|
||||
{
|
||||
MetaString txt;
|
||||
obj->getProblemText(txt);
|
||||
showInfoDialog(txt.toString());
|
||||
}
|
||||
else
|
||||
showShipyardDialog(obj);
|
||||
}
|
||||
Reference in New Issue
Block a user