mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Patch from Ivan ( http://vcmi.antypika.aplus.pl/forum/viewtopic.php?p=4089#4089 )
"I've noticed that on town screen left-bottom info panel doesn't behave like in H3 and it looks that I fixed this as well as some connected issues: -all elements now response like in H3 on mouse moves\clicks -town status bar was not cleaned when nothing is selected -growth calculation was a bit wrong (in case of town with grail) -in H3 legion statue effect does not include effect of its components - only global +50% "
This commit is contained in:
@ -1560,7 +1560,10 @@ void CTownList::mouseMoved (const SDL_MouseMotionEvent & sEvent)
|
||||
LOCPLINT->statusbar->clear();
|
||||
return;
|
||||
};
|
||||
LOCPLINT->statusbar->print(items[from+ny]->name);
|
||||
std::string temp = CGI->generaltexth->tcommands[4];
|
||||
boost::algorithm::replace_first(temp,"%s",items[from+ny]->name);
|
||||
temp += ", "+items[from+ny]->town->Name();
|
||||
LOCPLINT->statusbar->print(temp);
|
||||
}
|
||||
|
||||
void CTownList::clickLeft(tribool down, bool previousState)
|
||||
|
Reference in New Issue
Block a user