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

        case ITEM_STR2:
            mCurrentIndex = EJiHeType.JiHe2;
            dt5_Contrl.Change2Two();
            break;

        case ITEM_STR3:
            mCurrentIndex = EJiHeType.JiHe3;
            dt5_Contrl.Change2Three();
            break;

        case ITEM_STR4:
            mCurrentIndex = EJiHeType.JiHe4;
            dt5_Contrl.Change2Four();
            break;

        case ITEM_STR5:
            mCurrentIndex = EJiHeType.JiHe5;
            dt5_Contrl.Change2Five();
            break;
        }
        slider_ChangeSize.value = Ctrl_UserInfo.Instance.L_JiHeTuSize[(int)mCurrentIndex].ChangeValue;
        tx_Size.text            = Ctrl_UserInfo.Instance.L_JiHeTuSize[(int)mCurrentIndex].CurrentSize.x.ToString();
        m_SrollView.content     = GetParent(mCurrentIndex);
    }
示例#2
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);
    }
示例#3
0
    private void E_OnBottomContrlChange(string changeName)     // 总控制,底下的切换
    {
        switch (changeName)
        {
        case ITEM_STR1:
            toggle5_Contant.Change2One();
            mCurrentIndex          = EXuLieTu.G1Zheng;
            btn_DaoRu.interactable = true;
            mScrollRect.content    = rt_Grid1;
            break;

        case ITEM_STR2:
            toggle5_Contant.Change2Two();
            mCurrentIndex          = EXuLieTu.G2Zheng_XiTong;
            btn_DaoRu.interactable = true;
            mScrollRect.content    = rt_Grid2;
            break;

        case ITEM_STR3:
            toggle5_Contant.Change2Three();
            mCurrentIndex          = EXuLieTu.G3Zheng_Big;
            btn_DaoRu.interactable = true;
            mScrollRect.content    = rt_Grid3;
            break;

        case ITEM_STR4:
            toggle5_Contant.Change2Four();
            mCurrentIndex          = EXuLieTu.G4Two_Heng;
            btn_DaoRu.interactable = false;
            mScrollRect.content    = rt_Grid4_Shu;
            break;

        case ITEM_STR5:
            toggle5_Contant.Change2Five();
            mCurrentIndex          = EXuLieTu.G5Three_Heng;
            btn_DaoRu.interactable = false;
            mScrollRect.content    = rt_Grid5_Shu;
            break;
        }
    }