Exemplo n.º 1
0
 public void ContainerCleanup()
 {
     BeatmapActionContainer.RemoveAllActionsOfType <BeatmapAction>();
     TestUtils.CleanupNotes();
     TestUtils.CleanupEvents();
     TestUtils.CleanupObstacles();
 }
Exemplo n.º 2
0
    public void ObjectWasSelected()
    {
        queuedUpdate = !IsActive;
        if (queuedUpdate)
        {
            return;
        }

        if (!SelectionController.HasSelectedObjects())
        {
            isEditing = false;
            return;
        }
        BeatmapActionContainer.RemoveAllActionsOfType <NodeEditorTextChangedAction>();

        isEditing = true;
        if (!Settings.Instance.NodeEditor_UseKeybind)
        {
            StopAllCoroutines();
            closeButton.gameObject.SetActive(false);
            StartCoroutine(UpdateGroup(true, transform as RectTransform));
            if (firstActive)
            {
                firstActive = false;
                PersistentUI.Instance.DisplayMessage("Mapper", "node.warning", PersistentUI.DisplayMessageType.BOTTOM);
            }
        }

        UpdateJSON();
    }
Exemplo n.º 3
0
 public void OnToggleNodeEditor(InputAction.CallbackContext context)
 {
     if (nodeEditorInputField.isFocused)
     {
         return;
     }
     if (Settings.Instance.NodeEditor_UseKeybind && context.performed && !PersistentUI.Instance.InputBox_IsEnabled)
     {
         StopAllCoroutines();
         if (IsActive)
         {
             CMInputCallbackInstaller.ClearDisabledActionMaps(typeof(NodeEditorController), new[] { typeof(CMInput.INodeEditorActions) });
             CMInputCallbackInstaller.ClearDisabledActionMaps(typeof(NodeEditorController), actionMapsDisabled);
             BeatmapActionContainer.RemoveAllActionsOfType <NodeEditorTextChangedAction>();
         }
         else
         {
             closeButton.gameObject.SetActive(true);
             CMInputCallbackInstaller.DisableActionMaps(typeof(NodeEditorController), actionMapsDisabled);
         }
         StartCoroutine(UpdateGroup(!IsActive, transform as RectTransform));
     }
 }
Exemplo n.º 4
0
 public void ContainerCleanup()
 {
     BeatmapActionContainer.RemoveAllActionsOfType <BeatmapAction>();
     TestUtils.CleanupBPMChanges();
 }