예제 #1
0
        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);
        }
예제 #2
0
 private void InitializeVariables()
 {
     this.parser = new ParserMain();
 }
예제 #3
0
 // Constructor
 public Dialogue(int index)
 {
     this.Index  = index;
     this.parser = ParserMain.Instance;
     ReadFromROM();
 }