Exemplo n.º 1
0
        //private void AddAnimationChainClick(Window callingWindow)
        //{
        //    FileWindow fileWindow = GuiManager.AddFileWindow();
        //    fileWindow.SetFileType("achx");
        //    fileWindow.SetToLoad();
        //    fileWindow.OkClick += AddAnimationChainOk;
        //}

        private void AddAnimationChainOk(Window callingWindow)
        {
            string fileName = ((FileWindow)callingWindow).Results[0];

            AnimationChainList acl = GameData.AddAnimationChainList(fileName);

            foreach (AnimationChain animationChain in acl)
            {
                foreach (AnimationFrame animationFrame in animationChain)
                {
                    WarnAboutNonPowerOfTwoTexture(animationFrame.Texture);
                }
            }
        }