changeset 5:aa0577c1a494

Support for animated things like Botan
author thib
date Sun, 03 Aug 2008 09:16:37 +0000
parents 9fb4609a5372
children 2c890434e30f
files scn2k/scn2k_grp.cc
diffstat 1 files changed, 10 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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;