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