forked from Mirrorlandia_minetest/minetest
Fix animation_image support in scroll containers
This commit is contained in:
parent
857dbcd572
commit
6591597430
@ -227,6 +227,7 @@ local scroll_fs =
|
|||||||
"box[1,1;8,6;#00aa]"..
|
"box[1,1;8,6;#00aa]"..
|
||||||
"scroll_container[1,1;8,6;scrbar;vertical]"..
|
"scroll_container[1,1;8,6;scrbar;vertical]"..
|
||||||
"button[0,1;1,1;lorem;Lorem]"..
|
"button[0,1;1,1;lorem;Lorem]"..
|
||||||
|
"animated_image[0,1;4.5,1;clip_animated_image;testformspec_animation.png;4;100]" ..
|
||||||
"button[0,10;1,1;ipsum;Ipsum]"..
|
"button[0,10;1,1;ipsum;Ipsum]"..
|
||||||
"pwdfield[2,2;1,1;lorem2;Lorem]"..
|
"pwdfield[2,2;1,1;lorem2;Lorem]"..
|
||||||
"list[current_player;main;4,4;1,5;]"..
|
"list[current_player;main;4,4;1,5;]"..
|
||||||
|
@ -928,7 +928,7 @@ void GUIFormSpecMenu::parseAnimatedImage(parserData *data, const std::string &el
|
|||||||
|
|
||||||
core::rect<s32> rect = core::rect<s32>(pos, pos + geom);
|
core::rect<s32> rect = core::rect<s32>(pos, pos + geom);
|
||||||
|
|
||||||
GUIAnimatedImage *e = new GUIAnimatedImage(Environment, this, spec.fid,
|
GUIAnimatedImage *e = new GUIAnimatedImage(Environment, data->current_parent, spec.fid,
|
||||||
rect, texture_name, frame_count, frame_duration, m_tsrc);
|
rect, texture_name, frame_count, frame_duration, m_tsrc);
|
||||||
|
|
||||||
if (parts.size() >= 7)
|
if (parts.size() >= 7)
|
||||||
|
Loading…
Reference in New Issue
Block a user