From 3903f86cb1a4c2662cfdf611a0325bef058fb6f8 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Sun, 28 Apr 2024 18:03:50 +0800 Subject: [PATCH] =?UTF-8?q?lcb=E5=A2=9E=E5=8A=A0=E6=8B=94=E9=92=A5?= =?UTF-8?q?=E5=8C=99=E7=9A=84=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/LCB旋钮.png | Bin 5720 -> 5184 bytes Assets/LCB旋钮.png.import | 2 +- UI/LCB/lcb.gd | 1 - UI/LCB/lcb.tscn | 19 +++++++++++++------ UI/station_keys/station_keys_window.gd | 1 + 5 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Assets/LCB旋钮.png b/Assets/LCB旋钮.png index be144689197d82dca564c7ea6e0ab8034fe5c447..d767fd86b7022c08b9a24a53c016bf4890e8743e 100644 GIT binary patch delta 2196 zcma);Yd8}O8^@>3tRklzBFtKHnwZg?!!R;5ky8#ELa4+{J!=`t;T1EQLpgVFN<_{% zEhcAKhP=)mVZAxUljLz-@0a)a_I|kk|LcEUzw5s4Z~vRC-lnXW;9zGZbWG+L000oO z#$xb?jyxQH2>4JFpdAi$MX4i##43F(@Hi5EMN3y7iPYE8W+Vfl|H$<~G+fWmpMcc# zy@1e05%drQT@(tTcfnT&;iHSzL=(_NKctox<0MEGjwWd9q5XBW5k8tahYSIwi$EiZ zXoRk&&mrRHgVOZ%e@g&?z>ItW-T!Z`JXrD{_n3hF-#Q#~XMB^=bTquZU0L5qk&|CjvIY!Wr@z`p>hpea?F{7D%?rGmX9KHy zeLH{N+q{;mMYWWF)Wzs7j)N*J;~O`y=Dhda(d_^v+^f)|ZA&VHHT+*es8Kd757m1brw1%diPC zj@t0$X;+L5Xd{h`a2nSdx1#b*0dtVkSK?i$>YqWhkg%|{UtxG-Qa3*!1S z3WWmCu&rp%(nz)}^4;65U)8Fz*5H*8#iG_1nb@T+Au(Q(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b33c2a 100644 --- a/Assets/LCB旋钮.png.import +++ b/Assets/LCB旋钮.png.import @@ -2,7 +2,7 @@ importer="texture" type="CompressedTexture2D" -uid="uid://cpukjt3o0dk41" +uid="uid://b71j1cvmaukrv" path="res://.godot/imported/LCB旋钮.png-d401168d919d90772072acbb06bfa0df.ctex" metadata={ "vram_texture": false diff --git a/UI/LCB/lcb.gd b/UI/LCB/lcb.gd index 3e12e48..2fe6912 100644 --- a/UI/LCB/lcb.gd +++ b/UI/LCB/lcb.gd @@ -82,7 +82,6 @@ func _on_open_key_window_mouse_exited() -> void: ##拔钥匙相关 func _on_texture_rect_2_gui_input(event: InputEvent) -> void: - return if event.button_mask == MouseButtonMask.MOUSE_BUTTON_MASK_LEFT: hideHandleKey() $"../stationKeys".showKeyAfterRemoveKey(currenScreenDoor.lcbKey.keyName) diff --git a/UI/LCB/lcb.tscn b/UI/LCB/lcb.tscn index 478ed89..745fff5 100644 --- a/UI/LCB/lcb.tscn +++ b/UI/LCB/lcb.tscn @@ -3,7 +3,7 @@ [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="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="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"] @@ -147,11 +147,18 @@ texture = ExtResource("3_g3cqx") stretch_mode = 5 [node name="TextureRect2" type="TextureRect" parent="."] -offset_left = 72.0 -offset_top = 72.0 -offset_right = 328.0 -offset_bottom = 328.0 -pivot_offset = Vector2(128, 128) +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +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") [node name="Label" type="Label" parent="."] diff --git a/UI/station_keys/station_keys_window.gd b/UI/station_keys/station_keys_window.gd index 7011150..a6a325c 100644 --- a/UI/station_keys/station_keys_window.gd +++ b/UI/station_keys/station_keys_window.gd @@ -41,6 +41,7 @@ func _on_button_pressed(): func showKeyAfterRemoveKey(keyName): $PanelContainer/VBoxContainer/GridContainer.find_child(keyName).show_key() + $AudioStreamPlayer.play() current_lcb_keyname = ''