Esempio n. 1
0
            // Token: 0x06001939 RID: 6457 RVA: 0x0006CEAC File Offset: 0x0006B0AC
            public override void SetString(string newValue)
            {
                try
                {
                    FullScreenMode fullScreenMode = FullScreenMode.ExclusiveFullScreen;
                    switch ((SettingsConVars.WindowModeConVar.WindowMode)Enum.Parse(typeof(SettingsConVars.WindowModeConVar.WindowMode), newValue, true))
                    {
                    case SettingsConVars.WindowModeConVar.WindowMode.Fullscreen:
                        fullScreenMode = FullScreenMode.FullScreenWindow;
                        break;

                    case SettingsConVars.WindowModeConVar.WindowMode.Window:
                        fullScreenMode = FullScreenMode.Windowed;
                        break;

                    case SettingsConVars.WindowModeConVar.WindowMode.FullscreenExclusive:
                        fullScreenMode = FullScreenMode.ExclusiveFullScreen;
                        break;
                    }
                    Screen.fullScreenMode = fullScreenMode;
                }
                catch (ArgumentException)
                {
                    Console.ShowHelpText(this.name);
                }
            }
        private static void CCFind(ConCommandArgs args)
        {
            if (args.Count == 0)
            {
                Console.ShowHelpText("find");
                return;
            }
            string        text = args[0].ToLower(CultureInfo.InvariantCulture);
            bool          flag = text == "*";
            List <string> list = new List <string>();

            foreach (KeyValuePair <string, BaseConVar> keyValuePair in Console.instance.allConVars)
            {
                if (flag || keyValuePair.Key.ToLower(CultureInfo.InvariantCulture).Contains(text) || keyValuePair.Value.helpText.ToLower(CultureInfo.InvariantCulture).Contains(text))
                {
                    list.Add(keyValuePair.Key);
                }
            }
            foreach (KeyValuePair <string, Console.ConCommand> keyValuePair2 in Console.instance.concommandCatalog)
            {
                if (flag || keyValuePair2.Key.ToLower(CultureInfo.InvariantCulture).Contains(text) || keyValuePair2.Value.helpText.ToLower(CultureInfo.InvariantCulture).Contains(text))
                {
                    list.Add(keyValuePair2.Key);
                }
            }
            list.Sort();
            string[] array = new string[list.Count];
            for (int i = 0; i < list.Count; i++)
            {
                array[i] = Console.GetHelpText(list[i]);
            }
            Debug.Log(string.Join("\n", array));
        }
 private static void CCHelp(ConCommandArgs args)
 {
     if (args.Count == 0)
     {
         Console.instance.SubmitCmd(args.sender, "find \"*\"", false);
         return;
     }
     Console.ShowHelpText(args[0]);
 }
 private static void CCEcho(ConCommandArgs args)
 {
     if (args.Count > 0)
     {
         Debug.Log(args[0]);
         return;
     }
     Console.ShowHelpText(args.commandName);
 }
Esempio n. 5
0
 // Token: 0x06001962 RID: 6498 RVA: 0x0006D3A4 File Offset: 0x0006B5A4
 public override void SetString(string newValue)
 {
     try
     {
         QualitySettings.shadowResolution = (ShadowResolution)Enum.Parse(typeof(ShadowResolution), newValue, true);
     }
     catch (ArgumentException)
     {
         Console.ShowHelpText(this.name);
     }
 }
Esempio n. 6
0
 // Token: 0x0600195E RID: 6494 RVA: 0x0006D320 File Offset: 0x0006B520
 public override void SetString(string newValue)
 {
     try
     {
         QualitySettings.anisotropicFiltering = (AnisotropicFiltering)Enum.Parse(typeof(AnisotropicFiltering), newValue, true);
     }
     catch (ArgumentException)
     {
         Console.ShowHelpText(this.name);
     }
 }
            // Token: 0x060019FD RID: 6653 RVA: 0x0007BE80 File Offset: 0x0007A080
            public override void SetString(string newValue)
            {
                try
                {
                    switch ((SettingsConVars.WindowModeConVar.WindowMode)Enum.Parse(typeof(SettingsConVars.WindowModeConVar.WindowMode), newValue, true))
                    {
                    case SettingsConVars.WindowModeConVar.WindowMode.Fullscreen:
                        Screen.fullScreen = true;
                        break;

                    case SettingsConVars.WindowModeConVar.WindowMode.Window:
                        Screen.fullScreen = false;
                        break;
                    }
                }
                catch (ArgumentException)
                {
                    Console.ShowHelpText(this.name);
                }
            }
Esempio n. 8
0
 // Token: 0x060009DB RID: 2523 RVA: 0x0002AF48 File Offset: 0x00029148
 public override void SetString(string newValue)
 {
     try
     {
         Corpse.DisposalMode disposalMode = (Corpse.DisposalMode)Enum.Parse(typeof(Corpse.DisposalMode), newValue, true);
         if (disposalMode != Corpse.disposalMode)
         {
             Corpse.disposalMode = disposalMode;
             if (disposalMode != Corpse.DisposalMode.Hard && disposalMode == Corpse.DisposalMode.OutOfSight)
             {
                 foreach (Corpse corpse in Corpse.instancesList)
                 {
                     corpse.CollectRenderers();
                 }
             }
         }
     }
     catch (ArgumentException)
     {
         Console.ShowHelpText(this.name);
     }
 }