lcb增加拔钥匙的操作
This commit is contained in:
parent
62b2f3e5a5
commit
3903f86cb1
BIN
Assets/LCB旋钮.png
BIN
Assets/LCB旋钮.png
Binary file not shown.
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.1 KiB |
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="CompressedTexture2D"
|
type="CompressedTexture2D"
|
||||||
uid="uid://cpukjt3o0dk41"
|
uid="uid://b71j1cvmaukrv"
|
||||||
path="res://.godot/imported/LCB旋钮.png-d401168d919d90772072acbb06bfa0df.ctex"
|
path="res://.godot/imported/LCB旋钮.png-d401168d919d90772072acbb06bfa0df.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
|
@ -82,7 +82,6 @@ func _on_open_key_window_mouse_exited() -> void:
|
|||||||
|
|
||||||
##拔钥匙相关
|
##拔钥匙相关
|
||||||
func _on_texture_rect_2_gui_input(event: InputEvent) -> void:
|
func _on_texture_rect_2_gui_input(event: InputEvent) -> void:
|
||||||
return
|
|
||||||
if event.button_mask == MouseButtonMask.MOUSE_BUTTON_MASK_LEFT:
|
if event.button_mask == MouseButtonMask.MOUSE_BUTTON_MASK_LEFT:
|
||||||
hideHandleKey()
|
hideHandleKey()
|
||||||
$"../stationKeys".showKeyAfterRemoveKey(currenScreenDoor.lcbKey.keyName)
|
$"../stationKeys".showKeyAfterRemoveKey(currenScreenDoor.lcbKey.keyName)
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
[ext_resource type="Script" path="res://UI/LCB/lcb.gd" id="1_x2nee"]
|
[ext_resource type="Script" path="res://UI/LCB/lcb.gd" id="1_x2nee"]
|
||||||
[ext_resource type="Theme" uid="uid://dn8j4j5ct40v6" path="res://lcb_text.tres" id="2_pno1b"]
|
[ext_resource type="Theme" uid="uid://dn8j4j5ct40v6" path="res://lcb_text.tres" id="2_pno1b"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cmej8kbdhxqss" path="res://Assets/LCB旋钮孔.png" id="3_g3cqx"]
|
[ext_resource type="Texture2D" uid="uid://cmej8kbdhxqss" path="res://Assets/LCB旋钮孔.png" id="3_g3cqx"]
|
||||||
[ext_resource type="Texture2D" uid="uid://cpukjt3o0dk41" path="res://Assets/LCB旋钮.png" id="4_i7jy7"]
|
[ext_resource type="Texture2D" uid="uid://b71j1cvmaukrv" path="res://Assets/LCB旋钮.png" id="4_i7jy7"]
|
||||||
[ext_resource type="Texture2D" uid="uid://b7j3msd4bw0im" path="res://Assets/LCB_Arrow.svg" id="5_l3h46"]
|
[ext_resource type="Texture2D" uid="uid://b7j3msd4bw0im" path="res://Assets/LCB_Arrow.svg" id="5_l3h46"]
|
||||||
[ext_resource type="Script" path="res://UI/LCB/LCB_Right_Rotate.gd" id="6_bg24u"]
|
[ext_resource type="Script" path="res://UI/LCB/LCB_Right_Rotate.gd" id="6_bg24u"]
|
||||||
[ext_resource type="Script" path="res://UI/LCB/LCB_Left_Rotate.gd" id="7_g7j6c"]
|
[ext_resource type="Script" path="res://UI/LCB/LCB_Left_Rotate.gd" id="7_g7j6c"]
|
||||||
@ -147,11 +147,18 @@ texture = ExtResource("3_g3cqx")
|
|||||||
stretch_mode = 5
|
stretch_mode = 5
|
||||||
|
|
||||||
[node name="TextureRect2" type="TextureRect" parent="."]
|
[node name="TextureRect2" type="TextureRect" parent="."]
|
||||||
offset_left = 72.0
|
anchors_preset = 8
|
||||||
offset_top = 72.0
|
anchor_left = 0.5
|
||||||
offset_right = 328.0
|
anchor_top = 0.5
|
||||||
offset_bottom = 328.0
|
anchor_right = 0.5
|
||||||
pivot_offset = Vector2(128, 128)
|
anchor_bottom = 0.5
|
||||||
|
offset_left = -25.0
|
||||||
|
offset_top = -50.0
|
||||||
|
offset_right = 25.0
|
||||||
|
offset_bottom = 52.0
|
||||||
|
grow_horizontal = 2
|
||||||
|
grow_vertical = 2
|
||||||
|
pivot_offset = Vector2(25, 51)
|
||||||
texture = ExtResource("4_i7jy7")
|
texture = ExtResource("4_i7jy7")
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="."]
|
[node name="Label" type="Label" parent="."]
|
||||||
|
@ -41,6 +41,7 @@ func _on_button_pressed():
|
|||||||
|
|
||||||
func showKeyAfterRemoveKey(keyName):
|
func showKeyAfterRemoveKey(keyName):
|
||||||
$PanelContainer/VBoxContainer/GridContainer.find_child(keyName).show_key()
|
$PanelContainer/VBoxContainer/GridContainer.find_child(keyName).show_key()
|
||||||
|
$AudioStreamPlayer.play()
|
||||||
current_lcb_keyname = ''
|
current_lcb_keyname = ''
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user