public override void OnButtonPress() { this.resetDrawing(); string configPath = JsonSettings.GetSettingsFilePath(Core.Me.Name, "OverlayMod.yaml"); loadConfig(configPath); }
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>(); } }
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"; } }
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; }
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") }; }
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") }; }