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:
parent
4ce04798d4
commit
efc43e87a8
@ -1925,6 +1925,8 @@ CPreGame::menuItems * CPreGame::currentItems()
|
||||
|
||||
void CPreGame::scenHandleEv(SDL_Event& sEvent)
|
||||
{
|
||||
if(currentTab==&ourScenSel->mapsel)
|
||||
{
|
||||
if(sEvent.button.button == SDL_BUTTON_WHEELUP)
|
||||
{
|
||||
ourScenSel->mapsel.slid->moveUp();
|
||||
@ -1935,6 +1937,7 @@ void CPreGame::scenHandleEv(SDL_Event& sEvent)
|
||||
ourScenSel->mapsel.slid->moveDown();
|
||||
return;
|
||||
}
|
||||
}
|
||||
if(sEvent.type == SDL_MOUSEMOTION)
|
||||
{
|
||||
CGI->curh->cursorMove(sEvent.motion.x, sEvent.motion.y);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user