mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Campaign meta strings
This commit is contained in:
@@ -509,9 +509,9 @@ void CBonusSelection::CRegion::clickReleased(const Point & cursorPosition)
|
||||
void CBonusSelection::CRegion::showPopupWindow(const Point & cursorPosition)
|
||||
{
|
||||
// FIXME: For some reason "down" is only ever contain indeterminate_value
|
||||
auto text = CSH->si->campState->scenario(idOfMapAndRegion).regionText;
|
||||
if(!graphicsNotSelected->getSurface()->isTransparent(cursorPosition - pos.topLeft()) && text.size())
|
||||
auto & text = CSH->si->campState->scenario(idOfMapAndRegion).regionText;
|
||||
if(!graphicsNotSelected->getSurface()->isTransparent(cursorPosition - pos.topLeft()) && !text.empty())
|
||||
{
|
||||
CRClickPopup::createAndPush(text);
|
||||
CRClickPopup::createAndPush(text.toString());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user