Skip to content

Commit

Permalink
QoL Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SaturnHafen committed Feb 4, 2024
1 parent bd2be0c commit b9414cf
Show file tree
Hide file tree
Showing 6 changed files with 243 additions and 217 deletions.
1 change: 1 addition & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ConnectionsList="*res://addons/pronto/helpers/ConnectionsList.gd"
G="*res://addons/pronto/helpers/G.gd"
LanguageClient="*res://addons/pronto/helpers/LanguageClient.gd"
PromoteUtil="*res://addons/pronto/helpers/PromoteUtil.gd"
Global="*res://prototypes/game-robot-programming/global.gd"

[display]

Expand Down
19 changes: 6 additions & 13 deletions prototypes/game-robot-programming/draganddrop.gd
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,14 @@ func _process(delta):

func _set_drag_pc():
dragging = !dragging

# if !dragging and len(get_overlapping_areas()) > 1:
#
# for area in get_overlapping_areas():
# if area == %Editor:
# align()
# return

func align():
position.x = 850


func _on_input_event(viewport, event, shape_idx):
print("Input event")
if event is InputEventMouseButton:
if event.button_index == MOUSE_BUTTON_LEFT and event.pressed:
if Global.event_is_handled(event):
return
dragsignal.emit()
Global.note_event(event)
elif event.button_index == MOUSE_BUTTON_LEFT and !event.pressed:
dragsignal.emit()
if dragging:
dragsignal.emit()
Loading

0 comments on commit b9414cf

Please sign in to comment.