Replace the standard dragging system with a callback to the specific graphable. #24

Closed
opened 2024-03-19 12:29:46 -04:00 by That-One-Nerd · 4 comments
That-One-Nerd commented 2024-03-19 12:29:46 -04:00 (Migrated from github.com)

I want to rework what I've kind of just made. It's good for now but I think in the future it should fall on the graphable's shoulders to do dragging behavior. Take slope fields, for example. I think rather than just showing the point on the line where your cursor is, I think it should display the slope at that point.

I think I'll do this for 1.5

I want to rework what I've kind of just made. It's good for now but I think in the future it should fall on the graphable's shoulders to do dragging behavior. Take slope fields, for example. I think rather than just showing the point on the line where your cursor is, I think it should display the slope at that point. I think I'll do this for 1.5
That-One-Nerd commented 2024-03-22 09:34:43 -04:00 (Migrated from github.com)

I don't want to do this for a while. Maybe 1.6 or later.

I don't want to do this for a while. Maybe 1.6 or later.
That-One-Nerd commented 2024-03-24 08:45:35 -04:00 (Migrated from github.com)

Maybe not quite that much, actually.
What I'm thinking of doing is replacing the current system with a couple methods

public virtual IEnumerable<IGraphUiPart> GetSelectionParts() => [];
public virtual bool ShouldSelect() => false;

But with arguments of course. This'll allow a bunch of customization.

Maybe not quite that much, actually. What I'm thinking of doing is replacing the current system with a couple methods ```csharp public virtual IEnumerable<IGraphUiPart> GetSelectionParts() => []; public virtual bool ShouldSelect() => false; ``` But with arguments of course. This'll allow a bunch of customization.
That-One-Nerd commented 2024-04-03 13:47:17 -04:00 (Migrated from github.com)

I'll do this now.

I'll do this now.
That-One-Nerd commented 2024-04-08 09:15:22 -04:00 (Migrated from github.com)

This has been completed.

This has been completed.
Sign in to join this conversation.
No description provided.