Exemplo n.º 1
0
 public void OnDragPicFolder(string folder)
 {
     seletePicPath = folder; //当前选择的路径
     if (GameManager.Instance.FolderIsFramePic(seletePicPath))
     {
         picStyteType = Path.GetFileName(Directory.GetFiles(seletePicPath)[0]);
         picStyteType = GetPicType(picStyteType);
         Debug.Log("样式 " + picStyteType);
         OnAddPicEnd?.Invoke(folder);
     }
     else
     {
         DialogMgr.Instance.ShowDialogTypeBtnOne("图片文件有错 第一个文件名:" + picStyteType, "错误");
     }
 }
Exemplo n.º 2
0
    //路径打开结束回调
    private void SeletePicEnd(string[] paths)
    {
        if (paths.Length <= 0)
        {
            return;
        }

        seletePicPath = paths[0];
        if (GameManager.Instance.FolderIsFramePic(seletePicPath))
        {
            picStyteType = Path.GetFileName(Directory.GetFiles(seletePicPath)[0]);
            picStyteType = GetPicType(picStyteType);
            Debug.Log("样式 " + picStyteType);
            OnAddPicEnd?.Invoke(paths[0]);
        }
        else
        {
            DialogMgr.Instance.ShowDialogTypeBtnOne("图片文件有错 第一个文件名:" + picStyteType, "错误");
            return;
        }
    }