|
@@ -6050,17 +6050,26 @@ void CGMagi::initObj()
|
|
|
void CGMagi::onHeroVisit(const CGHeroInstance * h) const
|
|
void CGMagi::onHeroVisit(const CGHeroInstance * h) const
|
|
|
{
|
|
{
|
|
|
if (ID == 37)
|
|
if (ID == 37)
|
|
|
|
|
+ {
|
|
|
|
|
+ BlockingDialog bd (false, false); //only accept
|
|
|
|
|
+ bd.soundID = soundBase::LIGHTHOUSE;
|
|
|
|
|
+ bd.player = h->tempOwner;
|
|
|
|
|
+ bd.text.addTxt (MetaString::ADVOB_TXT, 61);
|
|
|
|
|
+ cb->showBlockingDialog (&bd, boost::bind (&CGMagi::showEyes, this, h, _1));
|
|
|
|
|
+ }
|
|
|
|
|
+ else if (ID == 27)
|
|
|
{
|
|
{
|
|
|
InfoWindow iw;
|
|
InfoWindow iw;
|
|
|
- CenterView cv;
|
|
|
|
|
- FoWChange fw;
|
|
|
|
|
- cv.player = iw.player = fw.player = h->tempOwner;
|
|
|
|
|
-
|
|
|
|
|
- iw.soundID = soundBase::LIGHTHOUSE;
|
|
|
|
|
iw.player = h->tempOwner;
|
|
iw.player = h->tempOwner;
|
|
|
- iw.text.addTxt (MetaString::ADVOB_TXT, 61);
|
|
|
|
|
|
|
+ iw.text.addTxt (MetaString::ADVOB_TXT, 48);
|
|
|
cb->showInfoDialog(&iw);
|
|
cb->showInfoDialog(&iw);
|
|
|
-
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+void CGMagi::showEyes(const CGHeroInstance * h, ui32 accept) const
|
|
|
|
|
+{
|
|
|
|
|
+ CenterView cv;
|
|
|
|
|
+ FoWChange fw;
|
|
|
|
|
+ cv.player = fw.player = h->tempOwner;
|
|
|
fw.mode = 1;
|
|
fw.mode = 1;
|
|
|
std::vector<si32>::iterator it;
|
|
std::vector<si32>::iterator it;
|
|
|
for (it = eyelist[subID].begin(); it < eyelist[subID].end(); it++)
|
|
for (it = eyelist[subID].begin(); it < eyelist[subID].end(); it++)
|
|
@@ -6075,16 +6084,8 @@ void CGMagi::onHeroVisit(const CGHeroInstance * h) const
|
|
|
}
|
|
}
|
|
|
cv.pos = h->getPosition(false);
|
|
cv.pos = h->getPosition(false);
|
|
|
cb->sendAndApply(&cv);
|
|
cb->sendAndApply(&cv);
|
|
|
- }
|
|
|
|
|
- else if (ID == 27)
|
|
|
|
|
- {
|
|
|
|
|
- InfoWindow iw;
|
|
|
|
|
- iw.player = h->tempOwner;
|
|
|
|
|
- iw.text.addTxt (MetaString::ADVOB_TXT, 48);
|
|
|
|
|
- cb->showInfoDialog(&iw);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
void CGBoat::initObj()
|
|
void CGBoat::initObj()
|
|
|
{
|
|
{
|
|
|
hero = NULL;
|
|
hero = NULL;
|