mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-07 00:58:39 +02:00
Merge 'develop' branch
This commit is contained in:
@ -237,7 +237,7 @@ void CHeroList::CHeroItem::open()
|
||||
|
||||
void CHeroList::CHeroItem::showTooltip()
|
||||
{
|
||||
CRClickPopup::createAndPush(hero, GH.current->motion);
|
||||
CRClickPopup::createAndPush(hero, Point(GH.current->motion));
|
||||
}
|
||||
|
||||
std::string CHeroList::CHeroItem::getHoverText()
|
||||
@ -329,7 +329,7 @@ void CTownList::CTownItem::open()
|
||||
|
||||
void CTownList::CTownItem::showTooltip()
|
||||
{
|
||||
CRClickPopup::createAndPush(town, GH.current->motion);
|
||||
CRClickPopup::createAndPush(town, Point(GH.current->motion));
|
||||
}
|
||||
|
||||
std::string CTownList::CTownItem::getHoverText()
|
||||
@ -975,11 +975,8 @@ void CInGameConsole::show(SDL_Surface * to)
|
||||
boost::unique_lock<boost::mutex> lock(texts_mx);
|
||||
for(auto it = texts.begin(); it != texts.end(); ++it, ++number)
|
||||
{
|
||||
Point leftBottomCorner(0, screen->h);
|
||||
if(LOCPLINT->battleInt)
|
||||
{
|
||||
leftBottomCorner = LOCPLINT->battleInt->pos.bottomLeft();
|
||||
}
|
||||
Point leftBottomCorner(0, pos.h);
|
||||
|
||||
graphics->fonts[FONT_MEDIUM]->renderTextLeft(to, it->first, Colors::GREEN,
|
||||
Point(leftBottomCorner.x + 50, leftBottomCorner.y - (int)texts.size() * 20 - 80 + number*20));
|
||||
|
||||
|
Reference in New Issue
Block a user