Exemple #1
0
        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;
            }
        }
Exemple #2
0
        public InterpEditor()
        {
            SText.LoadFont();
            InitializeComponent();
            timeline.Scrollbar            = vScrollBar1;
            timeline.GroupList.ScrollbarH = hScrollBar1;
            timeline.GroupList.tree1      = treeView1;
            timeline.GroupList.tree2      = treeView2;

            objects = new List <int>();
        }
 public InterpEditor()
 {
     if (SText.fontcollection == null)
     {
         SText.LoadFont("KismetFont.ttf");
     }
     InitializeComponent();
     timeline.Scrollbar            = vScrollBar1;
     timeline.GroupList.ScrollbarH = hScrollBar1;
     timeline.GroupList.tree1      = treeView1;
     timeline.GroupList.tree2      = treeView2;
     BitConverter.IsLittleEndian   = true;
     objects = new List <int>();
 }