public AnimationPlayer_WinForms(NANR.Animation animation, NCGR ncgr, NCLR nclr, NCER ncer, PictureBox pb) : base(animation, ncgr, nclr, ncer)
        {
            PictureBox = pb;
            generateBitmaps();

            Timer          = new Timer();
            Timer.Interval = 1000 / 60;
            Timer.Tick    += Timer_Tick;
        }
Ejemplo n.º 2
0
        public TestForm(string[] args)
        {
            InitializeComponent();

            nds = new NDS(File.OpenRead(args[0]));
            MainArchive mainArchive = new MainArchive(nds.FileSystem.OpenFile(args[1]));

            NCLR       nclr       = new NCLR(mainArchive.OpenFile(int.Parse(args[2])));
            SubArchive subArchive = new SubArchive(mainArchive.OpenFile(int.Parse(args[3])));
            NCGR       ncgr       = new NCGR(subArchive.OpenFile(2));
            NANR       nanr       = new NANR(subArchive.OpenFile(1));
            NCER       ncer       = new NCER(subArchive.OpenFile(0));

            NANR.Animation anim = nanr.animations[int.Parse(args[4])];

            //imgDisp.Image = cell.DrawOamBoxes(Color.Red);

            player = new AnimationPlayer_WinForms(anim, ncgr, nclr, ncer, imgDisp);
            player.Start();
        }
 public AnimationPlayer_WinForms(NANR.Animation animation, NCGR ncgr, NCLR nclr, NCER ncer) : this(animation, ncgr, nclr, ncer, new PictureBox())
 {
 }