예제 #1
0
        public override void OnButtonPress()
        {
            this.resetDrawing();
            string configPath = JsonSettings.GetSettingsFilePath(Core.Me.Name, "OverlayMod.yaml");

            loadConfig(configPath);
        }
예제 #2
0
 public MainSettings() : base(JsonSettings.GetSettingsFilePath(textArray1))
 {
     string[] textArray1 = new string[] { Configuration.Instance.Name, string.Format("{0}.json", "Main") };
     if (this.list_0 == null)
     {
         List <string> list1 = new List <string> {
             "Stats"
         };
         this.list_0 = list1;
     }
     if (this.observableCollection_0 == null)
     {
         this.observableCollection_0 = new ObservableCollection <CustomDeckCache>();
     }
 }
예제 #3
0
 public GlobalSettings() : base(JsonSettings.GetSettingsFilePath(textArray1))
 {
     string[] textArray1 = new string[] { "Global", "GlobalSettings.json" };
     if (this.Configurations == null)
     {
         List <string> list1 = new List <string> {
             "Default"
         };
         this.Configurations = list1;
         this.string_2       = "Default";
     }
     if (this.Configurations.Count == 0)
     {
         this.Configurations.Add("Default");
         this.string_2 = "Default";
     }
 }
예제 #4
0
        public override void OnEnabled()
        {
            this.resetDrawing();

            // load Config.
            string configPath;

            try
            {
                configPath = JsonSettings.GetSettingsFilePath(Core.Me.Name, "OverlayMod.yaml");
            }
            catch (Exception)
            {
                configPath = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "settings", "OverlayMod.yaml");
            }

            loadConfig(configPath);

            Task.Factory.StartNew(RunRenderForm, TaskCreationOptions.LongRunning);

            _hotkeyId1 = HotKeyManager.RegisterHotKey(Keys.O, KeyModifiers.Shift | KeyModifiers.Alt);
            _hotkeyId2 = HotKeyManager.RegisterHotKey(Keys.I, KeyModifiers.Shift | KeyModifiers.Alt);
            HotKeyManager.HotKeyPressed += HotKeyManager_HotKeyPressed;
        }
예제 #5
0
 public DevSettings() : base(JsonSettings.GetSettingsFilePath(textArray1))
 {
     string[] textArray1 = new string[] { Configuration.Instance.Name, string.Format("{0}.json", "Dev") };
 }
 internal NewDefaultBotSettings() : base(JsonSettings.GetSettingsFilePath(textArray1))
 {
     string[] textArray1 = new string[] { Configuration.Instance.Name, string.Format("{0}.json", "NewDefaultBot") };
 }
예제 #7
0
 public static string GetFileNameFor(long id)
 {
     string[] subPathParts = new string[] { Configuration.Instance.Name, "CustomDecks", string.Format("{0}.json", id) };
     return(JsonSettings.GetSettingsFilePath(subPathParts));
 }
 internal DefaultBotSettings() : base(JsonSettings.GetSettingsFilePath(textArray1))
 {
     this.int_0 = 0x3a98;
     this.int_1 = 0x7530;
     string[] textArray1 = new string[] { Configuration.Instance.Name, string.Format("{0}.json", "DefaultBot") };
 }