Stuff
This commit is contained in:
14
scripts/item_slot.gd
Normal file
14
scripts/item_slot.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
extends Control
|
||||
|
||||
var item_display_window_template = preload("res://templates/item_display_window.tscn")
|
||||
var dragging : bool = false
|
||||
var last_click : int = 0
|
||||
|
||||
func _on_gui_input(event: InputEvent) -> void:
|
||||
var mmevt = event as InputEventMouseMotion
|
||||
var mbevt = event as InputEventMouseButton
|
||||
if mbevt and mbevt.button_index == MOUSE_BUTTON_MASK_LEFT:
|
||||
if !mbevt.pressed:
|
||||
if dragging and
|
||||
#Press, drag, double click
|
||||
pass # Replace with function body.
|
||||
Reference in New Issue
Block a user