コード例 #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 override void onClick(string SelectedidString)
            {
                GuiTextEditCtrl txtFilter = "txtFilter";
                string          filter    = txtFilter.getText().Trim();

                if (!filter.EndsWith("*"))
                {
                    filter += "*";
                }
                GuiVariableInspector GuiVariableInspector = "ConsoleVarInspector";

                GuiVariableInspector.loadVars(filter);
            }