private void InitializeVariables() { // BackgroundWorker setFreeBytes = new BackgroundWorker(); setFreeBytes.WorkerSupportsCancellation = true; setFreeBytes.DoWork += new DoWorkEventHandler(setFreeBytes_DoWork); setFreeBytes.RunWorkerCompleted += new RunWorkerCompletedEventHandler(setFreeBytes_RunWorkerCompleted); // Variables parser = ParserMain.Instance; DTEStrByte = Model.DTEStr(true); DTEStrText = Model.DTEStr(false); DialoguePreview = new DialoguePreview(); dialogueTileset = new DialogueTileset(Fonts.Model.Palette_Dialogue); // Set option triangle image int[] optionPixels = fontTriangle[0].GetPixels(fontPalette.Palettes[1]); option.Image = Do.PixelsToImage(optionPixels, 8, 16); }
private void InitializeVariables() { this.parser = new ParserMain(); }
// Constructor public Dialogue(int index) { this.Index = index; this.parser = ParserMain.Instance; ReadFromROM(); }