1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-07 00:58:39 +02:00

- fullscreen config option will take effect immediately

- fixed bug with highlightable buttons
- added several missing spells sounds
This commit is contained in:
Ivan Savenko
2012-02-24 20:41:14 +00:00
parent e7603a1fee
commit 2018fc09a4
3 changed files with 45 additions and 15 deletions

View File

@ -426,10 +426,12 @@ void CHighlightableButton::clickLeft(tribool down, bool previousState)
setState(PRESSED);
}
if(previousState && down == false && getState() == PRESSED)
if(previousState)//mouse up
{
//if(!onlyOn || !isHighlighted())
select(!selected);
if(down == false && getState() == PRESSED)
select(!selected);
else
setState(selected?HIGHLIGHTED:NORMAL);
}
}