public static void InspectVars(string filter = "*") { MenuHandlers.EditorHelpMenu DiagnosticMenu = "DiagnosticMenu"; GuiTextEditCtrl txtFilter = "txtFilter"; txtFilter.setText(filter); ConsoleVarDlg ConsoleVarDlg = "ConsoleVarDlg"; if (!ConsoleVarDlg.isAwake()) { ((GuiCanvas)"Canvas").pushDialog("ConsoleVarDlg", 100); DiagnosticMenu.checkItem(2, true); } else { if (((GuiWindowCtrl)"ConsoleVarDlgWindow").isInPopup) { ((GuiWindowCtrl)"ConsoleVarDlgWindow").ClosePopOut(); } ((GuiCanvas)"Canvas").popDialog("ConsoleVarDlg"); DiagnosticMenu.checkItem(2, false); } GuiVariableInspector GuiVariableInspector = "ConsoleVarInspector"; GuiVariableInspector.loadVars(filter); }
public static void InspectVarsToggleCursor() { ConsoleVarDlg ConsoleVarDlg = "ConsoleVarDlg"; ConsoleVarDlg["noCursor"] = (!(ConsoleVarDlg["noCursor"].AsBool())).AsString(); }