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