Example #1
0
        public static void Update()
        {
            // If screenshotKey is pressed, take a screenshot
            if (InputManager.PressedKeys.Contains(screenshotKey))
            {
                try
                {
                    if (!pressedAlready)
                    {
                        TakeScreenshot();
                    }
                }
                catch (Exception e)
                {
                    PulsarcLogger.Warning(e.ToString());
                }

                pressedAlready = true;
            }
            // Won't get called until screenshot key is released.
            else if (pressedAlready)
            {
                pressedAlready = false;
            }
        }
Example #2
0
 public static void SaveConfig()
 {
     Parser.WriteFile("config.ini", Get);
     PulsarcLogger.Important("Saved config", LogType.Runtime);
 }
Example #3
0
 public static void SetValue(string category, string key, object value)
 {
     PulsarcLogger.Important($"Set {category} {key} to {value.ToString()}", LogType.Runtime);
     Get[category][key] = value.ToString();
 }