快捷工具调整

This commit is contained in:
joylink_fanyuhong 2024-06-21 09:55:02 +08:00
parent 5897234e64
commit 3dc03af882
14 changed files with 294 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 744 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bxxba4vjla0te"
path="res://.godot/imported/围挡.png-4cad9c4e1d8479be1e58f4e8da476855.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/shortcutTool/围挡.png"
dest_files=["res://.godot/imported/围挡.png-4cad9c4e1d8479be1e58f4e8da476855.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 582 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://d4dvknuw3cv3"
path="res://.godot/imported/手提广播.png-3cec3f852b611c6eb76c9a5924c1612e.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/shortcutTool/手提广播.png"
dest_files=["res://.godot/imported/手提广播.png-3cec3f852b611c6eb76c9a5924c1612e.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b31l507x0hj0w"
path="res://.godot/imported/电扶梯钥匙.png-241ed5721ac9f2e931afabd92e176ee9.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/shortcutTool/电扶梯钥匙.png"
dest_files=["res://.godot/imported/电扶梯钥匙.png-241ed5721ac9f2e931afabd92e176ee9.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cmhrouhc2gln6"
path="res://.godot/imported/警戒线.png-cf64f5e70fb04c2071531279b3ad683f.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/shortcutTool/警戒线.png"
dest_files=["res://.godot/imported/警戒线.png-cf64f5e70fb04c2071531279b3ad683f.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dp1qa4u1c5jan"
path="res://.godot/imported/警示牌.png-914814b4eb1df733c74e05c47dfe7ecd.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/shortcutTool/警示牌.png"
dest_files=["res://.godot/imported/警示牌.png-914814b4eb1df733c74e05c47dfe7ecd.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

Binary file not shown.

After

Width:  |  Height:  |  Size: 565 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cj4whmxj7wv6v"
path="res://.godot/imported/铁马.png-65584cfd2da7e9fb9bf2cc17653d34bd.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/shortcutTool/铁马.png"
dest_files=["res://.godot/imported/铁马.png-65584cfd2da7e9fb9bf2cc17653d34bd.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@ -45,4 +45,22 @@ func _on_notice_signs_pressed() -> void:
##点击快捷工具对应的实物触发
func clickShortcutToolEntity(shortcutToolName:String) -> void:
pass
if shortcutToolName == 'escalatorKey':
$MarginContainer/HBoxContainer/escalatorKey.show()
$MarginContainer/HBoxContainer/escalatorKeyT.hide()
elif shortcutToolName == 'handheldRadio':
$MarginContainer/HBoxContainer/handheldRadio.show()
$MarginContainer/HBoxContainer/handheldRadioT.hide()
elif shortcutToolName == 'hoarding':
$MarginContainer/HBoxContainer/hoarding.show()
$MarginContainer/HBoxContainer/hoardingT.hide()
elif shortcutToolName == 'picketline':
$MarginContainer/HBoxContainer/picketline.show()
$MarginContainer/HBoxContainer/picketlineT.hide()
elif shortcutToolName == 'metalBarrier':
$MarginContainer/HBoxContainer/metalBarrier.show()
$MarginContainer/HBoxContainer/metalBarrierT.hide()
elif shortcutToolName == 'noticeSigns':
$MarginContainer/HBoxContainer/noticeSigns.show()
$MarginContainer/HBoxContainer/noticeSignsT.hide()

View File

@ -1,8 +1,14 @@
[gd_scene load_steps=4 format=3 uid="uid://cug8qjy51yafw"]
[gd_scene load_steps=10 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"]
[ext_resource type="Texture2D" uid="uid://b31l507x0hj0w" path="res://Assets/shortcutTool/电扶梯钥匙.png" id="4_k0i5y"]
[ext_resource type="Texture2D" uid="uid://d4dvknuw3cv3" path="res://Assets/shortcutTool/手提广播.png" id="5_ke6yi"]
[ext_resource type="Texture2D" uid="uid://bxxba4vjla0te" path="res://Assets/shortcutTool/围挡.png" id="6_wgpls"]
[ext_resource type="Texture2D" uid="uid://cmhrouhc2gln6" path="res://Assets/shortcutTool/警戒线.png" id="7_pfgqd"]
[ext_resource type="Texture2D" uid="uid://cj4whmxj7wv6v" path="res://Assets/shortcutTool/铁马.png" id="8_kxstf"]
[ext_resource type="Texture2D" uid="uid://dp1qa4u1c5jan" path="res://Assets/shortcutTool/警示牌.png" id="9_3bsby"]
[node name="ShortcutTool" type="Node2D"]
script = ExtResource("1_4mlqa")
@ -46,55 +52,118 @@ text = "快捷工具"
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
icon = ExtResource("4_k0i5y")
icon_alignment = 1
[node name="handheldRadio" type="Button" parent="MarginContainer/HBoxContainer"]
visible = false
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
icon = ExtResource("5_ke6yi")
icon_alignment = 1
[node name="hoarding" type="Button" parent="MarginContainer/HBoxContainer"]
visible = false
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
icon = ExtResource("6_wgpls")
icon_alignment = 1
[node name="picketline" type="Button" parent="MarginContainer/HBoxContainer"]
visible = false
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
icon = ExtResource("7_pfgqd")
icon_alignment = 1
[node name="metalBarrier" type="Button" parent="MarginContainer/HBoxContainer"]
visible = false
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
icon = ExtResource("8_kxstf")
icon_alignment = 1
[node name="noticeSigns" type="Button" parent="MarginContainer/HBoxContainer"]
visible = false
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
icon = ExtResource("9_3bsby")
icon_alignment = 1
[node name="Button7" type="Button" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
theme_override_styles/disabled = ExtResource("2_7rp77")
disabled = true
[node name="Button8" type="Button" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
theme_override_styles/disabled = ExtResource("2_7rp77")
disabled = true
[node name="Button9" type="Button" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
theme_override_styles/disabled = ExtResource("2_7rp77")
disabled = true
[node name="Button10" type="Button" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
theme_override_styles/disabled = ExtResource("2_7rp77")
disabled = true
[node name="escalatorKeyT" type="Button" parent="MarginContainer/HBoxContainer"]
visible = false
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/normal = ExtResource("2_7rp77")
theme_override_styles/disabled = ExtResource("2_7rp77")
disabled = true
[node name="handheldRadioT" type="Button" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/disabled = ExtResource("2_7rp77")
disabled = true
[node name="hoardingT" type="Button" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/disabled = ExtResource("2_7rp77")
disabled = true
[node name="picketlineT" type="Button" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/disabled = ExtResource("2_7rp77")
disabled = true
[node name="metalBarrierT" type="Button" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/disabled = ExtResource("2_7rp77")
disabled = true
[node name="noticeSignsT" type="Button" parent="MarginContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_styles/disabled = ExtResource("2_7rp77")
disabled = true
[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/picketline" to="." method="_on_picketline_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"]