1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-12-18 12:54:43 -05:00

Moved entire project to root

- Removed assets and publishing directories
This commit is contained in:
Anthony Foxclaw 2020-06-21 09:16:37 -04:00
parent 4b37f6be3b
commit 8f6ab4592d
395 changed files with 0 additions and 823 deletions

16
scripts/ItemDrag.gd Normal file
View file

@ -0,0 +1,16 @@
# Anthony Wilcox licenses this file to you under the MPL license.
# See the LICENSE file in the project root for more information.
extends TextureButton
var item_pos = null
func _on_outfit_gui_input(ev):
if ev is InputEventMouseButton:
if ev.button_index == BUTTON_LEFT:
if ev.pressed:
item_pos = get_global_mouse_position() - rect_global_position
else:
item_pos = null
if ev is InputEventMouseMotion and item_pos != null:
rect_global_position = get_global_mouse_position() - item_pos