Files
pomchronicles/scripts/item_slot.gd

16 lines
524 B
GDScript3
Raw Normal View History

2025-08-21 11:41:16 -04:00
extends Control
2025-08-21 22:23:14 -04:00
#var item_display_window_template = preload("res://templates/item_display_window.tscn")
2025-08-21 11:41:16 -04:00
var dragging : bool = false
var last_click : int = 0
2025-08-21 22:23:14 -04:00
var item : Item
@onready var item_sprite : TextureRect = $Item
2025-08-21 11:41:16 -04:00
func _on_gui_input(event: InputEvent) -> void:
var mmevt = event as InputEventMouseMotion
var mbevt = event as InputEventMouseButton
2025-08-21 22:23:14 -04:00
#if mbevt and mbevt.button_index == MOUSE_BUTTON_MASK_LEFT:
#if !mbevt.pressed:
#if dragging and
2025-08-21 11:41:16 -04:00
#Press, drag, double click
pass # Replace with function body.