0.3
Huge thanks to everyone who contributed to items in this release!
New features
- Links snap to pins when close
- Added
EditorContextGetPanning()
to access the current panning state of the editor - Added static attributes for node attributes which don't have a pin, along with
EndInputAttribute()
,EndOutputAttribute
, andEndStaticAttribute
. EndAttribute()
was deprecated with a compiler warning.- Enable editor panning with a pressed modifier to better support trackpads (enable via
IO::emulate_three_button_mouse
) - Added
IsEditorHovered()
to better detect when the mouse is over the node editor canvas. - Added
IsLinkDestroyed(int*)
to signal to the user that the editor has deleted a link. This was added so that the user can detach an existing link from a pin.
Three new ways of interacting with links have been added:
-
Detach link from pin by clicking and dragging (configurable via the attribute flag
AttributeFlags_EnableLinkDetachWithDragClick
)
-
Links snap to cursor when a modifier is pressed (configurable via IO::link_detach_with_modifier_click.modifier`)
-
Links can be configured to be created when snapping to the pin, instead of when the left mouse button is released (configurable via
AttributeFlags_EnableLinkCreationOnSnap
)
Fixes
- Fixed #26
- Fixed a bug in detecting when the mouse hovered near a link
- Selecting a link deselects all selected nodes
- Prevent interacting with the canvas when the mouse is not directly over the editor canvas
- Prevent links from snapping to pins of the same type