forked from LGDG/ExampleProject
Compare commits
3 Commits
23f77441bc
...
5bdca00c5e
Author | SHA1 | Date |
---|---|---|
under | 5bdca00c5e | |
under | b83bd2074a | |
under | cc629bfc42 |
|
@ -12,6 +12,7 @@ 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:
|
||||||
|
|
|
@ -416,23 +416,33 @@ text = "Inventory
|
||||||
"
|
"
|
||||||
script = SubResource("GDScript_2vlp5")
|
script = SubResource("GDScript_2vlp5")
|
||||||
|
|
||||||
[node name="DesktopWindow" parent="." node_paths=PackedStringArray("desktop", "maximized_windows", "taskbar") instance=ExtResource("11_m0w0q")]
|
[node name="Windows" type="Control" parent="."]
|
||||||
|
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="." node_paths=PackedStringArray("desktop", "maximized_windows", "taskbar") instance=ExtResource("11_m0w0q")]
|
[node name="DesktopWindow2" parent="Windows" 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")
|
||||||
|
|
Loading…
Reference in New Issue