示例#1
0
        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);
        }
示例#2
0
        public static void InspectVarsToggleCursor()
        {
            ConsoleVarDlg ConsoleVarDlg = "ConsoleVarDlg";

            ConsoleVarDlg["noCursor"] = (!(ConsoleVarDlg["noCursor"].AsBool())).AsString();
        }