lcb显示调整+打开的lcb带编号

This commit is contained in:
joylink_zhaoerwei 2024-04-22 10:57:46 +08:00
parent e26fa7b94f
commit 3468ddcf3b
7 changed files with 111 additions and 64 deletions

View File

@ -2,6 +2,8 @@ extends Window
var currenScreenDoor:ScreenDoor=null
func _on_screen_door_click_lcb_signal(screenDoor: Variant) -> void:
var screenDoorName=String(screenDoor.name)
self.title='LCB'+screenDoorName[screenDoorName.length() - 1]
self.show()
$"../stationKeys".show()
$"../stationKeys".shouAllKeys()

View File

@ -1,13 +1,12 @@
extends Area3D
@onready var mouse_over = false
@onready var screen_door: ScreenDoor = $"../.."
func _input(event):
if event is InputEventMouseButton and event.pressed:
if mouse_over and event.button_index == MOUSE_BUTTON_LEFT: # 左键点击
screen_door.clickLcbSignal.emit(screen_door)
$"../..".clickLcbSignal.emit()
func _on_mouse_entered() -> void:
mouse_over = true

4
sceen/platform/lcb.gd Normal file
View File

@ -0,0 +1,4 @@
extends Node3D
signal clickLcbSignal()

91
sceen/platform/lcb.tscn Normal file
View File

