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

Several minor fixes/features

- moved all traslatable strings into one json file, removed threats.txt file
- implemented "spellbook animation" option
- fixed missing central tower when attacking fort
This commit is contained in:
Ivan Savenko
2013-10-27 13:05:01 +00:00
parent 9237e6d97d
commit 6cb3cb006d
10 changed files with 112 additions and 67 deletions

View File

@ -284,7 +284,10 @@ void CSpellWindow::selectSchool(int school)
{
if (selectedTab != school)
{
turnPageRight();
if (selectedTab < school)
turnPageLeft();
else
turnPageRight();
selectedTab = school;
currentPage = 0;
}
@ -507,12 +510,14 @@ void CSpellWindow::deactivate()
void CSpellWindow::turnPageLeft()
{
CCS->videoh->openAndPlayVideo("PGTRNLFT.SMK", pos.x+13, pos.y+15, screen);
if (settings["video"]["spellbookAnimation"].Bool())
CCS->videoh->openAndPlayVideo("PGTRNLFT.SMK", pos.x+13, pos.y+15, screen);
}
void CSpellWindow::turnPageRight()
{
CCS->videoh->openAndPlayVideo("PGTRNRGH.SMK", pos.x+13, pos.y+15, screen);
if (settings["video"]["spellbookAnimation"].Bool())
CCS->videoh->openAndPlayVideo("PGTRNRGH.SMK", pos.x+13, pos.y+15, screen);
}
void CSpellWindow::keyPressed(const SDL_KeyboardEvent & key)