forked from Mirrorlandia_minetest/minetest
Add animated_image
to clickthrough elements (#9724)
This commit is contained in:
parent
8b45f6a5f3
commit
bc60e44d80
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user