1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add animated_image to clickthrough elements (#9724)

This commit is contained in:
v-rob 2020-04-25 07:55:21 -07:00 committed by GitHub
parent 8b45f6a5f3
commit bc60e44d80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -915,7 +915,9 @@ void GUIFormSpecMenu::parseAnimatedImage(parserData *data, const std::string &el
auto style = getDefaultStyleForElement("animated_image", spec.fname, "image"); auto style = getDefaultStyleForElement("animated_image", spec.fname, "image");
e->setNotClipped(style.getBool(StyleSpec::NOCLIP, false)); e->setNotClipped(style.getBool(StyleSpec::NOCLIP, false));
e->drop();
// Animated images should let events through
m_clickthrough_elements.push_back(e);
m_fields.push_back(spec); m_fields.push_back(spec);
} }