mirror of
https://github.com/tonytins/dressupzack
synced 2025-05-08 06:14:48 -04:00
Switched to rect_global_position in second if statement
This commit is contained in:
parent
d91fd1cc4f
commit
f021869131
2 changed files with 2 additions and 2 deletions
|
@ -13,4 +13,4 @@ func _on_outfit_gui_input(ev):
|
|||
item_pos = null
|
||||
|
||||
if ev is InputEventMouseMotion and item_pos != null:
|
||||
rect_position = get_global_mouse_position() - item_pos
|
||||
rect_global_position = get_global_mouse_position() - item_pos
|
||||
|
|
|
@ -36,7 +36,7 @@ func _on_TitleBar_gui_input(ev):
|
|||
|
||||
|
||||
if ev is InputEventMouseMotion and drag_pos != null:
|
||||
rect_position = get_global_mouse_position() - drag_pos
|
||||
rect_global_position = get_global_mouse_position() - drag_pos
|
||||
|
||||
func _on_CloseBtn_pressed():
|
||||
hide()
|
||||
|
|
Loading…
Add table
Reference in a new issue