1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-06-26 08:34:43 -04:00

Initial commit

This commit is contained in:
Anthony Wilcox 2018-12-30 05:37:55 -05:00
commit 72b3c539da
47 changed files with 1980 additions and 0 deletions

15
src/Interface.gd Normal file
View file

@ -0,0 +1,15 @@
extends Control
# class member variables go here, for example:
# var a = 2
# var b = "textvar"
func _ready():
# Called when the node is added to the scene for the first time.
# Initialization here
pass
#func _process(delta):
# # Called every frame. Delta is time since last frame.
# # Update game logic here.
# pass

14
src/drag.gd Normal file
View file

@ -0,0 +1,14 @@
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_position
else:
item_pos = null
if ev is InputEventMouseMotion and item_pos != null:
rect_position = get_global_mouse_position() - item_pos