diff options
author | v-rob <robinsonvincent89@gmail.com> | 2020-04-25 07:55:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-25 16:55:21 +0200 |
commit | bc60e44d80a02bd48163440da2fd3165c0910376 (patch) | |
tree | 158b23b47a22ae74f630b7c5dc6ecdba9a27ea12 /src/gui | |
parent | 8b45f6a5f3eac7030cdc12d729066ccef4794502 (diff) | |
download | minetest-bc60e44d80a02bd48163440da2fd3165c0910376.tar.gz minetest-bc60e44d80a02bd48163440da2fd3165c0910376.tar.bz2 minetest-bc60e44d80a02bd48163440da2fd3165c0910376.zip |
Add `animated_image` to clickthrough elements (#9724)
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/guiFormSpecMenu.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index 0ed525f97..567f0ca7e 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -915,7 +915,9 @@ void GUIFormSpecMenu::parseAnimatedImage(parserData *data, const std::string &el auto style = getDefaultStyleForElement("animated_image", spec.fname, "image"); 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); } |