godot-psd-training/UI/ShortcutTool/shortcutTool.tscn
2024-06-21 08:45:56 +08:00

101 lines
3.9 KiB
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://cug8qjy51yafw"]
[ext_resource type="Script" path="res://UI/ShortcutTool/shortcutTool.gd" id="1_4mlqa"]
[ext_resource type="Texture2D" uid="uid://bfsm3drlyvjbo" path="res://Assets/tool.png" id="1_x2804"]
[ext_resource type="StyleBox" uid="uid://jpisci6v4xpk" path="res://UI/ShortcutTool/shortcutToolButton.tres" id="2_7rp77"]
[node name="ShortcutTool" type="Node2D"]
script = ExtResource("1_4mlqa")
[node name="ColorRect" type="ColorRect" parent="."]
offset_right = 610.0
offset_bottom = 67.0
color = Color(0.298039, 0.321569, 0.345098, 1)
[node name="MarginContainer" type="MarginContainer" parent="."]
offset_right = 610.0
offset_bottom = 67.0
theme_override_constants/margin_left = 0
theme_override_constants/margin_top = 12
theme_override_constants/margin_right = 6
theme_override_constants/margin_bottom = 12
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer"]
layout_mode = 2
[node name="MarginContainer" type="BoxContainer" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 6
size_flags_vertical = 4
size_flags_stretch_ratio = 1.08
[node name="Sprite2D" type="Sprite2D" parent="MarginContainer/HBoxContainer/MarginContainer"]
scale = Vector2(0.18, 0.18)
texture = ExtResource("1_x2804")
[node name="BoxContainer" type="BoxContainer" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 1.78
[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/BoxContainer"]
layout_mode = 2
text = "快捷工具"
[node name="escalatorKey" type="Button" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
[node name="handheldRadio" type="Button" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
[node name="hoarding" type="Button" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
[node name="picketline" type="Button" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
[node name="metalBarrier" type="Button" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
[node name="noticeSigns" type="Button" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
[node name="Button7" type="Button" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
[node name="Button8" type="Button" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
[node name="Button9" type="Button" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
[node name="Button10" type="Button" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
[connection signal="pressed" from="MarginContainer/HBoxContainer/escalatorKey" to="." method="_on_escalator_key_pressed"]
[connection signal="pressed" from="MarginContainer/HBoxContainer/handheldRadio" to="." method="_on_handheld_radio_pressed"]
[connection signal="pressed" from="MarginContainer/HBoxContainer/hoarding" to="." method="_on_hoarding_pressed"]
[connection signal="pressed" from="MarginContainer/HBoxContainer/picketline" to="." method="_on_cordon_pressed"]
[connection signal="pressed" from="MarginContainer/HBoxContainer/metalBarrier" to="." method="_on_metal_barrier_pressed"]
[connection signal="pressed" from="MarginContainer/HBoxContainer/noticeSigns" to="." method="_on_notice_signs_pressed"]