godot-psd-training/UI/screenDoorOperate/screen_door_operate.tscn

63 lines
3.1 KiB
Plaintext
Raw Normal View History

2024-04-30 16:02:08 +08:00
[gd_scene load_steps=4 format=3 uid="uid://blsv4lgybr3nc"]
2024-04-30 11:25:39 +08:00
2024-04-30 16:02:08 +08:00
[ext_resource type="Script" path="res://UI/screenDoorOperate/screen_door_operate.gd" id="1_2p52y"]
2024-04-30 11:25:39 +08:00
[ext_resource type="Texture2D" uid="uid://c8lwj1sqanx5l" path="res://Assets/screenDoorOperate/胶带.png" id="1_pc0lg"]
[ext_resource type="Texture2D" uid="uid://co57dk4piito4" path="res://Assets/screenDoorOperate/隔离带.png" id="2_k5cyw"]
[node name="ScreenDoorOperate" type="Window"]
title = "屏蔽门操作"
position = Vector2i(10, 36)
2024-05-06 09:54:45 +08:00
size = Vector2i(153, 111)
2024-04-30 11:25:39 +08:00
wrap_controls = true
2024-04-30 16:02:08 +08:00
script = ExtResource("1_2p52y")
2024-04-30 11:25:39 +08:00
[node name="PanelContainer" type="PanelContainer" parent="."]
offset_right = 40.0
offset_bottom = 40.0
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"]
layout_mode = 2
theme_override_constants/margin_left = 15
theme_override_constants/margin_right = 15
2024-04-30 16:02:08 +08:00
theme_override_constants/margin_bottom = 15
2024-04-30 11:25:39 +08:00
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer"]
layout_mode = 2
2024-04-30 16:02:08 +08:00
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer/MarginContainer/VBoxContainer"]
2024-04-30 11:25:39 +08:00
layout_mode = 2
2024-04-30 16:02:08 +08:00
theme_override_constants/margin_top = 15
theme_override_constants/margin_bottom = 15
2024-04-30 11:25:39 +08:00
2024-04-30 16:02:08 +08:00
[node name="AdhesiveTape" type="HBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer/MarginContainer"]
2024-04-30 11:25:39 +08:00
layout_mode = 2
2024-04-30 16:02:08 +08:00
[node name="TextureRect" type="TextureRect" parent="PanelContainer/MarginContainer/VBoxContainer/MarginContainer/AdhesiveTape"]
2024-04-30 11:25:39 +08:00
layout_mode = 2
2024-04-30 16:02:08 +08:00
texture = ExtResource("1_pc0lg")
expand_mode = 2
stretch_mode = 5
2024-04-30 11:25:39 +08:00
2024-05-06 09:54:45 +08:00
[node name="AdhesiveTape" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer/MarginContainer/AdhesiveTape"]
2024-04-30 11:25:39 +08:00
layout_mode = 2
2024-04-30 16:02:08 +08:00
text = "贴胶带"
2024-04-30 11:25:39 +08:00
2024-04-30 16:02:08 +08:00
[node name="IsolationStrip" type="HBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer"]
2024-04-30 11:25:39 +08:00
layout_mode = 2
2024-04-30 16:02:08 +08:00
[node name="TextureRect2" type="TextureRect" parent="PanelContainer/MarginContainer/VBoxContainer/IsolationStrip"]
2024-04-30 11:25:39 +08:00
layout_mode = 2
texture = ExtResource("2_k5cyw")
2024-04-30 16:02:08 +08:00
expand_mode = 2
2024-04-30 11:25:39 +08:00
2024-05-06 09:54:45 +08:00
[node name="IsolationStrip" type="Button" parent="PanelContainer/MarginContainer/VBoxContainer/IsolationStrip"]
2024-04-30 11:25:39 +08:00
layout_mode = 2
text = "放置隔离带"
2024-04-30 16:02:08 +08:00
2024-05-06 09:54:45 +08:00
[connection signal="button_down" from="PanelContainer/MarginContainer/VBoxContainer/MarginContainer/AdhesiveTape/AdhesiveTape" to="." method="_on_adhesive_tape_button_down"]
[connection signal="mouse_entered" from="PanelContainer/MarginContainer/VBoxContainer/MarginContainer/AdhesiveTape/AdhesiveTape" to="." method="_on_adhesive_tape_mouse_entered"]
[connection signal="mouse_exited" from="PanelContainer/MarginContainer/VBoxContainer/MarginContainer/AdhesiveTape/AdhesiveTape" to="." method="_on_adhesive_tape_mouse_exited"]
[connection signal="button_down" from="PanelContainer/MarginContainer/VBoxContainer/IsolationStrip/IsolationStrip" to="." method="_on_isolation_strip_button_down"]
[connection signal="mouse_entered" from="PanelContainer/MarginContainer/VBoxContainer/IsolationStrip/IsolationStrip" to="." method="_on_isolation_strip_mouse_entered"]
[connection signal="mouse_exited" from="PanelContainer/MarginContainer/VBoxContainer/IsolationStrip/IsolationStrip" to="." method="_on_isolation_strip_mouse_exited"]