Beispiel #1
0
 public void OpenAddJointsMenu(bool manual)
 {
     AddOrientationContainer.SetActive(false);
     if (OrientationJointsDetailMenu.IsVisible())
     {
         OrientationJointsDetailMenu.HideMenu();
     }
     ContainerJoints.SetActive(false);
     ContainerOrientations.SetActive(false);
     ContainerPosition.SetActive(false);
     AddJointsMenu.ShowMenu(CurrentActionPoint);
 }
Beispiel #2
0
 public void OpenAddOrientationMenuUsingRobot()
 {
     AddJointsContainer.SetActive(false);
     if (OrientationJointsDetailMenu.IsVisible())
     {
         OrientationJointsDetailMenu.HideMenu();
     }
     ContainerJoints.SetActive(false);
     ContainerOrientations.SetActive(false);
     ContainerPosition.SetActive(false);
     AddOrientationMenu.ShowMenu(CurrentActionPoint, false);
 }
Beispiel #3
0
 public async void OpenDetailMenu(ProjectRobotJoints joint)
 {
     AddOrientationContainer.SetActive(false);
     AddJointsContainer.SetActive(false);
     if (OrientationJointsDetailMenu.IsVisible())
     {
         OrientationJointsDetailMenu.HideMenu();
     }
     ContainerJoints.SetActive(false);
     ContainerOrientations.SetActive(false);
     ContainerPosition.SetActive(false);
     OrientationJointsDetailMenu.ShowMenu(CurrentActionPoint, joint);
 }
Beispiel #4
0
 public void SwitchToJoints()
 {
     AddOrientationContainer.SetActive(false);
     AddJointsContainer.SetActive(false);
     if (OrientationJointsDetailMenu.IsVisible())
     {
         OrientationJointsDetailMenu.HideMenu();
     }
     ContainerOrientations.SetActive(false);
     ContainerPosition.SetActive(false);
     ContainerJoints.SetActive(true);
     State = StateEnum.Joints;
 }
Beispiel #5
0
    public async void OpenDetailMenu(NamedOrientation orientation)
    {
        AddOrientationContainer.SetActive(false);
        AddJointsContainer.SetActive(false);
        if (OrientationJointsDetailMenu.IsVisible())
        {
            OrientationJointsDetailMenu.HideMenu();
        }
        ContainerJoints.SetActive(false);
        ContainerOrientations.SetActive(false);
        ContainerPosition.SetActive(false);
        OrientationJointsDetailMenu.ShowMenu(CurrentActionPoint, orientation);
        APOrientation orientationArrow = CurrentActionPoint.GetOrientationVisual(orientation.Id);

        SceneManager.Instance.SetSelectedObject(orientationArrow.gameObject);
    }
Beispiel #6
0
 /// <summary>
 /// If expert mode is active - opens add orientation side menu in manual mode, otherwise adds default orientation (0,0,0,1)
 /// </summary>
 public void OpenAddOrientationMenuManualDefault()
 {
     if (GameManager.Instance.ExpertMode)
     {
         AddJointsContainer.SetActive(false);
         if (OrientationJointsDetailMenu.IsVisible())
         {
             OrientationJointsDetailMenu.HideMenu();
         }
         ContainerJoints.SetActive(false);
         ContainerOrientations.SetActive(false);
         ContainerPosition.SetActive(false);
         AddOrientationMenu.ShowMenu(CurrentActionPoint, true);
     }
     else
     {
         AddDefaultOrientation();
     }
 }