public void Get2DViewActions(CSharpFramework.Controls.Scene2DView view, Scene2DActions actions) { if (view.HasSelectionMarquee) { actions.AddAction(this, RO_CREATEZONEGRID); } }
public void Perform2DViewAction(CSharpFramework.Controls.Scene2DView view, GroupAction parent, string action) { if (action == RO_CREATEZONEGRID) { ZoneGridProperties properties = new ZoneGridProperties(); properties.Area = view.SelectionMarqueeWorldBox; using (PropertyGridDlg dlg = new PropertyGridDlg("Create a grid of zones", "Procedurally generate a grid of m times n streaming zones")) { dlg.DataObjectNoClone = properties; if (dlg.ShowDialog() != DialogResult.OK) { return; } CreateZoneGridAction createaction = new CreateZoneGridAction(properties); EditorManager.Actions.Add(createaction); } } }
public Scene2DViewFilterCategory GetScene2DRenderingFilter(CSharpFramework.Controls.Scene2DView view) { return(null); }
public BoundingBox GetAbsoluteBoundingBox(CSharpFramework.Controls.Scene2DView view) { return(null); }
public void OnPaintScene2DView(CSharpFramework.Controls.Scene2DView view, PaintEventArgs e) { }
public float GetScene2DRenderingSortingKey(CSharpFramework.Controls.Scene2DView view) { return(0); }