/// <summary> /// Opens menu for adding joints /// </summary> /// <param name="actionPoint"></param> public void ShowMenu(Base.ActionPoint actionPoint) { CurrentActionPoint = actionPoint; NameInput.text = CurrentActionPoint.GetFreeOrientationName(); UpdateMenu(); SideMenu.Open(); }
/// <summary> /// Opens menu for adding joints /// </summary> /// <param name="actionPoint"></param> public void ShowMenu(Base.ActionPoint actionPoint) { CurrentActionPoint = actionPoint; NameInput.text = CurrentActionPoint.GetFreeOrientationName(); UpdateMenu(); gameObject.SetActive(true); }
public void ShowAddOrientationDialog() { inputDialog.Open("Create new named orientation", "Please set name of the new orientation", "Name", CurrentActionPoint.GetFreeOrientationName(), () => AddOrientation(inputDialog.GetValue(), (string)RobotsList.GetValue()), () => inputDialog.Close()); }
public async void AddDefaultOrientation() { try { name = CurrentActionPoint.GetFreeOrientationName(); await WebsocketManager.Instance.AddActionPointOrientation(CurrentActionPoint.Data.Id, new Orientation(), name); Notifications.Instance.ShowToastMessage("Orientation added successfully"); } catch (RequestFailedException ex) { Notifications.Instance.ShowNotification("Failed to add new orientation", ex.Message); } }
public void ShowMenu(Base.ActionPoint actionPoint, bool manualMode) { ManualMode = manualMode; CurrentActionPoint = actionPoint; ManualModeBlock.SetActive(ManualMode); NameInput.text = CurrentActionPoint.GetFreeOrientationName(); OrientationManualEdit.SetOrientation(new Orientation()); UpdateMenu(); gameObject.SetActive(true); }
public void ShowMenu(Base.ActionPoint actionPoint, bool manualMode) { ManualMode = manualMode; CurrentActionPoint = actionPoint; ManualModeBlock.SetActive(ManualMode); LiteModeBlock.SetActive(!ManualMode); NameInput.text = CurrentActionPoint.GetFreeOrientationName(); /* * QuaternionX.text = "0"; * QuaternionY.text = "0"; * QuaternionZ.text = "0"; * QuaternionW.text = "1"; */ OrientationManualEdit.SetOrientation(new Orientation()); UpdateMenu(); SideMenu.Open(); }