コード例 #1
0
        public DOWScene(zscreamForm mainform, string nameText)
        {
            scene = new SceneOW(mainform);


            this.nameText = nameText;
            this.mainform = mainform;
            GotFocus     += DScene_GotFocus;

            FormClosing += DScene_FormClosing;
        }
コード例 #2
0
        public void RestoreRedo(SceneOW scene)
        {
            int i = 0;

            for (int y = 0; y < redosavedTiles.Length / lengthX; y++)
            {
                for (int x = 0; x < lengthX; x++)
                {
                    int superX = ((mouseXDown + x) / 32);
                    int superY = ((mouseYDown + y) / 32);
                    int mapId  = (superY * 8) + superX + scene.ow.worldOffset;;
                    usedTiles[x + mouseXDown, y + mouseYDown] = redosavedTiles[i];
                    scene.ow.allmaps[mapId].CopyTile8bpp16(((mouseXDown + x) * 16) - (superX * 512), ((mouseYDown + y) * 16) - (superY * 512), redosavedTiles[i], scene.ow.allmaps[mapId].gfxPtr, scene.ow.allmaps[mapId].blockset16);
                    i++;
                }
            }
            scene.Invalidate(new Rectangle(scene.mainForm.panel5.HorizontalScroll.Value, scene.mainForm.panel5.VerticalScroll.Value, scene.mainForm.panel5.Width, scene.mainForm.panel5.Height));
        }