public override ShapeBase CreateShapeInstance() { CubemapShape shape = new CubemapShape("Cubemap"); shape.Position = EditorManager.Scene.CurrentShapeSpawnPosition; return(shape); }
/// <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); }
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(); }
public override ShapeBase CreateShapeInstance() { CubemapShape shape = new CubemapShape("Cubemap"); shape.Position = EditorManager.Scene.CurrentShapeSpawnPosition; return shape; }
public HotSpotUpdateCubemap(CubemapShape owner) : base(owner,@"textures\Refresh.tga",VisionColors.RGB(200,200,200),VisionColors.White,8.0f) { this.Set2DOffset(30,16); }
public HotSpotUpdateCubemap(CubemapShape owner) : base(owner, @"textures\Refresh.tga", VisionColors.RGB(200, 200, 200), VisionColors.White, 8.0f) { this.Set2DOffset(30, 16); }