1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Fix for scenario list scrolling with wheel.

This commit is contained in:
Michał W. Urbańczyk 2009-02-11 18:14:39 +00:00
parent 4ce04798d4
commit efc43e87a8
2 changed files with 13 additions and 9 deletions

View File

@ -1925,15 +1925,18 @@ CPreGame::menuItems * CPreGame::currentItems()
void CPreGame::scenHandleEv(SDL_Event& sEvent)
{
if(sEvent.button.button == SDL_BUTTON_WHEELUP)
if(currentTab==&ourScenSel->mapsel)
{
ourScenSel->mapsel.slid->moveUp();
return;
}
else if(sEvent.button.button == SDL_BUTTON_WHEELDOWN)
{
ourScenSel->mapsel.slid->moveDown();
return;
if(sEvent.button.button == SDL_BUTTON_WHEELUP)
{
ourScenSel->mapsel.slid->moveUp();
return;
}
else if(sEvent.button.button == SDL_BUTTON_WHEELDOWN)
{
ourScenSel->mapsel.slid->moveDown();
return;
}
}
if(sEvent.type == SDL_MOUSEMOTION)
{

View File

@ -1,4 +1,4 @@
0.7 -> 0.71 (as for r725)
0.7 -> 0.71 (as for r726)
GENERAL:
* fixed scrolling behind window problem (now it's possible to scroll with CTRL + arrows)
* morale/luck system and corresponding sec. skills supported
@ -19,6 +19,7 @@ ADVENTURE INTERFACE:
* campfire, borderguard, bordergate, questguard will be accessible from the top
BATTLES:
* partial support for battle obstackles
* spells not known by hero can't be casted
* spell books won't be placed in War Machine slots after battle
* attack is now possible when hex under cursor is not displayed