public SequenceEditor() { if (string.IsNullOrEmpty(ME3Directory.cookedPath)) { MessageBox.Show("This tool requires ME3 to be installed. Set its path at:\n Options > Set Custom Path > Mass Effect 3"); this.Close(); return; } InitializeComponent(); graphEditor.BackColor = Color.FromArgb(167, 167, 167); zoomController = new ZoomController(graphEditor); if (SText.fontcollection == null) { SText.LoadFont("KismetFont.ttf"); } if (File.Exists(ME3Directory.cookedPath + @"\SequenceViews\SequenceEditorOptions.JSON")) { Dictionary <string, object> options = JsonConvert.DeserializeObject <Dictionary <string, object> >(File.ReadAllText(ME3Directory.cookedPath + @"\SequenceViews\SequenceEditorOptions.JSON")); if (options.ContainsKey("AutoSave")) { autoSaveViewToolStripMenuItem.Checked = (bool)options["AutoSave"]; } if (options.ContainsKey("OutputNumbers")) { showOutputNumbersToolStripMenuItem.Checked = (bool)options["OutputNumbers"]; } if (options.ContainsKey("GlobalSeqRefView")) { useGlobalSequenceRefSavesToolStripMenuItem.Checked = (bool)options["GlobalSeqRefView"]; } SObj.OutputNumbers = showOutputNumbersToolStripMenuItem.Checked; } }
public SequenceEditor() { InitializeComponent(); graphEditor.BackColor = Color.FromArgb(167, 167, 167); graphEditor.Camera.MouseDown += backMouseDown_Handler; zoomController = new ZoomController(graphEditor); SText.LoadFont(); if (SObj.talkfiles == null) { talkFiles = new ME1Explorer.TalkFiles(); talkFiles.LoadGlobalTlk(); SObj.talkfiles = talkFiles; } else { talkFiles = SObj.talkfiles; } }