zoukankan      html  css  js  c++  java
  • 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;   //显示掩盖未选中物体的虚线

  • 相关阅读:
    HDU 1003 Max Sum
    HDU 1728 逃离迷宫
    UVA 10057 A midsummer night's dream.
    HDU 1232 畅通工程
    poj3331
    poj3481
    poj1053
    poj3281
    poj3199
    !!! Gridview的多种使用方法总结
  • 原文地址:https://www.cnblogs.com/NEOCSL/p/3152382.html
Copyright © 2011-2022 走看看