1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

* redone ZELP.TXT handling. Now VCMI should handle all language versions of that file.

This commit is contained in:
Michał W. Urbańczyk
2008-02-06 05:12:59 +00:00
parent 2e0dacd65a
commit f0db8760c2
6 changed files with 49 additions and 647 deletions

View File

@ -2108,7 +2108,7 @@ void CHeroList::mouseMoved (SDL_MouseMotionEvent & sEvent)
if(isItIn(&arrupp,LOCPLINT->current->motion.x,LOCPLINT->current->motion.y))
{
if (from>0)
LOCPLINT->adventureInt->statusbar.print(CGI->preth->advHListUp.first);
LOCPLINT->adventureInt->statusbar.print(CGI->preth->zelp[303].first);
else
LOCPLINT->adventureInt->statusbar.clear();
return;
@ -2116,7 +2116,7 @@ void CHeroList::mouseMoved (SDL_MouseMotionEvent & sEvent)
else if(isItIn(&arrdop,LOCPLINT->current->motion.x,LOCPLINT->current->motion.y))
{
if ((items.size()-from) > 5)
LOCPLINT->adventureInt->statusbar.print(CGI->preth->advHListDown.first);
LOCPLINT->adventureInt->statusbar.print(CGI->preth->zelp[304].first);
else
LOCPLINT->adventureInt->statusbar.clear();
return;
@ -2144,17 +2144,17 @@ void CHeroList::clickRight(tribool down)
/***************************ARROWS*****************************************/
if(isItIn(&arrupp,LOCPLINT->current->motion.x,LOCPLINT->current->motion.y) && from>0)
{
LOCPLINT->adventureInt->handleRightClick(CGI->preth->advHListUp.second,down,this);
LOCPLINT->adventureInt->handleRightClick(CGI->preth->zelp[303].second,down,this);
}
else if(isItIn(&arrdop,LOCPLINT->current->motion.x,LOCPLINT->current->motion.y) && (items.size()-from>5))
{
LOCPLINT->adventureInt->handleRightClick(CGI->preth->advHListDown.second,down,this);
LOCPLINT->adventureInt->handleRightClick(CGI->preth->zelp[304].second,down,this);
}
}
else
{
LOCPLINT->adventureInt->handleRightClick(CGI->preth->advHListUp.second,down,this);
LOCPLINT->adventureInt->handleRightClick(CGI->preth->advHListDown.second,down,this);
LOCPLINT->adventureInt->handleRightClick(CGI->preth->zelp[303].second,down,this);
LOCPLINT->adventureInt->handleRightClick(CGI->preth->zelp[304].second,down,this);
}
}
void CHeroList::hover (bool on)