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 override void onClick(string SelectedidString) { GuiTextEditCtrl txtFilter = "txtFilter"; string filter = txtFilter.getText().Trim(); if (!filter.EndsWith("*")) { filter += "*"; } GuiVariableInspector GuiVariableInspector = "ConsoleVarInspector"; GuiVariableInspector.loadVars(filter); }