Exemplo n.º 1
0
    public void OpenUI(SQYBoxItem itemParent)
    {
        RED.AddChild(this.gameObject, itemParent.transform.parent.gameObject);
        m_selBagItem = itemParent;
        InitBtnSprite();
        SetShow(true);
        switch (itemParent.curItemType)
        {
        case RUIType.EMItemType.Charator:
            InitMonsterUI();
            break;

        case RUIType.EMItemType.Equipment:
            InitEquipUI();
            break;

        case RUIType.EMItemType.Gem:
            InitGemUI();
            break;

        case RUIType.EMItemType.Props:
            InitPropUI();
            break;

//			case RUIType.EMItemType.Soul:
        case RUIType.EMItemType.AtkFrag:
        case RUIType.EMItemType.DefFrag:
        case RUIType.EMItemType.MonFrag:
            InitSoulUI();
            break;
        }

        PlayAnim();
    }
Exemplo n.º 2
0
    /// <summary>
    /// 重新设置当前的元素
    /// </summary>
    /// <param name="iType">I type.</param>
    public void resetItemType(EMItemType iType)
    {
        _itemType = iType;
        switch (_itemType)
        {
        case EMItemType.Charator:
            _boxItem = _charator as SQYBoxItem;
            break;

        case EMItemType.Equipment:
            _boxItem = _equipment as SQYBoxItem;
            break;

        case EMItemType.Gem:
            _boxItem = _gem as SQYBoxItem;
            break;

        case EMItemType.Props:
            _boxItem = _props as SQYBoxItem;
            break;

//		case EMItemType.Soul:
        case EMItemType.AtkFrag:
        case EMItemType.DefFrag:
        case EMItemType.MonFrag:
            _boxItem = _soul as SQYBoxItem;
            break;
        }
        SetShowAll(false);
        if (_boxItem != null)
        {
            _boxItem.gameObject.SetActive(true);
        }
    }
Exemplo n.º 3
0
 void On_Click(GameObject go)
 {
     if (ACT_SelectOneCharator != null)
     {
         SQYBoxItem bi = go.GetComponent <SQYBoxItem>();
         if (bi != null)
         {
             ACT_SelectOneCharator(bi.myNode);
         }
     }
 }