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