示例#1
0
 public SceneOW(zscreamForm f)
 {
     this.MouseDown        += new MouseEventHandler(onMouseDown);
     this.MouseUp          += new MouseEventHandler(onMouseUp);
     this.MouseMove        += new MouseEventHandler(onMouseMove);
     this.MouseDoubleClick += new MouseEventHandler(onMouseDoubleClick);
     isDungeon              = false;
     mainForm        = f;
     graphicsOverlay = Graphics.FromImage(scene_bitmap_overlay);
     graphics        = Graphics.FromImage(scene_bitmap);
 }
示例#2
0
        public DOWScene(zscreamForm mainform, string nameText)
        {
            scene = new SceneOW(mainform);


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

            FormClosing += DScene_FormClosing;
        }
示例#3
0
        public RoomLayout(zscreamForm f)
        {
            InitializeComponent();

            /*foreach (string s in Directory.EnumerateDirectories("Layout\\"))
             * {
             *  tabControl1.TabPages.Add(Path.GetFileName(s));
             * }*/

            scene = new SceneUW(f);
            Controls.Add(scene);
            scene.Size     = new Size(512, 512);
            scene.Location = new Point(176, 23);
            scene.Enabled  = false;
        }