private void SwipeOptions() { _swipeManager = _target.swipeOptions; _showSwipeOptions = EditorGUILayout.Foldout(_showSwipeOptions, "Swipe Options"); if (!_showSwipeOptions) { return; } EditorGUILayout.BeginVertical("Box"); _swipeManager.swipeDirection = (SwipeManager.swDirection)EditorGUILayout.EnumPopup("Swipe Direction", _swipeManager.swipeDirection); _swipeManager.fingersNeed = EditorGUILayout.IntSlider("Fingers need", _swipeManager.fingersNeed, 1, 4); _swipeManager.openConsoleKey = (KeyCode)EditorGUILayout.EnumPopup( new GUIContent("Open Console Key", "The key used to open the console"), _swipeManager.openConsoleKey); EditorGUILayout.EndVertical(); }
public void init(SwipeManager swipe, bool minifyOnStart, int logLimit, string defaultMail) { openConsoleSettings = swipe; guiManager = new ConsoleGuiManager( logScroll.transform.parent.GetComponent <ScrollRect>(), logDetail, popup, logLimit); detailInformation = popUpDetail.GetChild(0).GetChild(0).GetComponent <Text>(); CleanConsole(); logSection = logScroll.transform.parent; actionSection = actionButtons.actionsContainer.transform.parent.parent; GameConsole.listUpdated += AddListElement; GameConsole.consoleMessage += WriteToConsole; GetComponent <ConsoleOutput>().init(this); _minifiedConsole = minifyOnStart; DefaultMailDirectory = defaultMail; if (!Debug.isDebugBuild) { Debug.LogWarning("This isn't a development build! You won't be able to read the stack trace!"); } }