Merge branch 'master' of ssh://git.sjkillen.ca:2222/sjkillen/everything_has_a_price_jam
This commit is contained in:
commit
6fae54b78d
1 changed files with 8 additions and 5 deletions
|
|
@ -40,8 +40,11 @@ func _unhandled_input(event: InputEvent):
|
||||||
zoom.y = 1
|
zoom.y = 1
|
||||||
else:
|
else:
|
||||||
zoom.y -= 1
|
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