From 9994f69b9ef7e6e1a2d630e4362059aec6bd583a Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Tue, 4 Jun 2024 15:20:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A5=E9=AA=A4=E6=8F=90=E7=A4=BApsl?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E7=B2=97=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trainings/trainTip.gd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/trainings/trainTip.gd b/trainings/trainTip.gd index 1d957ea..6638acd 100644 --- a/trainings/trainTip.gd +++ b/trainings/trainTip.gd @@ -34,6 +34,11 @@ func _on_panel_container_resized(): func computed_position(): var position = $"../total".allClickEquipmentPostion($"..".stepOperation[$"..".stepOperationIndex]) + if $"..".stepOperation[$"..".stepOperationIndex] in ['PSLAllowLeftRotate','PSLAllowRightRotate','InterlockReleaseSwitchLeftRotate','InterlockReleaseSwitchRightRotate','CloseDoorButton','OpenDoorButton','LightTestButton','trainDepartsButton','interconnectedCloseButton','interconnectedOpenButton','removePSLKeyOfWindowPsl','removeHSJCKeyOfWindowPsl']: + $PanelContainer.theme = left_theme_resource + position.x = position.x - $PanelContainer.size.x + 10 + position.y = position.y - $PanelContainer.size.y - 10 + return position if position.x - $PanelContainer.size.x < 0: position.x = position.x - 10 position.y = position.y + 10