Definition at line 40 of file AVR_DevConsoleWindow.cs. 69 scrollPos = EditorGUILayout.BeginScrollView(scrollPos, false, true, GUILayout.Height(Screen.height - 85), GUILayout.Width(Screen.width - 10));
76 cmd_string = EditorGUILayout.TextField(cmd_string, s0, GUILayout.Height(20), GUILayout.Width(Screen.width - 10));
81 // This big "refocus" mess is here because for cmd_string="" to actually register, the textarea HAS to be out of focus for a coupla of frames.
82 // To accomplish this, we switch focus away with "GUIUtility.keyboardControl = 0", then 2 frames later (refocus>3) we focus back on the InputField with GUI.FocusControl("InputField")
83 // This way, the input-textarea actually clears when we run a command, but gets refocused so the user may input another command immediately aferwards.
string cmd_string Definition: AVR_DevConsoleWindow.cs:11 void ScrollToBottom() Definition: AVR_DevConsoleWindow.cs:22 Vector2 scrollPos Definition: AVR_DevConsoleWindow.cs:12 |