Extensive work on the sideview and initial work on player profiles, inventory display, and renaming adventurerdata vs adventurer to adventurer vs adventurersprite
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
extends Window
|
||||
class_name ProfileWindow extends Window
|
||||
|
||||
var dragging : bool = false
|
||||
|
||||
|
||||
func _on_close_button_pressed() -> void:
|
||||
func _on_close_requested() -> void:
|
||||
queue_free()
|
||||
|
||||
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user