Ejemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            DDD_Playfield Scene = ((DDD_Playfield)mdX_CanvasControl1.CurrentScene);

            if (Scene.PlayfieldScale > .25f)
            {
                Scene.PlayfieldScale -= .25f;
            }
        }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (mdX_CanvasControl1.CurrentScene is DDD_Playfield)
     {
         DDD_Playfield Scene = ((DDD_Playfield)mdX_CanvasControl1.CurrentScene);
         if (Scene.PlayfieldScale <= .75f)
         {
             Scene.PlayfieldScale += .25f;
         }
     }
 }
Ejemplo n.º 3
0
        public Form1()
        {
            SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true);

            InitializeComponent();

            scene_2D = new DDD_Playfield();
            scene_2D.UnitTestMode     = true;
            scene_2D.ImageLibraryPath = string.Format("{0}\\Resources\\{1}", System.Environment.CurrentDirectory, "ImageLib.dll");
            scene_2D.MapFile          = "Resources\\Ramadi.jpg";
        }