mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Added ShowResizeNodes to BaseShape
This commit is contained in:
parent
5762b08e5e
commit
2497875b0a
3 changed files with 4 additions and 1 deletions
|
@ -76,6 +76,8 @@ public Point EndPosition
|
|||
|
||||
public virtual bool IsRegionShape { get; } = false;
|
||||
|
||||
public virtual bool ShowResizeNodes { get; } = true;
|
||||
|
||||
public virtual bool FixedSize { get; } = false;
|
||||
|
||||
internal ShapeManager Manager { get; set; }
|
||||
|
|
|
@ -35,6 +35,7 @@ public class StepDrawingShape : BaseDrawingShape
|
|||
private const int DefaultSize = 30;
|
||||
|
||||
public override ShapeType ShapeType { get; } = ShapeType.DrawingStep;
|
||||
public override bool ShowResizeNodes { get; } = false;
|
||||
public override bool FixedSize { get; } = true;
|
||||
|
||||
public int Number { get; set; }
|
||||
|
|
|
@ -1472,7 +1472,7 @@ private void SelectShape()
|
|||
{
|
||||
BaseShape shape = CurrentShape;
|
||||
|
||||
if (shape != null && !shape.FixedSize && !CurrentRectangle.IsEmpty)
|
||||
if (shape != null && shape.ShowResizeNodes && !CurrentRectangle.IsEmpty)
|
||||
{
|
||||
NodesVisible = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue