diff --git a/Interface.tscn b/Interface.tscn index 616a32f..8119808 100644 --- a/Interface.tscn +++ b/Interface.tscn @@ -3,7 +3,7 @@ [ext_resource path="res://src/Interface.gd" type="Script" id=1] [ext_resource path="res://music/piano.ogg" type="AudioStream" id=2] -[node name="Interface" type="Control" index="0"] +[node name="Interface" type="Control"] anchor_left = 0.0 anchor_top = 0.0 diff --git a/MainScreen.tscn b/MainScreen.tscn index 43fe4d4..7a55a1b 100644 --- a/MainScreen.tscn +++ b/MainScreen.tscn @@ -6,7 +6,7 @@ [ext_resource path="res://Clothes.tscn" type="PackedScene" id=4] [ext_resource path="res://Interface.tscn" type="PackedScene" id=5] -[node name="MainScreen" type="Node2D"] +[node name="MainScreen" type="Node2D" index="0"] [node name="Background" type="Sprite" parent="." index="0"] diff --git a/src/ItemDrag.gd b/src/ItemDrag.gd index 511f0d7..8e16f76 100644 --- a/src/ItemDrag.gd +++ b/src/ItemDrag.gd @@ -8,7 +8,7 @@ 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 + item_pos = get_global_mouse_position() - rect_global_position else: item_pos = null diff --git a/src/WindowControl.gd b/src/WindowControl.gd index 83aa0ba..5e22ce0 100644 --- a/src/WindowControl.gd +++ b/src/WindowControl.gd @@ -30,7 +30,7 @@ func _on_TitleBar_gui_input(ev): if ev is InputEventMouseButton: if ev.button_index == BUTTON_LEFT: if ev.pressed: - drag_pos = get_global_mouse_position() - rect_position + drag_pos = get_global_mouse_position() - rect_global_position else: drag_pos = null