步骤提示psl问题粗解决

This commit is contained in:
joylink_zhaoerwei 2024-06-04 15:20:33 +08:00
parent 20cb115869
commit 9994f69b9e

View File

@ -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