コード例 #1
0
    public void FocusJoints()
    {
        CustomDropdown jointsDropdown = JointsList.Dropdown;

        if (jointsDropdown.dropdownItems.Count == 0)
        {
            Base.NotificationsModernUI.Instance.ShowNotification("Failed to update joints", "");
            return;
        }
        try {
            Base.GameManager.Instance.UpdateActionPointJoints((string)RobotsList.GetValue(), CurrentActionPoint.GetJoints((string)JointsList.GetValue()).Name);
            Base.NotificationsModernUI.Instance.ShowNotification("Joints updated sucessfully", "");
        } catch (Base.RequestFailedException ex) {
            Base.NotificationsModernUI.Instance.ShowNotification("Failed to update joints", ex.Message);
        }
        UpdateJoints((string)RobotsList.GetValue(), (string)JointsList.GetValue());
    }