cleanup console stuff
This commit is contained in:
@@ -147,67 +147,6 @@ public class ConsoleScript : Script
|
||||
consoleInputBox.Location = locationFix; // workaround to UIControl.Control overriding the old position
|
||||
}
|
||||
|
||||
#if false
|
||||
//for (int i = 0; i < 10; i++)
|
||||
{
|
||||
string[] teststr = {
|
||||
/*
|
||||
"...loading 'scripts/devilpunch.shader'",
|
||||
"...loading 'scripts/mkoxide.shader'",
|
||||
"...loading 'scripts/cpm22.shader'",
|
||||
"...loading 'scripts/cpm27.shader'",
|
||||
"...loading 'scripts/island.shader'",
|
||||
"...loading 'scripts/noodtex3.shader'",
|
||||
"...loading 'scripts/nood_cosdglass.shader'",
|
||||
"...loading 'scripts/nood_fog_1000.shader'",
|
||||
"...loading 'scripts/nood_lightbeams.shader'",
|
||||
"...loading 'scripts/nood_nightsky_nolight.shader'",
|
||||
"Rescanning shaders",
|
||||
@"Raw input type 0: [0] \\?\HID#VID_046D&PID_C231#2&229a2ea&0&0000#",
|
||||
@"Raw input type 0: [18] \\?\HID#VID_046D&PID_C539&MI_01&Col01#8&24523410&0&0000#",
|
||||
@"Raw input type 0: [19] \\?\HID#VID_28DE&PID_1102&MI_01#8&2fb9bb60&0&0000#",
|
||||
@"Raw input type 0: [20] \\?\HID#VID_04D9&PID_A131&MI_02&Col01#8&197f95af&0&0000#",
|
||||
"Raw input: initialized with 5 mice and 0 keyboards",
|
||||
"WASAPI: overriding channels",
|
||||
"WASAPI: 2 channel 32bit 48000khz non-exclusive",
|
||||
"WASAPI: requested periodicity: 128, default: 480, min: 128, max: 480, step: 16",
|
||||
"WASAPI: Low latency mode enabled",
|
||||
"WASAPI: buffer size: 280",
|
||||
"OpenGL renderer initialized",
|
||||
"video restart took 0.291480 seconds",
|
||||
"main thread video restart took 0.291798 secs",
|
||||
"[------ Goake Initialized ------]",
|
||||
"Initializing menu.dat",
|
||||
"Couldn't load sound/ambience/water1.wav",
|
||||
"Couldn't load sound/ambience/wind2.wav",
|
||||
"Couldn't load sound/misc/menu2.wav",
|
||||
"Couldn't load sound/misc/menu3.wav",
|
||||
"]cl_maxfps 120",
|
||||
"a very very very long long long line in repeat a very very very long long long line in repeat a very very very long long long line in repeat a very very very long long long line in repeat a very very very long long long line in repeat a very very very long long long line in repeat"
|
||||
*/
|
||||
"Warning: Unsupported entity field 'light'",
|
||||
"Warning: Unsupported entity field '_keeplights'",
|
||||
"Warning: Unsupported entity field 'light'",
|
||||
"Warning: Unsupported entity field '_keeplights'",
|
||||
"Warning: Unsupported entity field 'light'",
|
||||
"Warning: Unsupported entity field '_keeplights'",
|
||||
"Warning: Unsupported entity field 'light'",
|
||||
"Warning: Unsupported entity field '_keeplights'",
|
||||
"maps/aerowalk.bsp: Using lightmap format E5BGR9_UF",
|
||||
"maps/devbox.bsp: Using lightmap format E5BGR9_UF",
|
||||
"what",
|
||||
"Game mode changed to: Free For All",
|
||||
"what",
|
||||
"641 additional FS searches",
|
||||
"fixangle frame: 1427",
|
||||
"Couldn't load sound/ambience/wind2.wav",
|
||||
"Couldn't load sound/ambience/water1.wav"
|
||||
};
|
||||
|
||||
foreach (var l in teststr)
|
||||
Console.Print(l);
|
||||
}
|
||||
#endif
|
||||
/*FlaxEditor.Editor.Options.OptionsChanged += (FlaxEditor.Options.EditorOptions options) =>
|
||||
{
|
||||
|
||||
@@ -283,7 +222,7 @@ public class ConsoleScript : Script
|
||||
|
||||
if (Input.InputText.Length > 0)
|
||||
{
|
||||
// Really need rawinput support with separate ActionConfig.RawKey values, bound to physical keys/scancode instead of virtual ones
|
||||
// TODO: Remove when engine has support for binding to physical keys/scancode instead of virtual ones
|
||||
var consoleKeys = Input.ActionMappings.Where(x => x.Name == "Console" && x.Key != KeyboardKeys.None);
|
||||
bool backslash = consoleKeys.Any(x => x.Key == KeyboardKeys.Backslash);
|
||||
bool backquote = consoleKeys.Any(x => x.Key == KeyboardKeys.BackQuote);
|
||||
@@ -299,7 +238,9 @@ public class ConsoleScript : Script
|
||||
if (backslash && (Input.InputText.ToLowerInvariant().Contains('\\') ||
|
||||
Input.InputText.ToLowerInvariant()
|
||||
.Contains('|'))) // US/International keyboard layouts
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!consoleInputBox.IsFocused)
|
||||
|
||||
Reference in New Issue
Block a user