Mercurial > otakunoraifu
comparison scn2k/scn2k_grp.cc @ 5:aa0577c1a494
Support for animated things like Botan
author | thib |
---|---|
date | Sun, 03 Aug 2008 09:16:37 +0000 |
parents | 9fb4609a5372 |
children | 55b577e5f5b5 |
comparison
equal
deleted
inserted
replaced
4:9fb4609a5372 | 5:aa0577c1a494 |
---|---|
1815 if (cmd.Str(cmd.args[1]) == string("???")) | 1815 if (cmd.Str(cmd.args[1]) == string("???")) |
1816 g.name = cmd.Str(cmd.args[2]); | 1816 g.name = cmd.Str(cmd.args[2]); |
1817 else | 1817 else |
1818 g.name = cmd.Str(cmd.args[1]); | 1818 g.name = cmd.Str(cmd.args[1]); |
1819 g.gan_name = cmd.Str(cmd.args[2]); | 1819 g.gan_name = cmd.Str(cmd.args[2]); |
1820 // The following lines fixes Botan's apparition on April 19 | 1820 |
1821 // but Botan does not appears in the middle of the screen. | 1821 if (cmd.cmd4 >= 1 && cmd.args[3].value == 0) |
1822 // FIXME: This needs some further investigation. | 1822 g.attr = GrpObj::Attribute(g.attr | GrpObj::HIDDEN); |
1823 if (g.name.find('?') != -1) { | 1823 else |
1824 g.attr = GrpObj::Attribute(g.attr & ~(GrpObj::HIDDEN)); | |
1825 | |
1826 if (cmd.argc >= 5) | |
1827 g.SetPos(1, cmd.args[4].value, -cmd.args[5].value); | |
1828 | |
1829 if (g.name.find('?') != -1) { | |
1824 g.name.erase(g.name.find('?')); | 1830 g.name.erase(g.name.find('?')); |
1825 g.gan_name = cmd.Str(cmd.args[2]); | 1831 g.gan_name = cmd.Str(cmd.args[2]); |
1826 if (cmd.cmd4 >= 1 && cmd.args[2].value == 0) | |
1827 g.attr = GrpObj::Attribute(g.attr | GrpObj::HIDDEN); | |
1828 else | |
1829 g.attr = GrpObj::Attribute(g.attr & ~(GrpObj::HIDDEN)); | |
1830 } | 1832 } |
1831 } else if (cmd.cmd3 == 0x4b0) { // 画像を文字列として指定 | 1833 } else if (cmd.cmd3 == 0x4b0) { // 画像を文字列として指定 |
1832 g.gtype = GrpObj::MOJI; | 1834 g.gtype = GrpObj::MOJI; |
1833 g.print_moji = cmd.Str(cmd.args[1]); | 1835 g.print_moji = cmd.Str(cmd.args[1]); |
1834 g.attr = GrpObj::Attribute(g.attr & (~GrpObj::HIDDEN)); // 常に表示がデフォルト? | 1836 g.attr = GrpObj::Attribute(g.attr & (~GrpObj::HIDDEN)); // 常に表示がデフォルト? |