1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Restore previously disabled functionality

This commit is contained in:
Ivan Savenko
2024-02-29 15:52:11 +02:00
parent ddb2acb9c2
commit 22f23ba6f8
6 changed files with 39 additions and 14 deletions

View File

@@ -147,6 +147,11 @@ void ButtonBase::setImageOrder(int state1, int state2, int state3, int state4)
update();
}
std::shared_ptr<CIntObject> ButtonBase::getOverlay()
{
return overlay;
}
void ButtonBase::setStateImpl(EButtonState newState)
{
state = newState;
@@ -335,8 +340,8 @@ CButton::CButton(Point position, const AnimationPath &defName, const std::pair<s
ButtonBase(position, defName, key, playerColoredButton),
callback(Callback),
helpBox(help.second),
hoverable(false),
actOnDown(false),
hoverable(false),
soundDisabled(false)
{
defActions = 255-DISPOSE;