Beispiel #1
0
    private void E_OnBottomValueChange(string changeName)                  // 底下的切换
    {
        switch (changeName)
        {
        case ITEM_STR1:
            mCurrentIndex = ETaoMingType.XiTong;
            dt5_Contrl.Change2One();
            break;

        case ITEM_STR2:
            mCurrentIndex = ETaoMingType.WenZi;
            dt5_Contrl.Change2Two();
            break;

        case ITEM_STR3:
            mCurrentIndex = ETaoMingType.WuQi;
            dt5_Contrl.Change2Three();
            break;

        case ITEM_STR4:
            mCurrentIndex = ETaoMingType.DaoJu;
            dt5_Contrl.Change2Four();
            break;

        case ITEM_STR5:
            mCurrentIndex = ETaoMingType.ChengJi;
            dt5_Contrl.Change2Five();
            break;
        }
        slider_ChangeSize.value = Ctrl_UserInfo.Instance.L_TaoMingTuSize[(int)mCurrentIndex].ChangeValue;
        tx_Size.text            = Ctrl_UserInfo.Instance.L_TaoMingTuSize[(int)mCurrentIndex].CurrentSize.x.ToString();
        m_SrollView.content     = GetParent(mCurrentIndex);
    }
Beispiel #2
0
 public void DeleteTaoMingSave(ETaoMingType index, string path)                 // 删除一个
 {
     if (taoMingTypeK_PathV[(ushort)index].Contains(path))
     {
         taoMingTypeK_PathV[(ushort)index].Remove(path);
     }
 }
Beispiel #3
0
    private RectTransform GetParent(ETaoMingType type)
    {
        RectTransform rt = null; // 放在那里

        switch (type)
        {
        case ETaoMingType.XiTong:
            rt = dt5_Contrl.GO_One.transform as RectTransform;
            break;

        case ETaoMingType.WenZi:
            rt = dt5_Contrl.GO_Two.transform as RectTransform;
            break;

        case ETaoMingType.WuQi:
            rt = dt5_Contrl.GO_Three.transform as RectTransform;
            break;

        case ETaoMingType.DaoJu:
            rt = dt5_Contrl.GO_Four.transform as RectTransform;
            break;

        case ETaoMingType.ChengJi:
            rt = dt5_Contrl.GO_Five.transform as RectTransform;
            break;

        default:
            throw new Exception("还有其他?");
        }
        return(rt);
    }
Beispiel #4
0
 IEnumerator ResultDaoRu(ETaoMingType type, List <ResultBean> resultBeans)
 {
     foreach (ResultBean resultBean in resultBeans)
     {
         Transform t = InstantiateMoBan(go_MoBan, GetParent(type));
         InitMoBan(t, resultBean);
         yield return(0);
     }
 }
Beispiel #5
0
    private void DeleteOneLine(ETaoMingType type)
    {
        Ctrl_TextureInfo.Instance.DeleteTaoMingOneLine(type);
        RectTransform rt = GetParent(type);

        for (int i = 0; i < rt.childCount; i++)
        {
            UnityEngine.Object.Destroy(rt.GetChild(i).gameObject);
        }
    }
Beispiel #6
0
 IEnumerator OnDaoRu(ETaoMingType type, List <FileInfo> infos)
 {
     foreach (FileInfo fileInfo in infos)
     {
         // 1. 创建一个实例
         Transform t = InstantiateMoBan(go_MoBan, GetParent(type));
         MyLoadTu.LoadSingleTu(fileInfo, (resBean) =>
         {
             InitMoBan(t, resBean);
         });
         yield return(0);
     }
 }
Beispiel #7
0
 public void DeleteTaoMingOneLine(ETaoMingType index)                           // 删除整行
 {
     taoMingTypeK_PathV[(ushort)index].Clear();
 }
Beispiel #8
0
 public List <string> GetTaoMingTuPaths(ETaoMingType index)                      // 获取
 {
     return(taoMingTypeK_PathV[(ushort)index]);
 }
Beispiel #9
0
 private void E_ResultDaoRu(ETaoMingType type, List <ResultBean> resultBeans) // 已有 ResultBean 直接的导入
 {
     Ctrl_Coroutine.Instance.StartCoroutine(ResultDaoRu(type, resultBeans));
 }
Beispiel #10
0
    //—————————————————— 事件 ——————————————————


    private void E_OnDaoRu(ETaoMingType type, List <FileInfo> infos) // 需要再次加载的 导入
    {
        Ctrl_Coroutine.Instance.StartCoroutine(OnDaoRu(type, infos));
    }