1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

fix stuck (press) slider w. clicking on empty area

This commit is contained in:
Laserlicht
2025-02-23 20:11:56 +01:00
parent bf77dd8a7f
commit eeef7efac5
4 changed files with 56 additions and 27 deletions

View File

@@ -206,6 +206,11 @@ bool CButton::isHighlighted()
return getState() == EButtonState::HIGHLIGHTED;
}
bool CButton::isPressed()
{
return getState() == EButtonState::PRESSED;
}
void CButton::setHoverable(bool on)
{
hoverable = on;