From 048f640115b79c32ded8467edac1ebecffdbfc9d Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Thu, 30 May 2024 16:45:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B4=A7=E6=80=A5=E5=81=9C=E8=BD=A6=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E9=97=AE=E9=A2=98=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UI/JJTC/JJTC_Left_Rotate.gd | 3 +++ UI/JJTC/JJTC_Right_Rotate.gd | 3 +++ UI/JJTC/jjlc.tscn | 1 + 3 files changed, 7 insertions(+) diff --git a/UI/JJTC/JJTC_Left_Rotate.gd b/UI/JJTC/JJTC_Left_Rotate.gd index 5d98182..55a5a7e 100644 --- a/UI/JJTC/JJTC_Left_Rotate.gd +++ b/UI/JJTC/JJTC_Left_Rotate.gd @@ -14,6 +14,8 @@ func test_enter(): return self.get_rect().has_point(to_local(mouse_position)) func _input(event): + if self.visible == false: + return if event is InputEventMouseMotion: var flag1 = test_enter() if flag1: @@ -33,3 +35,4 @@ func _input(event): self.hide() $"../JJTC_Key".hide() $"..".pullOutKey() + $"../JJTC_Button".hide() diff --git a/UI/JJTC/JJTC_Right_Rotate.gd b/UI/JJTC/JJTC_Right_Rotate.gd index 529cd0c..99bb0d6 100644 --- a/UI/JJTC/JJTC_Right_Rotate.gd +++ b/UI/JJTC/JJTC_Right_Rotate.gd @@ -14,6 +14,8 @@ func test_enter(): return self.get_rect().has_point(to_local(mouse_position)) func _input(event): + if self.visible == false: + return if event is InputEventMouseMotion: var flag1 = test_enter() if flag1: @@ -31,6 +33,7 @@ func _input(event): if !$"..".allowHandle : return $"../PanelContainer/VBoxContainer/MarginContainer/JJTC_Box".jjtc_state = $"../PanelContainer/VBoxContainer/MarginContainer/JJTC_Box".JJTC_STATE.OPEN + $"../JJTC_Button".show() $"../JJTC_Box_Voice".play() $"../JJTC_Key".hide() self.hide() diff --git a/UI/JJTC/jjlc.tscn b/UI/JJTC/jjlc.tscn index f278a2b..884dd56 100644 --- a/UI/JJTC/jjlc.tscn +++ b/UI/JJTC/jjlc.tscn @@ -36,6 +36,7 @@ layout_mode = 2 script = ExtResource("1_sa7p7") [node name="JJTC_Button" type="TextureRect" parent="."] +visible = false offset_left = 230.0 offset_top = 202.0 offset_right = 320.0