예제 #1
0
        public override ShapeBase CreateShapeInstance()
        {
            CubemapShape shape = new CubemapShape("Cubemap");

            shape.Position = EditorManager.Scene.CurrentShapeSpawnPosition;
            return(shape);
        }
예제 #2
0
        /// <summary>
        /// This function must be overridden, since we have to reset the hotspots
        /// </summary>
        /// <returns></returns>
        public override ShapeBase Clone()
        {
            CubemapShape copy = base.Clone() as CubemapShape;

            copy._hotSpotUpdate = null;
            return(copy);
        }
예제 #3
0
        public void TestCursor()
        {
            TestManager.Helpers.CreateTestScene("CursorTest.scene");

              ShapeBase staticmesh = new CubemapShape("CubemapShape");
              EditorManager.Scene.Layers[0].AddShape(staticmesh, null);

              TestManager.Helpers.CursorMoveTo(100, 100);

              EditorManager.ActiveView.UpdateView(true);
              Thread.Sleep(100);

              TestManager.Helpers.CursorMoveTo3D(new Vector3F(0,0,0));

              TestManager.Helpers.SetButtonState(MouseButtons.Left, true, KeyModifier.Ctrl);
              TestManager.Helpers.SetButtonState(MouseButtons.Left, false, KeyModifier.Ctrl);

              EditorManager.ActiveView.UpdateView(true);
              Thread.Sleep(100);

              TestManager.Helpers.CloseActiveProject();
        }
예제 #4
0
 public override ShapeBase CreateShapeInstance()
 {
     CubemapShape shape = new CubemapShape("Cubemap");
       shape.Position = EditorManager.Scene.CurrentShapeSpawnPosition;
       return shape;
 }
예제 #5
0
 public HotSpotUpdateCubemap(CubemapShape owner)
     : base(owner,@"textures\Refresh.tga",VisionColors.RGB(200,200,200),VisionColors.White,8.0f)
 {
     this.Set2DOffset(30,16);
 }
예제 #6
0
 public HotSpotUpdateCubemap(CubemapShape owner) : base(owner, @"textures\Refresh.tga", VisionColors.RGB(200, 200, 200), VisionColors.White, 8.0f)
 {
     this.Set2DOffset(30, 16);
 }