示例#1
0
        public void Load(string filename)
        {
            string path = Path.Combine(DaggerfallUnity.Instance.Arena2Path, filename);

            if (!flcFile.Load(path))
            {
                return;
            }

            flcTexture            = TextureReader.CreateFromSolidColor(flcFile.Header.Width, flcFile.Header.Height, Color.black, false, false);
            flcTexture.filterMode = (FilterMode)DaggerfallUnity.Settings.MainFilterMode;
        }
示例#2
0
        public void Open(string name)
        {
            string path = Path.Combine(DaggerfallUnity.Instance.Arena2Path, name);

            if (!vidFile.Open(path))
            {
                return;
            }

            vidTexture            = TextureReader.CreateFromSolidColor(vidFile.FrameWidth, vidFile.FrameHeight, Color.black, false, false);
            vidTexture.wrapMode   = TextureWrapMode.Clamp;
            vidTexture.filterMode = (FilterMode)DaggerfallUnity.Settings.VideoFilterMode;
        }
示例#3
0
        public DaggerfallVideo()
            : base()
        {
            // Setup audio player components
            audioPlayer = new GameObject("VIDAudioPlayer");
            audioPlayer.transform.parent = DaggerfallUI.Instance.gameObject.transform;
            for (int i = 0; i < clipQueueLength; i++)
            {
                audioSources[i] = audioPlayer.AddComponent <AudioSource>();
            }
            nextEventTime = AudioSettings.dspTime;

            // Init empty texture
            vidTexture            = TextureReader.CreateFromSolidColor(1, 1, Color.black, false, false);
            vidTexture.wrapMode   = TextureWrapMode.Clamp;
            vidTexture.filterMode = (FilterMode)DaggerfallUnity.Settings.VideoFilterMode;
        }
示例#4
0
        public void Load(string filename)
        {
            flcFile.Transparency     = TransparencyEnabled;
            flcFile.TransparentRed   = tRed;
            flcFile.TransparentGreen = tGreen;
            flcFile.TransparentBlue  = tBlue;

            string path = Path.Combine(DaggerfallUnity.Instance.Arena2Path, filename);

            if (!flcFile.Load(path))
            {
                return;
            }

            flcTexture            = TextureReader.CreateFromSolidColor(flcFile.Header.Width, flcFile.Header.Height, (TransparencyEnabled ? Color.clear : Color.black), false, false);
            flcTexture.filterMode = (FilterMode)DaggerfallUnity.Settings.MainFilterMode;
        }