2025-08-27 08:02:11 -04:00
|
|
|
class_name ProfileWindow extends Window
|
2025-08-21 11:41:16 -04:00
|
|
|
|
2025-08-27 08:02:11 -04:00
|
|
|
var dragging : bool = false
|
2025-08-21 11:41:16 -04:00
|
|
|
|
2025-08-27 08:02:11 -04:00
|
|
|
|
|
|
|
|
func _on_close_requested() -> void:
|
2025-08-21 11:41:16 -04:00
|
|
|
queue_free()
|
2025-08-27 08:02:11 -04:00
|
|
|
|
|
|
|
|
func _on_drag_region_gui_input(event: InputEvent) -> void:
|
|
|
|
|
if event is InputEventMouseButton:
|
|
|
|
|
if event.button_index == MOUSE_BUTTON_LEFT:
|
|
|
|
|
dragging = event.pressed
|
|
|
|
|
elif dragging and event is InputEventMouseMotion:
|
|
|
|
|
position += Vector2i(event.screen_relative)
|
|
|
|
|
|