mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Refactoring. Regressions fixing.
This commit is contained in:
@@ -216,6 +216,12 @@ void CButton::setActOnDown(bool on)
|
||||
actOnDown = on;
|
||||
}
|
||||
|
||||
void CButton::setHelp(const std::pair<std::string, std::string> & help)
|
||||
{
|
||||
hoverTexts[0] = help.first;
|
||||
helpBox = help.second;
|
||||
}
|
||||
|
||||
void CButton::block(bool on)
|
||||
{
|
||||
if(on || getState() == EButtonState::BLOCKED) //dont change button state if unblock requested, but it's not blocked
|
||||
|
||||
Reference in New Issue
Block a user