1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-16 00:10:48 +02:00

Merge branch 'feature/freegfx' into refactoring/guiClasses

Conflicts:
	client/windows/CHeroWindow.cpp
	client/windows/CQuestLog.cpp
	client/windows/GUIClasses.cpp
This commit is contained in:
Ivan Savenko
2014-08-03 18:50:59 +03:00
15 changed files with 32 additions and 16 deletions

View File

@@ -196,7 +196,7 @@ void CButton::clickRight(tribool down, bool previousState)
void CButton::hover (bool on)
{
if(hoverable)
if(hoverable && !isBlocked())
{
if(on)
setState(HIGHLIGHTED);
@@ -204,8 +204,8 @@ void CButton::hover (bool on)
setState(NORMAL);
}
if(pressedL && on)
setState(PRESSED);
/*if(pressedL && on) // WTF is this? When this is used?
setState(PRESSED);*/
std::string name = hoverTexts[getState()].empty()
? hoverTexts[getState()]