Skip to content

Conversation

@dylanmccall
Copy link
Contributor

@dylanmccall dylanmccall requested review from manuq and wnbaum June 21, 2024 22:55
@dylanmccall dylanmccall force-pushed the T35519-snap-point-enhancements branch from 8354a46 to ebcd851 Compare June 21, 2024 23:11
Copy link
Contributor

@wnbaum wnbaum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So great!! Thanks for doing this. Working exactly how I imagined it and you implemented it very neatly.

preview_block.custom_minimum_size = dragging.get_global_rect().size
preview_block.size_flags_horizontal = Control.SIZE_SHRINK_BEGIN
preview_block.size_flags_vertical = Control.SIZE_SHRINK_BEGIN

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

func switch_input(node: Node):
func _update_visible_input():
if snap_point.has_snapped_block():
_switch_input(null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good, hide any input if we snap something!

@wnbaum wnbaum merged commit 7c520fb into main Jun 22, 2024
@wnbaum wnbaum deleted the T35519-snap-point-enhancements branch June 22, 2024 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants