Example #1
0
    /// <summary>
    /// 当前容器内只展示哪一类物品列表  by吴江
    /// </summary>
    /// <param name="_type"></param>
    protected void FliterItems(FilterType _type)
    {
        switch (_type)
        {
        case FilterType.ALL:
            GridMgr.gridFilter = FilterAll;
            break;

        case FilterType.Equip:
            GridMgr.gridFilter = FilterEquip;
            break;

        case FilterType.Consumables:
            GridMgr.gridFilter = FilterConsumables;
            break;

        case FilterType.Others:
            GridMgr.gridFilter = FilterOthers;
            break;

        default:
            break;
        }
        GridMgr.Reposition();
        if (lastFilterType != _type)
        {
            lastFilterType = _type;
            ToTop();
        }
    }