public static void ApplyChangesIfModified() { if (layoutWidth != EMCli.LayoutWidth || layoutHeight != EMCli.LayoutHeight) { EMCli.SetupGUI(layoutWidth, layoutHeight); } }
public static string SendProcessing(this string input, bool bold = false) { ConsoleMessage message = new ConsoleMessage(input.RepaintProcessing(bold), DebugLevel.Info); message.SendToConsole(); EMCli.RefreshLayout(); return(input); }
public static string SendCli(this string input) { ConsoleMessage message = new ConsoleMessage(input, DebugLevel.Debug); message.SendToConsole(); EMCli.RefreshLayout(); return(input); }
public static void Switch() { if (IsOpened = !IsOpened) { EMCli.WindowFunctionMainGUI = WindowFunctionConsoleOptionsGUI; } else { EMCli.SwitchBack(); } }
public static void OnGUI() { GUI.backgroundColor = Color.green; foreach (DebugLevelOption option in DebugLevelOption.DebugLevelOptions) { option.Enabled = GUILayout.Toggle(option.Enabled, option.DebugLevel.ToString()); if (option.NeedRefresh) { EMCli.RefreshLayout(); } } }
public void OnGUI() { if (!FengGameManagerMKII.showHackMenu) { return; } GUI.backgroundColor = new Color(0f, 0f, 0f, 1f); float left = (Screen.width / 2) - 115f; float top = (Screen.height / 2) - 45f; if (GUI.Button(new Rect(left + 13f, top - 120f, 172f, 70f), "Load/spawn...")) { FengGameManagerMKII.instance.StartCoroutine(EMCli.ConnectAndJoinIE(true)); FengGameManagerMKII.showHackMenu = false; } }
public static void OnGUI() { foreach (Command command in CommandHandler.Instance.Commands) { scroll = GUILayout.BeginScrollView(scroll); bool copied = InputLine.inputLine.Equals(command.Name); if (GUILayout.Button(command.Name)) { if (!copied) { InputLine.inputLine = command.Name; } else { InputLine.inputLine = "/help " + command.Name; } } GUILayout.EndScrollView(); } GUILayout.BeginHorizontal(); EMCli.InputGUI(); GUILayout.EndHorizontal(); GUI.DragWindow(); }
public static void FastLoadAndSpawn(Command command) { FengGameManagerMKII.instance.StartCoroutine(EMCli.ConnectAndJoinIE(true)); FengGameManagerMKII.showHackMenu = false; }
public static void TestConnect(Command command) { FengGameManagerMKII.instance.StartCoroutine(EMCli.ConnectAndJoinIE(false)); FengGameManagerMKII.showHackMenu = false; }
public static void ClearCLILayout(Command command) { EMCli.ClearLayout(); }
public static void SwitchDebugLevel(Command command) { EMCli.SwitchDebugLevel((DebugLevel)command.LastArgAsByte); EMCli.RefreshLayout(); }
public static void ClearCLIMessages(Command command) { EMCli.ClearMessages(); EMCli.RefreshLayout(); }
public void SendToConsole() { EMCli.AddMessage(this); }
public static string SendProcessing(this string input, bool bold = false) { EMCli.AddLine(input.RepaintProcessing(bold)); return(input); }
public static string SendError(this string input, bool bold = false) { EMCli.AddLine(input.RepaintError(bold)); return(input); }
public static string SendCli(this string input) { EMCli.AddLine(input); return(input); }