public void PreloadPose(LuaInterface.LuaTable pose)
 {
     foreach (string imageName in pose.ToArray().Cast <string>())
     {
         AssetLoader.Preload(AssetCacheType.StandingLayer, System.IO.Path.Combine(imageFolder, imageName));
     }
 }
Пример #2
0
        public void SetPoseDelayed(LuaInterface.LuaTable pose)
        {
            if (!CheckCharacterName("pose"))
            {
                return;
            }

            var prefix  = nameToConfig[characterName].prefix;
            var poseStr = PoseArrayToString(pose.ToArray().Cast <string>().Select(x => prefix + x).ToArray());

            characterToImageName[characterName] = poseStr;
        }
 public void SetPose(LuaInterface.LuaTable pose, bool fade = true)
 {
     this.RuntimeAssert(characterTextureMerger != null && textureChanger != null,
                        "CharacterTextureMerger and OverlayTextureChanger must be present when setting pose.");
     SetPose(pose.ToArray().Cast <string>().ToArray(), fade);
 }