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:
parent
4b37f6be3b
commit
8f6ab4592d
395 changed files with 0 additions and 823 deletions
16
scripts/ItemDrag.gd
Normal file
16
scripts/ItemDrag.gd
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue