0:一种过滤机制的MobileMenuList

  新建一种MenuList,这种MenuList可以动态的过滤加载自己需要的ListItem类别。这要用到排序算法进行剥离。

  我们设置当前的List过滤标志位:

  var string CurrentListString;

  var int LastSelectedIndex;

  定义一种enum类型来过滤自己需要的列表类型,

  enum InventoryFilterType

{

  IFT_Selected,

  IFT_ShowAll,     //这种列表最酷的地方在于本身能显示所有你的列表类

  IFT_ShowCanBuy,   //这是一个解锁练习的好地方

  IFT_ShowEquipped,

};   

  var array<int> ItemSortMap;     //列表排序地图

  var InventoryFilterType CurrentFilter;   //当前的过滤性质

  var AntItemType CurrentListItemType;   //当前的道具种类 

  该类可以在Pawn中定义

  enum AntItemType

     {

    AIT_Weapon,

    AIT_Health,

    AIT_Gold,
  };

  var bool bShowOnlyOwned;   //仅仅显示拥有的

  var bool bShowAppStoreGold;    //显示金钱

  var bool bRenderGradientCovers;   //显示掩盖未选中物体的虚线

原文地址:https://www.cnblogs.com/NEOCSL/p/3152382.html