.
This commit is contained in:
parent
ae50e13c78
commit
f2d3a371d3
1 changed files with 8 additions and 5 deletions
|
|
@ -40,8 +40,11 @@ func _unhandled_input(event: InputEvent):
|
|||
zoom.y = 1
|
||||
else:
|
||||
zoom.y -= 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if UserContext.modal_command is MoveCommand and event.button_index == MOUSE_BUTTON_LEFT and UserContext.selected_member != null:
|
||||
var loc = get_global_mouse_position()
|
||||
var node := Node2D.new()
|
||||
node.name = "targetNode"
|
||||
node.top_level = true
|
||||
node.position = loc
|
||||
self.add_child(node)
|
||||
UserContext.select_point(node)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue