1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +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

@@ -177,7 +177,7 @@ void CTownList<T>::mouseMoved (SDL_MouseMotionEvent & sEvent)
if(isItIn(&arrupp,LOCPLINT->current->motion.x,LOCPLINT->current->motion.y))
{
if (from>0)
LOCPLINT->adventureInt->statusbar.print(CGI->preth->advTListUp.first);
LOCPLINT->adventureInt->statusbar.print(CGI->preth->zelp[306].first);
else
LOCPLINT->adventureInt->statusbar.clear();
return;
@@ -185,7 +185,7 @@ void CTownList<T>::mouseMoved (SDL_MouseMotionEvent & sEvent)
else if(isItIn(&arrdop,LOCPLINT->current->motion.x,LOCPLINT->current->motion.y))
{
if ((items.size()-from) > SIZE)
LOCPLINT->adventureInt->statusbar.print(CGI->preth->advTListDown.first);
LOCPLINT->adventureInt->statusbar.print(CGI->preth->zelp[307].first);
else
LOCPLINT->adventureInt->statusbar.clear();
return;
@@ -273,17 +273,17 @@ void CTownList<T>::clickRight(tribool down)
/***************************ARROWS*****************************************/
if(isItIn(&arrupp,LOCPLINT->current->motion.x,LOCPLINT->current->motion.y) && from>0)
{
LOCPLINT->adventureInt->handleRightClick(CGI->preth->advTListUp.second,down,this);
LOCPLINT->adventureInt->handleRightClick(CGI->preth->zelp[306].second,down,this);
}
else if(isItIn(&arrdop,LOCPLINT->current->motion.x,LOCPLINT->current->motion.y) && (items.size()-from>5))
{
LOCPLINT->adventureInt->handleRightClick(CGI->preth->advTListDown.second,down,this);
LOCPLINT->adventureInt->handleRightClick(CGI->preth->zelp[307].second,down,this);
}
}
else
{
LOCPLINT->adventureInt->handleRightClick(CGI->preth->advTListUp.second,down,this);
LOCPLINT->adventureInt->handleRightClick(CGI->preth->advTListDown.second,down,this);
LOCPLINT->adventureInt->handleRightClick(CGI->preth->zelp[306].second,down,this);
LOCPLINT->adventureInt->handleRightClick(CGI->preth->zelp[307].second,down,this);
}
}
template<typename T>