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:
@ -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)
|
||||
|
Reference in New Issue
Block a user