コード例 #1
0
        public static void PoseLoadPatch(PauseRegistrationList __instance)
        {
            var traverse = Traverse.Create(__instance);
            var listPath = traverse.Field("listPath").GetValue <List <string> >();
            var select   = traverse.Field("select").GetValue <int>();

            foreach (var chara in Utils.GetSelectedCharacters().Where((chara) => chara != __instance.ociChar))
            {
                PauseCtrl.Load(chara, listPath[select]);
            }
        }
コード例 #2
0
        public override void Pose_Load(MsgObject message)
        {
            var characters = GetSelectedCharacters();

            if (characters.Count > 0)
            {
                foreach (var chara in characters)
                {
                    PauseCtrl.Load(chara, message.path);
                }
            }
            else
            {
                Console.WriteLine("Select character to pose");
            }
        }
コード例 #3
0
 public override void PoseData_Load(string path, POINT pos)
 {
     try
     {
         var characters = GetSelectedCharacters();
         if (characters.Count > 0)
         {
             foreach (var chara in characters)
             {
                 PauseCtrl.Load(chara, path);
             }
         }
     }
     catch (Exception ex)
     {
         DragAndDrop.Logger.Log(LogLevel.Error, ex);
     }
 }