void LoadResources() { // Get background image and store base palette ImgFile img = new ImgFile(Path.Combine(DaggerfallUnity.Arena2Path, backgroundFile), FileUsage.UseMemory, true); backgroundBitmap = img.GetDFBitmap(0, 0); basePalette = backgroundBitmap.Palette; // Get scroll images and set palette GfxFile scroll0 = new GfxFile(Path.Combine(DaggerfallUnity.Arena2Path, scroll0File), FileUsage.UseMemory, true); GfxFile scroll1 = new GfxFile(Path.Combine(DaggerfallUnity.Arena2Path, scroll1File), FileUsage.UseMemory, true); scroll0.Palette = basePalette; scroll1.Palette = basePalette; // Build color buffers for all scroll frames ahead of time scrollFrames = new ScrollFrame[scrollFrameCount]; for (int frame = 0; frame < scrollFrameCount; frame++) { if (frame < 8) { scrollFrames[frame].colors = scroll0.GetColor32(0, frame); } else { scrollFrames[frame].colors = scroll1.GetColor32(0, frame - 8); } } }