@ -0,0 +1,91 @@
[gd_scene load_steps=8 format=3 uid="uid://0ys58lvdq51b"]
[ext_resource type="Script" path="res://sceen/platform/lcb.gd" id="1_rsitc"]
[ext_resource type="Script" path="res://sceen/platform/LCB_Area3D.gd" id="1_uby1l"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_v2w26"]
resource_name = "20 - Default"
cull_mode = 2
albedo_color = Color(0.790731, 0.790731, 0.790731, 1)
metallic = 1.0
roughness = 0.858579
[sub_resource type="ArrayMesh" id="ArrayMesh_5y5yp"]
_surfaces = [{
"aabb": AABB(-0.101208, -0.0573144, -0.0419822, 0.202415, 0.114629, 0.0839747),
"format": 34896613377,
"index_count": 180,
"index_data": PackedByteArray(4, 0, 2, 0, 5, 0, 2, 0, 4, 0, 0, 0, 1, 0, 5, 0, 3, 0, 5, 0, 1, 0, 4, 0, 4, 0, 6, 0, 0, 0, 6, 0, 4, 0, 10, 0, 3, 0, 7, 0, 1, 0, 7, 0, 3, 0, 9, 0, 5, 0, 9, 0, 3, 0, 9, 0, 5, 0, 11, 0, 0, 0, 8, 0, 2, 0, 8, 0, 0, 0, 6, 0, 1, 0, 10, 0, 4, 0, 10, 0, 1, 0, 7, 0, 2, 0, 11, 0, 5, 0, 11, 0, 2, 0, 8, 0, 15, 0, 13, 0, 12, 0, 13, 0, 15, 0, 14, 0, 17, 0, 12, 0, 16, 0, 12, 0, 17, 0, 15, 0, 18, 0, 17, 0, 16, 0, 17, 0, 18, 0, 19, 0, 21, 0, 18, 0, 20, 0, 18, 0, 21, 0, 19, 0, 22, 0, 21, 0, 20, 0, 21, 0, 22, 0, 23, 0, 23, 0, 24, 0, 25, 0, 24, 0, 23, 0, 22, 0, 25, 0, 26, 0, 27, 0, 26, 0, 25, 0, 24, 0, 14, 0, 26, 0, 13, 0, 26, 0, 14, 0, 27, 0, 31, 0, 33, 0, 32, 0, 31, 0, 34, 0, 33, 0, 35, 0, 29, 0, 28, 0, 34, 0, 29, 0, 35, 0, 34, 0, 30, 0, 29, 0, 31, 0, 30, 0, 34, 0, 20, 0, 24, 0, 22, 0, 20, 0, 26, 0, 24, 0, 26, 0, 12, 0, 13, 0, 20, 0, 12, 0, 26, 0, 12, 0, 18, 0, 16, 0, 20, 0, 18, 0, 12, 0, 34, 0, 15, 0, 33, 0, 15, 0, 34, 0, 14, 0, 34, 0, 27, 0, 14, 0, 27, 0, 34, 0, 35, 0, 35, 0, 25, 0, 27, 0, 25, 0, 35, 0, 28, 0, 29, 0, 25, 0, 28, 0, 25, 0, 29, 0, 23, 0, 30, 0, 23, 0, 29, 0, 23, 0, 30, 0, 21, 0, 21, 0, 31, 0, 19, 0, 31, 0, 21, 0, 30, 0, 17, 0, 31, 0, 32, 0, 31, 0, 17, 0, 19, 0, 32, 0, 15, 0, 17, 0, 15, 0, 32, 0, 33, 0),
"lods": [0.0354947, PackedByteArray(4, 0, 2, 0, 5, 0, 2, 0, 4, 0, 0, 0, 5, 0, 1, 0, 4, 0, 1, 0, 5, 0, 3, 0, 4, 0, 6, 0, 0, 0, 6, 0, 4, 0, 10, 0, 1, 0, 10, 0, 4, 0, 10, 0, 1, 0, 7, 0, 3, 0, 7, 0, 1, 0, 7, 0, 3, 0, 9, 0, 5, 0, 9, 0, 3, 0, 9, 0, 5, 0, 11, 0, 2, 0, 11, 0, 5, 0, 11, 0, 2, 0, 8, 0, 0, 0, 8, 0, 2, 0, 8, 0, 0, 0, 6, 0, 17, 0, 26, 0, 16, 0, 26, 0, 17, 0, 15, 0, 26, 0, 15, 0, 18, 0, 23, 0, 18, 0, 15, 0, 18, 0, 17, 0, 16, 0, 17, 0, 18, 0, 23, 0, 26, 0, 18, 0, 16, 0, 23, 0, 15, 0, 17, 0)],
"name": "20 - Default",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 36,
"vertex_data": PackedByteArray(0, 0, 105, 59, 247, 255, 0, 0, 255, 255, 105, 59, 247, 255, 0, 0, 0, 0, 255, 255, 247, 255, 0, 0, 255, 255, 255, 255, 247, 255, 0, 0, 255, 127, 105, 59, 247, 255, 0, 0, 255, 127, 255, 255, 247, 255, 0, 0, 0, 0, 105, 59, 12, 39, 0, 0, 255, 255, 105, 59, 12, 39, 0, 0, 0, 0, 255, 255, 12, 39, 0, 0, 255, 255, 255, 255, 12, 39, 0, 0, 255, 127, 105, 59, 12, 39, 0, 0, 255, 127, 255, 255, 12, 39, 0, 0, 8, 139, 166, 174, 232, 224, 0, 0, 75, 101, 166, 174, 159, 219, 0, 0, 75, 101, 0, 0, 159, 219, 0, 0, 8, 139, 0, 0, 232, 224, 0, 0, 68, 167, 166, 174, 78, 164, 0, 0, 68, 167, 0, 0, 78, 164, 0, 0, 117, 169, 166, 174, 86, 73, 0, 0, 117, 169, 0, 0, 86, 73, 0, 0, 81, 144, 166, 174, 72, 5, 0, 0, 81, 144, 0, 0, 72, 5, 0, 0, 148, 106, 166, 174, 0, 0, 0, 0, 148, 106, 0, 0, 0, 0, 0, 0, 88, 78, 166, 174, 153, 60, 0, 0, 88, 78, 0, 0, 153, 60, 0, 0, 39, 76, 166, 174, 145, 151, 0, 0, 39, 76, 0, 0, 145, 151, 0, 0, 141, 91, 0, 0, 7, 76, 0, 0, 106, 111, 0, 0, 118, 33, 0, 0, 243, 137, 0, 0, 34, 37, 0, 0, 158, 155, 0, 0, 240, 84, 0, 0, 15, 154, 0, 0, 224, 148, 0, 0, 58, 134, 0, 0, 118, 191, 0, 0, 178, 107, 0, 0, 202, 187, 0, 0, 9, 90, 0, 0, 232, 139, 0, 0)
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_fu045"]
resource_name = "screenDoor_网格_060"
_surfaces = [{
"aabb": AABB(-0.101208, -0.0573144, -0.0419822, 0.202415, 0.114629, 0.0839747),
"attribute_data": PackedByteArray(56, 44, 176, 7, 247, 39, 182, 7, 8, 1, 114, 20, 133, 48, 182, 7, 187, 36, 114, 20, 72, 48, 205, 10, 127, 40, 176, 7, 8, 1, 205, 0, 247, 39, 172, 10, 187, 36, 205, 0, 133, 48, 172, 10, 143, 44, 205, 10, 62, 44, 182, 7, 225, 18, 114, 20, 225, 18, 205, 0, 62, 44, 172, 10, 56, 44, 178, 10, 247, 39, 184, 10, 133, 48, 184, 10, 72, 48, 203, 7, 127, 40, 178, 10, 247, 39, 170, 7, 133, 48, 170, 7, 143, 44, 203, 7, 62, 44, 184, 10, 62, 44, 170, 7, 52, 82, 101, 189, 219, 24, 39, 175, 128, 21, 39, 175, 89, 86, 101, 189, 128, 21, 233, 183, 116, 33, 15, 195, 116, 33, 127, 176, 219, 24, 233, 183, 84, 79, 4, 192, 110, 1, 39, 175, 53, 28, 39, 175, 226, 47, 246, 162, 110, 1, 233, 183, 53, 28, 233, 183, 84, 79, 202, 195, 194, 4, 39, 175, 65, 68, 246, 162, 194, 4, 233, 183, 52, 82, 105, 198, 29, 8, 39, 175, 27, 83, 28, 176, 29, 8, 233, 183, 119, 11, 39, 175, 89, 86, 105, 198, 119, 11, 233, 183, 27, 83, 15, 195, 210, 14, 39, 175, 57, 89, 202, 195, 210, 14, 233, 183, 173, 68, 53, 208, 44, 18, 39, 175, 57, 89, 4, 192, 44, 18, 233, 183, 79, 48, 53, 208, 181, 65, 162, 201, 228, 75, 90, 192, 228, 75, 209, 178, 72, 65, 236, 169, 218, 50, 236, 169, 171, 40, 52, 179, 24, 41, 90, 192, 71, 51, 162, 201, 225, 18, 114, 20, 225, 18, 114, 20, 53, 28, 39, 175, 110, 1, 233, 183, 53, 28, 233, 183, 194, 4, 39, 175, 194, 4, 39, 175, 119, 11, 233, 183, 44, 18, 39, 175),
"format": 34896613399,
"index_count": 180,
"index_data": PackedByteArray(13, 0, 7, 0, 14, 0, 7, 0, 13, 0, 2, 0, 4, 0, 14, 0, 9, 0, 14, 0, 4, 0, 13, 0, 12, 0, 17, 0, 1, 0, 17, 0, 12, 0, 24, 0, 11, 0, 19, 0, 5, 0, 19, 0, 11, 0, 23, 0, 15, 0, 22, 0, 10, 0, 22, 0, 15, 0, 25, 0, 0, 0, 20, 0, 6, 0, 20, 0, 0, 0, 16, 0, 3, 0, 24, 0, 12, 0, 24, 0, 3, 0, 18, 0, 8, 0, 25, 0, 15, 0, 25, 0, 8, 0, 21, 0, 33, 0, 28, 0, 27, 0, 28, 0, 33, 0, 30, 0, 39, 0, 27, 0, 36, 0, 27, 0, 39, 0, 33, 0, 41, 0, 38, 0, 35, 0, 38, 0, 41, 0, 43, 0, 47, 0, 41, 0, 45, 0, 41, 0, 47, 0, 43, 0, 48, 0, 47, 0, 45, 0, 47, 0, 48, 0, 50, 0, 50, 0, 52, 0, 54, 0, 52, 0, 50, 0, 48, 0, 54, 0, 56, 0, 58, 0, 56, 0, 54, 0, 52, 0, 30, 0, 56, 0, 28, 0, 56, 0, 30, 0, 58, 0, 63, 0, 65, 0, 64, 0, 63, 0, 66, 0, 65, 0, 67, 0, 61, 0, 60, 0, 66, 0, 61, 0, 67, 0, 66, 0, 62, 0, 61, 0, 63, 0, 62, 0, 66, 0, 44, 0, 53, 0, 49, 0, 44, 0, 57, 0, 53, 0, 57, 0, 26, 0, 29, 0, 44, 0, 26, 0, 57, 0, 26, 0, 40, 0, 34, 0, 44, 0, 40, 0, 26, 0, 66, 0, 32, 0, 65, 0, 32, 0, 66, 0, 31, 0, 66, 0, 59, 0, 31, 0, 59, 0, 66, 0, 67, 0, 67, 0, 55, 0, 59, 0, 55, 0, 67, 0, 60, 0, 61, 0, 55, 0, 60, 0, 55, 0, 61, 0, 51, 0, 62, 0, 51, 0, 61, 0, 51, 0, 62, 0, 46, 0, 46, 0, 63, 0, 42, 0, 63, 0, 46, 0, 62, 0, 37, 0, 63, 0, 64, 0, 63, 0, 37, 0, 42, 0, 64, 0, 32, 0, 37, 0, 32, 0, 64, 0, 65, 0),
"lods": [0.0354947, PackedByteArray(68, 0, 7, 0, 14, 0, 7, 0, 68, 0, 2, 0, 14, 0, 4, 0, 69, 0, 4, 0, 14, 0, 9, 0, 12, 0, 17, 0, 1, 0, 17, 0, 12, 0, 24, 0, 3, 0, 24, 0, 12, 0, 24, 0, 3, 0, 18, 0, 11, 0, 19, 0, 5, 0, 19, 0, 11, 0, 23, 0, 15, 0, 22, 0, 10, 0, 22, 0, 15, 0, 25, 0, 8, 0, 25, 0, 15, 0, 25, 0, 8, 0, 21, 0, 0, 0, 20, 0, 6, 0, 20, 0, 0, 0, 16, 0, 72, 0, 76, 0, 70, 0, 56, 0, 39, 0, 33, 0, 56, 0, 33, 0, 41, 0, 50, 0, 41, 0, 33, 0, 73, 0, 38, 0, 35, 0, 71, 0, 74, 0, 75, 0, 57, 0, 40, 0, 34, 0, 51, 0, 32, 0, 37, 0)],
"material": SubResource("StandardMaterial3D_v2w26"),
"name": "20 - Default",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 77,
"vertex_data": PackedByteArray(0, 0, 105, 59, 247, 255, 84, 213, 0, 0, 105, 59, 247, 255, 255, 191, 0, 0, 105, 59, 247, 255, 255, 127, 255, 255, 105, 59, 247, 255, 255, 191, 255, 255, 105, 59, 247, 255, 255, 127, 255, 255, 105, 59, 247, 255, 84, 213, 0, 0, 255, 255, 247, 255, 84, 213, 0, 0, 255, 255, 247, 255, 255, 127, 0, 0, 255, 255, 247, 255, 255, 191, 255, 255, 255, 255, 247, 255, 255, 127, 255, 255, 255, 255, 247, 255, 255, 191, 255, 255, 255, 255, 247, 255, 84, 213, 255, 127, 105, 59, 247, 255, 255, 191, 255, 127, 105, 59, 247, 255, 255, 127, 255, 127, 255, 255, 247, 255, 255, 127, 255, 127, 255, 255, 247, 255, 255, 191, 0, 0, 105, 59, 12, 39, 84, 213, 0, 0, 105, 59, 12, 39, 255, 191, 255, 255, 105, 59, 12, 39, 255, 191, 255, 255, 105, 59, 12, 39, 84, 213, 0, 0, 255, 255, 12, 39, 84, 213, 0, 0, 255, 255, 12, 39, 255, 191, 255, 255, 255, 255, 12, 39, 255, 191, 255, 255, 255, 255, 12, 39, 84, 213, 255, 127, 105, 59, 12, 39, 255, 191, 255, 127, 255, 255, 12, 39, 255, 191, 8, 139, 166, 174, 232, 224, 85, 254, 8, 139, 166, 174, 232, 224, 162, 141, 75, 101, 166, 174, 159, 219, 91, 146, 75, 101, 166, 174, 159, 219, 83, 254, 75, 101, 0, 0, 159, 219, 91, 146, 75, 101, 0, 0, 159, 219, 207, 211, 8, 139, 0, 0, 232, 224, 7, 212, 8, 139, 0, 0, 232, 224, 162, 141, 68, 167, 166, 174, 78, 164, 222, 254, 68, 167, 166, 174, 78, 164, 162, 173, 68, 167, 166, 174, 78, 164, 162, 173, 68, 167, 0, 0, 78, 164, 220, 211, 68, 167, 0, 0, 78, 164, 162, 173, 68, 167, 0, 0, 78, 164, 162, 173, 117, 169, 166, 174, 86, 73, 58, 254, 117, 169, 166, 174, 86, 73, 162, 205, 117, 169, 0, 0, 86, 73, 86, 212, 117, 169, 0, 0, 86, 73, 162, 205, 81, 144, 166, 174, 72, 5, 65, 254, 81, 144, 166, 174, 72, 5, 162, 237, 81, 144, 0, 0, 72, 5, 252, 211, 81, 144, 0, 0, 72, 5, 162, 237, 148, 106, 166, 174, 0, 0, 91, 242, 148, 106, 166, 174, 0, 0, 83, 254, 148, 106, 0, 0, 0, 0, 91, 242, 148, 106, 0, 0, 0, 0, 46, 212, 88, 78, 166, 174, 153, 60, 91, 210, 88, 78, 166, 174, 153, 60, 131, 254, 88, 78, 0, 0, 153, 60, 91, 210, 88, 78, 0, 0, 153, 60, 27, 212, 39, 76, 166, 174, 145, 151, 91, 178, 39, 76, 166, 174, 145, 151, 90, 254, 39, 76, 0, 0, 145, 151, 91, 178, 39, 76, 0, 0, 145, 151, 215, 211, 141, 91, 0, 0, 7, 76, 21, 212, 106, 111, 0, 0, 118, 33, 52, 212, 243, 137, 0, 0, 34, 37, 18, 212, 158, 155, 0, 0, 240, 84, 74, 212, 15, 154, 0, 0, 224, 148, 236, 211, 58, 134, 0, 0, 118, 191, 22, 212, 178, 107, 0, 0, 202, 187, 234, 211, 9, 90, 0, 0, 232, 139, 224, 211, 255, 127, 105, 59, 247, 255, 194, 136, 255, 127, 105, 59, 247, 255, 24, 142, 68, 167, 166, 174, 78, 164, 97, 159, 68, 167, 0, 0, 78, 164, 252, 196, 68, 167, 0, 0, 78, 164, 97, 159, 117, 169, 166, 174, 86, 73, 11, 197, 117, 169, 166, 174, 86, 73, 18, 209, 148, 106, 0, 0, 0, 0, 113, 247, 39, 76, 166, 174, 145, 151, 164, 162, 84, 85, 170, 170, 0, 0, 255, 127, 255, 127, 255, 255, 0, 0, 255, 127, 255, 127, 255, 255, 170, 170, 84, 85, 84, 85, 170, 170, 255, 127, 255, 255, 254, 255, 255, 127, 255, 127, 255, 255, 255, 255, 255, 127, 170, 170, 84, 85, 0, 0, 255, 127, 255, 127, 255, 255, 255, 127, 255, 255, 254, 255, 255, 127, 84, 85, 170, 170, 0, 0, 255, 127, 0, 0, 255, 127, 170, 170, 84, 85, 84, 85, 170, 170, 255, 255, 255, 127, 255, 255, 255, 127, 170, 170, 84, 85, 0, 0, 255, 127, 254, 255, 255, 127, 232, 192, 210, 1, 255, 127, 0, 0, 255, 127, 255, 255, 233, 192, 212, 1, 255, 127, 255, 255, 115, 83, 69, 86, 186, 83, 34, 86, 255, 127, 0, 0, 158, 192, 61, 1, 255, 127, 0, 0, 255, 127, 0, 0, 132, 83, 61, 86, 255, 127, 0, 0, 255, 127, 0, 0, 246, 192, 238, 1, 255, 127, 0, 0, 29, 84, 240, 85, 255, 127, 0, 0, 242, 192, 231, 1, 255, 127, 0, 0, 172, 83, 41, 86, 255, 127, 0, 0, 255, 127, 255, 255, 233, 192, 212, 1, 255, 127, 255, 255, 235, 83, 9, 86, 255, 127, 255, 255, 207, 192, 160, 1, 255, 127, 255, 255, 211, 83, 21, 86, 255, 127, 255, 255, 229, 192, 204, 1, 255, 127, 255, 255, 126, 83, 64, 86, 203, 83, 25, 86, 243, 83, 5, 86, 200, 83, 27, 86, 14, 84, 248, 85, 152, 83, 51, 86, 205, 83, 24, 86, 150, 83, 52, 86, 137, 83, 58, 86, 255, 127, 254, 255, 255, 127, 0, 0, 255, 127, 0, 0, 238, 92, 137, 61, 255, 127, 0, 0, 255, 127, 0, 0, 250, 113, 234, 33, 200, 208, 163, 42, 255, 127, 255, 255)
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_5y5yp")
[sub_resource type="BoxShape3D" id="BoxShape3D_ajatj"]
[sub_resource type="ViewportTexture" id="ViewportTexture_k6str"]
viewport_path = NodePath("SubViewport")
[node name="LCB" type="Node3D"]
script = ExtResource("1_rsitc")
[node name="LCB_body" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.75579, 2.92652, -7.30781)
mesh = SubResource("ArrayMesh_fu045")
skeleton = NodePath("")
[node name="LCB_Area3D" type="Area3D" parent="LCB_body"]
transform = Transform3D(0.207, 0, 0, 0, 0.125, 0, 0, 0, 0.205, 0, 0.00459647, 0)
script = ExtResource("1_uby1l")
[node name="CollisionShape3D" type="CollisionShape3D" parent="LCB_body/LCB_Area3D"]
shape = SubResource("BoxShape3D_ajatj")
[node name="SubViewport" type="SubViewport" parent="."]
size = Vector2i(64, 32)
[node name="ColorRect" type="ColorRect" parent="SubViewport"]
offset_right = 64.0
offset_bottom = 32.0
color = Color(0, 0.0901961, 1, 1)
[node name="Label" type="Label" parent="SubViewport"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_font_sizes/font_size = 32
text = "LCB"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Sprite3D" type="Sprite3D" parent="."]
transform = Transform3D(0.256, 0, 0, 0, 0.256, 0, 0, 0, 0.256, -2.756, 2.939, -7.265)
texture = SubResource("ViewportTexture_k6str")
[connection signal="mouse_entered" from="LCB_body/LCB_Area3D" to="LCB_body/LCB_Area3D" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="LCB_body/LCB_Area3D" to="LCB_body/LCB_Area3D" method="_on_mouse_exited"]

View File

@ -112,8 +112,8 @@ visible = false
position = Vector2i(1133, 325)
visible = false
[connection signal="clickLcbSignal" from="screenDoor1" to="LCB" method="_on_screen_door_click_lcb_signal"]
[connection signal="clickLcbSignal" from="screenDoor2" to="LCB" method="_on_screen_door_click_lcb_signal"]
[connection signal="clickLcbSignal" from="screenDoor3" to="LCB" method="_on_screen_door_click_lcb_signal"]
[connection signal="clickLcbSignal" from="screenDoor4" to="LCB" method="_on_screen_door_click_lcb_signal"]
[connection signal="clickLcbSignalAndSent" from="screenDoor1" to="LCB" method="_on_screen_door_click_lcb_signal"]
[connection signal="clickLcbSignalAndSent" from="screenDoor2" to="LCB" method="_on_screen_door_click_lcb_signal"]
[connection signal="clickLcbSignalAndSent" from="screenDoor3" to="LCB" method="_on_screen_door_click_lcb_signal"]
[connection signal="clickLcbSignalAndSent" from="screenDoor4" to="LCB" method="_on_screen_door_click_lcb_signal"]
[connection signal="close_requested" from="LCB" to="LCB" method="_on_close_requested"]

View File

@ -6,7 +6,7 @@ class_name ScreenDoor
@onready var right_animation_player: AnimationPlayer = $RightAnimationPlayer
signal clickLcbSignal(screenDoor)
signal clickLcbSignalAndSent(screenDoor)
## 屏蔽门的状态枚举
@ -51,3 +51,6 @@ func _process(delta: float) -> void:
count=0
func _on_lcb_click() -> void:
self.clickLcbSignalAndSent.emit(self)

View File

@ -1,8 +1,8 @@
[gd_scene load_steps=23 format=3 uid="uid://bc2dnsyx16kk6"]
[gd_scene load_steps=20 format=3 uid="uid://bc2dnsyx16kk6"]
[ext_resource type="Script" path="res://sceen/platform/screenDoor.gd" id="1_nse1y"]
[ext_resource type="Script" path="res://sceen/platform/LCB_Area3D.gd" id="2_lbd6y"]
[ext_resource type="Texture2D" uid="uid://c0gto8nc6msh4" path="res://Model/screenDoor/screenDoor_haerbin_jz_menkuangyanse87.png" id="2_rfgim"]
[ext_resource type="PackedScene" uid="uid://0ys58lvdq51b" path="res://sceen/platform/lcb.tscn" id="4_t5qy2"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_v2w26"]
resource_name = "20 - Default"
@ -11,42 +11,6 @@ albedo_color = Color(0.790731, 0.790731, 0.790731, 1)
metallic = 1.0
roughness = 0.858579
[sub_resource type="ArrayMesh" id="ArrayMesh_5y5yp"]
_surfaces = [{
"aabb": AABB(-0.101208, -0.0573144, -0.0419822, 0.202415, 0.114629, 0.0839747),
"format": 34896613377,
"index_count": 180,
"index_data": PackedByteArray(4, 0, 2, 0, 5, 0, 2, 0, 4, 0, 0, 0, 1, 0, 5, 0, 3, 0, 5, 0, 1, 0, 4, 0, 4, 0, 6, 0, 0, 0, 6, 0, 4, 0, 10, 0, 3, 0, 7, 0, 1, 0, 7, 0, 3, 0, 9, 0, 5, 0, 9, 0, 3, 0, 9, 0, 5, 0, 11, 0, 0, 0, 8, 0, 2, 0, 8, 0, 0, 0, 6, 0, 1, 0, 10, 0, 4, 0, 10, 0, 1, 0, 7, 0, 2, 0, 11, 0, 5, 0, 11, 0, 2, 0, 8, 0, 15, 0, 13, 0, 12, 0, 13, 0, 15, 0, 14, 0, 17, 0, 12, 0, 16, 0, 12, 0, 17, 0, 15, 0, 18, 0, 17, 0, 16, 0, 17, 0, 18, 0, 19, 0, 21, 0, 18, 0, 20, 0, 18, 0, 21, 0, 19, 0, 22, 0, 21, 0, 20, 0, 21, 0, 22, 0, 23, 0, 23, 0, 24, 0, 25, 0, 24, 0, 23, 0, 22, 0, 25, 0, 26, 0, 27, 0, 26, 0, 25, 0, 24, 0, 14, 0, 26, 0, 13, 0, 26, 0, 14, 0, 27, 0, 31, 0, 33, 0, 32, 0, 31, 0, 34, 0, 33, 0, 35, 0, 29, 0, 28, 0, 34, 0, 29, 0, 35, 0, 34, 0, 30, 0, 29, 0, 31, 0, 30, 0, 34, 0, 20, 0, 24, 0, 22, 0, 20, 0, 26, 0, 24, 0, 26, 0, 12, 0, 13, 0, 20, 0, 12, 0, 26, 0, 12, 0, 18, 0, 16, 0, 20, 0, 18, 0, 12, 0, 34, 0, 15, 0, 33, 0, 15, 0, 34, 0, 14, 0, 34, 0, 27, 0, 14, 0, 27, 0, 34, 0, 35, 0, 35, 0, 25, 0, 27, 0, 25, 0, 35, 0, 28, 0, 29, 0, 25, 0, 28, 0, 25, 0, 29, 0, 23, 0, 30, 0, 23, 0, 29, 0, 23, 0, 30, 0, 21, 0, 21, 0, 31, 0, 19, 0, 31, 0, 21, 0, 30, 0, 17, 0, 31, 0, 32, 0, 31, 0, 17, 0, 19, 0, 32, 0, 15, 0, 17, 0, 15, 0, 32, 0, 33, 0),
"lods": [0.0354947, PackedByteArray(4, 0, 2, 0, 5, 0, 2, 0, 4, 0, 0, 0, 5, 0, 1, 0, 4, 0, 1, 0, 5, 0, 3, 0, 4, 0, 6, 0, 0, 0, 6, 0, 4, 0, 10, 0, 1, 0, 10, 0, 4, 0, 10, 0, 1, 0, 7, 0, 3, 0, 7, 0, 1, 0, 7, 0, 3, 0, 9, 0, 5, 0, 9, 0, 3, 0, 9, 0, 5, 0, 11, 0, 2, 0, 11, 0, 5, 0, 11, 0, 2, 0, 8, 0, 0, 0, 8, 0, 2, 0, 8, 0, 0, 0, 6, 0, 17, 0, 26, 0, 16, 0, 26, 0, 17, 0, 15, 0, 26, 0, 15, 0, 18, 0, 23, 0, 18, 0, 15, 0, 18, 0, 17, 0, 16, 0, 17, 0, 18, 0, 23, 0, 26, 0, 18, 0, 16, 0, 23, 0, 15, 0, 17, 0)],
"name": "20 - Default",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 36,
"vertex_data": PackedByteArray(0, 0, 105, 59, 247, 255, 0, 0, 255, 255, 105, 59, 247, 255, 0, 0, 0, 0, 255, 255, 247, 255, 0, 0, 255, 255, 255, 255, 247, 255, 0, 0, 255, 127, 105, 59, 247, 255, 0, 0, 255, 127, 255, 255, 247, 255, 0, 0, 0, 0, 105, 59, 12, 39, 0, 0, 255, 255, 105, 59, 12, 39, 0, 0, 0, 0, 255, 255, 12, 39, 0, 0, 255, 255, 255, 255, 12, 39, 0, 0, 255, 127, 105, 59, 12, 39, 0, 0, 255, 127, 255, 255, 12, 39, 0, 0, 8, 139, 166, 174, 232, 224, 0, 0, 75, 101, 166, 174, 159, 219, 0, 0, 75, 101, 0, 0, 159, 219, 0, 0, 8, 139, 0, 0, 232, 224, 0, 0, 68, 167, 166, 174, 78, 164, 0, 0, 68, 167, 0, 0, 78, 164, 0, 0, 117, 169, 166, 174, 86, 73, 0, 0, 117, 169, 0, 0, 86, 73, 0, 0, 81, 144, 166, 174, 72, 5, 0, 0, 81, 144, 0, 0, 72, 5, 0, 0, 148, 106, 166, 174, 0, 0, 0, 0, 148, 106, 0, 0, 0, 0, 0, 0, 88, 78, 166, 174, 153, 60, 0, 0, 88, 78, 0, 0, 153, 60, 0, 0, 39, 76, 166, 174, 145, 151, 0, 0, 39, 76, 0, 0, 145, 151, 0, 0, 141, 91, 0, 0, 7, 76, 0, 0, 106, 111, 0, 0, 118, 33, 0, 0, 243, 137, 0, 0, 34, 37, 0, 0, 158, 155, 0, 0, 240, 84, 0, 0, 15, 154, 0, 0, 224, 148, 0, 0, 58, 134, 0, 0, 118, 191, 0, 0, 178, 107, 0, 0, 202, 187, 0, 0, 9, 90, 0, 0, 232, 139, 0, 0)
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_ub7at"]
resource_name = "screenDoor_网格_060"
_surfaces = [{
"aabb": AABB(-0.101208, -0.0573144, -0.0419822, 0.202415, 0.114629, 0.0839747),
"attribute_data": PackedByteArray(56, 44, 176, 7, 247, 39, 182, 7, 8, 1, 114, 20, 133, 48, 182, 7, 187, 36, 114, 20, 72, 48, 205, 10, 127, 40, 176, 7, 8, 1, 205, 0, 247, 39, 172, 10, 187, 36, 205, 0, 133, 48, 172, 10, 143, 44, 205, 10, 62, 44, 182, 7, 225, 18, 114, 20, 225, 18, 205, 0, 62, 44, 172, 10, 56, 44, 178, 10, 247, 39, 184, 10, 133, 48, 184, 10, 72, 48, 203, 7, 127, 40, 178, 10, 247, 39, 170, 7, 133, 48, 170, 7, 143, 44, 203, 7, 62, 44, 184, 10, 62, 44, 170, 7, 52, 82, 101, 189, 219, 24, 39, 175, 128, 21, 39, 175, 89, 86, 101, 189, 128, 21, 233, 183, 116, 33, 15, 195, 116, 33, 127, 176, 219, 24, 233, 183, 84, 79, 4, 192, 110, 1, 39, 175, 53, 28, 39, 175, 226, 47, 246, 162, 110, 1, 233, 183, 53, 28, 233, 183, 84, 79, 202, 195, 194, 4, 39, 175, 65, 68, 246, 162, 194, 4, 233, 183, 52, 82, 105, 198, 29, 8, 39, 175, 27, 83, 28, 176, 29, 8, 233, 183, 119, 11, 39, 175, 89, 86, 105, 198, 119, 11, 233, 183, 27, 83, 15, 195, 210, 14, 39, 175, 57, 89, 202, 195, 210, 14, 233, 183, 173, 68, 53, 208, 44, 18, 39, 175, 57, 89, 4, 192, 44, 18, 233, 183, 79, 48, 53, 208, 181, 65, 162, 201, 228, 75, 90, 192, 228, 75, 209, 178, 72, 65, 236, 169, 218, 50, 236, 169, 171, 40, 52, 179, 24, 41, 90, 192, 71, 51, 162, 201, 225, 18, 114, 20, 225, 18, 114, 20, 53, 28, 39, 175, 110, 1, 233, 183, 53, 28, 233, 183, 194, 4, 39, 175, 194, 4, 39, 175, 119, 11, 233, 183, 44, 18, 39, 175),
"format": 34896613399,
"index_count": 180,
"index_data": PackedByteArray(13, 0, 7, 0, 14, 0, 7, 0, 13, 0, 2, 0, 4, 0, 14, 0, 9, 0, 14, 0, 4, 0, 13, 0, 12, 0, 17, 0, 1, 0, 17, 0, 12, 0, 24, 0, 11, 0, 19, 0, 5, 0, 19, 0, 11, 0, 23, 0, 15, 0, 22, 0, 10, 0, 22, 0, 15, 0, 25, 0, 0, 0, 20, 0, 6, 0, 20, 0, 0, 0, 16, 0, 3, 0, 24, 0, 12, 0, 24, 0, 3, 0, 18, 0, 8, 0, 25, 0, 15, 0, 25, 0, 8, 0, 21, 0, 33, 0, 28, 0, 27, 0, 28, 0, 33, 0, 30, 0, 39, 0, 27, 0, 36, 0, 27, 0, 39, 0, 33, 0, 41, 0, 38, 0, 35, 0, 38, 0, 41, 0, 43, 0, 47, 0, 41, 0, 45, 0, 41, 0, 47, 0, 43, 0, 48, 0, 47, 0, 45, 0, 47, 0, 48, 0, 50, 0, 50, 0, 52, 0, 54, 0, 52, 0, 50, 0, 48, 0, 54, 0, 56, 0, 58, 0, 56, 0, 54, 0, 52, 0, 30, 0, 56, 0, 28, 0, 56, 0, 30, 0, 58, 0, 63, 0, 65, 0, 64, 0, 63, 0, 66, 0, 65, 0, 67, 0, 61, 0, 60, 0, 66, 0, 61, 0, 67, 0, 66, 0, 62, 0, 61, 0, 63, 0, 62, 0, 66, 0, 44, 0, 53, 0, 49, 0, 44, 0, 57, 0, 53, 0, 57, 0, 26, 0, 29, 0, 44, 0, 26, 0, 57, 0, 26, 0, 40, 0, 34, 0, 44, 0, 40, 0, 26, 0, 66, 0, 32, 0, 65, 0, 32, 0, 66, 0, 31, 0, 66, 0, 59, 0, 31, 0, 59, 0, 66, 0, 67, 0, 67, 0, 55, 0, 59, 0, 55, 0, 67, 0, 60, 0, 61, 0, 55, 0, 60, 0, 55, 0, 61, 0, 51, 0, 62, 0, 51, 0, 61, 0, 51, 0, 62, 0, 46, 0, 46, 0, 63, 0, 42, 0, 63, 0, 46, 0, 62, 0, 37, 0, 63, 0, 64, 0, 63, 0, 37, 0, 42, 0, 64, 0, 32, 0, 37, 0, 32, 0, 64, 0, 65, 0),
"lods": [0.0354947, PackedByteArray(68, 0, 7, 0, 14, 0, 7, 0, 68, 0, 2, 0, 14, 0, 4, 0, 69, 0, 4, 0, 14, 0, 9, 0, 12, 0, 17, 0, 1, 0, 17, 0, 12, 0, 24, 0, 3, 0, 24, 0, 12, 0, 24, 0, 3, 0, 18, 0, 11, 0, 19, 0, 5, 0, 19, 0, 11, 0, 23, 0, 15, 0, 22, 0, 10, 0, 22, 0, 15, 0, 25, 0, 8, 0, 25, 0, 15, 0, 25, 0, 8, 0, 21, 0, 0, 0, 20, 0, 6, 0, 20, 0, 0, 0, 16, 0, 72, 0, 76, 0, 70, 0, 56, 0, 39, 0, 33, 0, 56, 0, 33, 0, 41, 0, 50, 0, 41, 0, 33, 0, 73, 0, 38, 0, 35, 0, 71, 0, 74, 0, 75, 0, 57, 0, 40, 0, 34, 0, 51, 0, 32, 0, 37, 0)],
"material": SubResource("StandardMaterial3D_v2w26"),
"name": "20 - Default",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 77,
"vertex_data": PackedByteArray(0, 0, 105, 59, 247, 255, 84, 213, 0, 0, 105, 59, 247, 255, 255, 191, 0, 0, 105, 59, 247, 255, 255, 127, 255, 255, 105, 59, 247, 255, 255, 191, 255, 255, 105, 59, 247, 255, 255, 127, 255, 255, 105, 59, 247, 255, 84, 213, 0, 0, 255, 255, 247, 255, 84, 213, 0, 0, 255, 255, 247, 255, 255, 127, 0, 0, 255, 255, 247, 255, 255, 191, 255, 255, 255, 255, 247, 255, 255, 127, 255, 255, 255, 255, 247, 255, 255, 191, 255, 255, 255, 255, 247, 255, 84, 213, 255, 127, 105, 59, 247, 255, 255, 191, 255, 127, 105, 59, 247, 255, 255, 127, 255, 127, 255, 255, 247, 255, 255, 127, 255, 127, 255, 255, 247, 255, 255, 191, 0, 0, 105, 59, 12, 39, 84, 213, 0, 0, 105, 59, 12, 39, 255, 191, 255, 255, 105, 59, 12, 39, 255, 191, 255, 255, 105, 59, 12, 39, 84, 213, 0, 0, 255, 255, 12, 39, 84, 213, 0, 0, 255, 255, 12, 39, 255, 191, 255, 255, 255, 255, 12, 39, 255, 191, 255, 255, 255, 255, 12, 39, 84, 213, 255, 127, 105, 59, 12, 39, 255, 191, 255, 127, 255, 255, 12, 39, 255, 191, 8, 139, 166, 174, 232, 224, 85, 254, 8, 139, 166, 174, 232, 224, 162, 141, 75, 101, 166, 174, 159, 219, 91, 146, 75, 101, 166, 174, 159, 219, 83, 254, 75, 101, 0, 0, 159, 219, 91, 146, 75, 101, 0, 0, 159, 219, 207, 211, 8, 139, 0, 0, 232, 224, 7, 212, 8, 139, 0, 0, 232, 224, 162, 141, 68, 167, 166, 174, 78, 164, 222, 254, 68, 167, 166, 174, 78, 164, 162, 173, 68, 167, 166, 174, 78, 164, 162, 173, 68, 167, 0, 0, 78, 164, 220, 211, 68, 167, 0, 0, 78, 164, 162, 173, 68, 167, 0, 0, 78, 164, 162, 173, 117, 169, 166, 174, 86, 73, 58, 254, 117, 169, 166, 174, 86, 73, 162, 205, 117, 169, 0, 0, 86, 73, 86, 212, 117, 169, 0, 0, 86, 73, 162, 205, 81, 144, 166, 174, 72, 5, 65, 254, 81, 144, 166, 174, 72, 5, 162, 237, 81, 144, 0, 0, 72, 5, 252, 211, 81, 144, 0, 0, 72, 5, 162, 237, 148, 106, 166, 174, 0, 0, 91, 242, 148, 106, 166, 174, 0, 0, 83, 254, 148, 106, 0, 0, 0, 0, 91, 242, 148, 106, 0, 0, 0, 0, 46, 212, 88, 78, 166, 174, 153, 60, 91, 210, 88, 78, 166, 174, 153, 60, 131, 254, 88, 78, 0, 0, 153, 60, 91, 210, 88, 78, 0, 0, 153, 60, 27, 212, 39, 76, 166, 174, 145, 151, 91, 178, 39, 76, 166, 174, 145, 151, 90, 254, 39, 76, 0, 0, 145, 151, 91, 178, 39, 76, 0, 0, 145, 151, 215, 211, 141, 91, 0, 0, 7, 76, 21, 212, 106, 111, 0, 0, 118, 33, 52, 212, 243, 137, 0, 0, 34, 37, 18, 212, 158, 155, 0, 0, 240, 84, 74, 212, 15, 154, 0, 0, 224, 148, 236, 211, 58, 134, 0, 0, 118, 191, 22, 212, 178, 107, 0, 0, 202, 187, 234, 211, 9, 90, 0, 0, 232, 139, 224, 211, 255, 127, 105, 59, 247, 255, 194, 136, 255, 127, 105, 59, 247, 255, 24, 142, 68, 167, 166, 174, 78, 164, 97, 159, 68, 167, 0, 0, 78, 164, 252, 196, 68, 167, 0, 0, 78, 164, 97, 159, 117, 169, 166, 174, 86, 73, 11, 197, 117, 169, 166, 174, 86, 73, 18, 209, 148, 106, 0, 0, 0, 0, 113, 247, 39, 76, 166, 174, 145, 151, 164, 162, 84, 85, 170, 170, 0, 0, 255, 127, 255, 127, 255, 255, 0, 0, 255, 127, 255, 127, 255, 255, 170, 170, 84, 85, 84, 85, 170, 170, 255, 127, 255, 255, 254, 255, 255, 127, 255, 127, 255, 255, 255, 255, 255, 127, 170, 170, 84, 85, 0, 0, 255, 127, 255, 127, 255, 255, 255, 127, 255, 255, 254, 255, 255, 127, 84, 85, 170, 170, 0, 0, 255, 127, 0, 0, 255, 127, 170, 170, 84, 85, 84, 85, 170, 170, 255, 255, 255, 127, 255, 255, 255, 127, 170, 170, 84, 85, 0, 0, 255, 127, 254, 255, 255, 127, 232, 192, 210, 1, 255, 127, 0, 0, 255, 127, 255, 255, 233, 192, 212, 1, 255, 127, 255, 255, 115, 83, 69, 86, 186, 83, 34, 86, 255, 127, 0, 0, 158, 192, 61, 1, 255, 127, 0, 0, 255, 127, 0, 0, 132, 83, 61, 86, 255, 127, 0, 0, 255, 127, 0, 0, 246, 192, 238, 1, 255, 127, 0, 0, 29, 84, 240, 85, 255, 127, 0, 0, 242, 192, 231, 1, 255, 127, 0, 0, 172, 83, 41, 86, 255, 127, 0, 0, 255, 127, 255, 255, 233, 192, 212, 1, 255, 127, 255, 255, 235, 83, 9, 86, 255, 127, 255, 255, 207, 192, 160, 1, 255, 127, 255, 255, 211, 83, 21, 86, 255, 127, 255, 255, 229, 192, 204, 1, 255, 127, 255, 255, 126, 83, 64, 86, 203, 83, 25, 86, 243, 83, 5, 86, 200, 83, 27, 86, 14, 84, 248, 85, 152, 83, 51, 86, 205, 83, 24, 86, 150, 83, 52, 86, 137, 83, 58, 86, 255, 127, 254, 255, 255, 127, 0, 0, 255, 127, 0, 0, 238, 92, 137, 61, 255, 127, 0, 0, 255, 127, 0, 0, 250, 113, 234, 33, 200, 208, 163, 42, 255, 127, 255, 255)
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_5y5yp")
[sub_resource type="BoxShape3D" id="BoxShape3D_lefsu"]
[sub_resource type="ArrayMesh" id="ArrayMesh_mnw5j"]
_surfaces = [{
"aabb": AABB(-0.123623, -0.0377295, -0.0186467, 0.247246, 0.075459, 0.0372938),
@ -262,23 +226,13 @@ _data = {
[node name="screenDoor" type="Node3D"]
script = ExtResource("1_nse1y")
[node name="LCB" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.75579, 2.92652, -7.30781)
mesh = SubResource("ArrayMesh_ub7at")
skeleton = NodePath("")
[node name="LCB_Area3D" type="Area3D" parent="LCB"]
transform = Transform3D(0.207, 0, 0, 0, 0.125, 0, 0, 0, 0.205, 0, 0.00459647, 0)
script = ExtResource("2_lbd6y")
[node name="CollisionShape3D" type="CollisionShape3D" parent="LCB/LCB_Area3D"]
shape = SubResource("BoxShape3D_lefsu")
[node name="MTD" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.1674, 2.99429, -7.28448)
mesh = SubResource("ArrayMesh_1manj")
skeleton = NodePath("")
[node name="LCB" parent="." instance=ExtResource("4_t5qy2")]
[node name="left" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.58188, 1.85015, -7.5197)
mesh = SubResource("ArrayMesh_5x0nn")
@ -301,10 +255,4 @@ libraries = {
"": SubResource("AnimationLibrary_u6vct")
}
[node name="Label3D" type="Label3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.75486, 2.94432, -7.258)
text = "LCB"
font_size = 13
[connection signal="mouse_entered" from="LCB/LCB_Area3D" to="LCB/LCB_Area3D" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="LCB/LCB_Area3D" to="LCB/LCB_Area3D" method="_on_mouse_exited"]
[connection signal="clickLcbSignal" from="LCB" to="." method="_on_lcb_click"]