# HG changeset patch # User thib # Date 1217754997 0 # Node ID aa0577c1a4940d2da8522ffbb7d7329e6c43efb8 # Parent 9fb4609a53728f04e78d7166fb7bf64cb76b76e4 Support for animated things like Botan diff --git a/scn2k/scn2k_grp.cc b/scn2k/scn2k_grp.cc --- a/scn2k/scn2k_grp.cc +++ b/scn2k/scn2k_grp.cc @@ -1817,16 +1817,18 @@ void GrpImpl::Exec(Cmd& cmd) { else g.name = cmd.Str(cmd.args[1]); g.gan_name = cmd.Str(cmd.args[2]); - // The following lines fixes Botan's apparition on April 19 - // but Botan does not appears in the middle of the screen. - // FIXME: This needs some further investigation. - if (g.name.find('?') != -1) { + + if (cmd.cmd4 >= 1 && cmd.args[3].value == 0) + g.attr = GrpObj::Attribute(g.attr | GrpObj::HIDDEN); + else + g.attr = GrpObj::Attribute(g.attr & ~(GrpObj::HIDDEN)); + + if (cmd.argc >= 5) + g.SetPos(1, cmd.args[4].value, -cmd.args[5].value); + + if (g.name.find('?') != -1) { g.name.erase(g.name.find('?')); g.gan_name = cmd.Str(cmd.args[2]); - if (cmd.cmd4 >= 1 && cmd.args[2].value == 0) - g.attr = GrpObj::Attribute(g.attr | GrpObj::HIDDEN); - else - g.attr = GrpObj::Attribute(g.attr & ~(GrpObj::HIDDEN)); } } else if (cmd.cmd3 == 0x4b0) { // 画像を文字列として指定 g.gtype = GrpObj::MOJI;