public void ContainerCleanup() { BeatmapActionContainer.RemoveAllActionsOfType <BeatmapAction>(); TestUtils.CleanupNotes(); TestUtils.CleanupEvents(); TestUtils.CleanupObstacles(); }
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(); }
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)); } }
public void ContainerCleanup() { BeatmapActionContainer.RemoveAllActionsOfType <BeatmapAction>(); TestUtils.CleanupBPMChanges(); }