1
0
Fork 0

Compare commits

..

No commits in common. "5bdca00c5ec6bb10290861485b4b96adb2addbd4" and "23f77441bcee7b5e8fc73245121d8f4ed5bfae6e" have entirely different histories.

2 changed files with 8 additions and 19 deletions

View File

@ -12,7 +12,6 @@ func _input(event: InputEvent):
if event.pressed: if event.pressed:
if get_global_rect().has_point(get_global_mouse_position()): if get_global_rect().has_point(get_global_mouse_position()):
desktop.current_window = self desktop.current_window = self
get_parent().move_child(self, get_parent().get_child_count())
elif event is InputEventKey: elif event is InputEventKey:
if event.keycode == KEY_F11: if event.keycode == KEY_F11:
if event.pressed: if event.pressed:

View File

@ -416,33 +416,23 @@ text = "Inventory
" "
script = SubResource("GDScript_2vlp5") script = SubResource("GDScript_2vlp5")
[node name="Windows" type="Control" parent="."] [node name="DesktopWindow" parent="." node_paths=PackedStringArray("desktop", "maximized_windows", "taskbar") instance=ExtResource("11_m0w0q")]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
metadata/_edit_lock_ = true
[node name="DesktopWindow" parent="Windows" node_paths=PackedStringArray("desktop", "maximized_windows", "taskbar") instance=ExtResource("11_m0w0q")]
offset_left = 132.0 offset_left = 132.0
offset_top = 185.0 offset_top = 185.0
offset_right = 293.0 offset_right = 293.0
offset_bottom = 320.0 offset_bottom = 320.0
desktop = NodePath("../..") desktop = NodePath("..")
maximized_windows = NodePath("../../VBoxContainer/MaximizedWindows") maximized_windows = NodePath("../VBoxContainer/MaximizedWindows")
taskbar = NodePath("../../VBoxContainer/TaskBar") taskbar = NodePath("../VBoxContainer/TaskBar")
[node name="DesktopWindow2" parent="Windows" node_paths=PackedStringArray("desktop", "maximized_windows", "taskbar") instance=ExtResource("11_m0w0q")] [node name="DesktopWindow2" parent="." node_paths=PackedStringArray("desktop", "maximized_windows", "taskbar") instance=ExtResource("11_m0w0q")]
offset_left = 190.0 offset_left = 190.0
offset_top = 197.0 offset_top = 197.0
offset_right = 351.0 offset_right = 351.0
offset_bottom = 332.0 offset_bottom = 332.0
desktop = NodePath("../..") desktop = NodePath("..")
maximized_windows = NodePath("../../VBoxContainer/MaximizedWindows") maximized_windows = NodePath("../VBoxContainer/MaximizedWindows")
taskbar = NodePath("../../VBoxContainer/TaskBar") taskbar = NodePath("../VBoxContainer/TaskBar")
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("12_16brn") stream = ExtResource("12_16brn")